|
From: K. H. <k4...@ya...> - 2000-12-01 22:51:12
|
I have installed the three packages:
Expect (1.10), IO::Tty (0.04) and IO::Stty (.02)
locally in my account using the commands:
perl Makefile PREFIX=$HOME/perl
make
make install
My OS is:
HP-UX 10.20
After the installation, I tested the Tty package:
bash-2.04$ perl -Mblib try ls
Using /home/kk/perl/gz/IO-Tty-0.04/blib
Using /home/kk/perl/gz/IO-Tty-0.04/blib
From the Child
STDIN=0 STDOUT=1 STDERR=2
COPYING Makefile Tty.bs Tty.xs
pm_to_blib
ChangeLog Makefile.PL Tty.c blib
try
IO-Tty.ppd Pty.pm Tty.o conf
xssubs.c
MANIFEST README Tty.pm log
Nothing for IO::Pty=GLOB(0x401c0850) i.e. 0
It looks good, I think.
but when executing the simple script:
#--------------------------------------------------
use lib
"$ENV{HOME}/perl/lib/",
"$ENV{HOME}/perl/lib/PA-RISC1.1",
"$ENV{HOME}/perl/lib/PA-RISC1.1/5.00404",
"$ENV{HOME}/perl/lib/contrib",
"$ENV{HOME}/perl/lib/contrib/PA-RISC1.1",
"$ENV{HOME}/perl/lib/contrib/PA-RISC1.1/auto",
"$ENV{HOME}/perl/lib/contrib/PA-RISC1.1/auto/IO",
"$ENV{HOME}/perl/lib/contrib/PA-RISC1.1/auto/IO/Stty",
"$ENV{HOME}/perl/lib/contrib/PA-RISC1.1/auto/IO/Tty",
"$ENV{HOME}/perl/lib/contrib/PA-RISC1.1/auto/Expect",
"$ENV{HOME}/perl/lib/contrib/IO";
use Expect;
print join("\n- ", @INC), "\n";
print join("\n= ", @ARGV), "\n";
exit 0;
#----------
I get the following error messages:
bash-2.04$ ./test
Can't find 'boot_IO__Tty' symbol in
/home/kk/perl/lib/contrib/PA-RISC1.1/auto/IO/Tty/Tty.sl
at /home/kk/perl/lib/contrib/IO/Tty.pm line 26
BEGIN failed--compilation aborted at
/home/kk/perl/lib/contrib/IO/Pty.pm line 7.
BEGIN failed--compilation aborted at
/home/kk/perl/lib/contrib/Expect.pm line 19.
BEGIN failed--compilation aborted at - line 16.
Any Idea what is the problem?
Any help is greatly appriciated.
Thanks
KK.
-------------------------------------------------------------------------
Note, I updated the Mekefile.PL and the Tty.xs with
the modofications
suggested in the message from "Don Simonetta", posted
in this list.
diff Makefile.PL*
17,28d16
< my $ccflags = $Config{ccflags};
< my $cppflags = $Config{cppflags};
<
< if ($Config{osname} eq "dec_osf") {
< $ccflags = $ccflags . ' -std1
-D_XOPEN_SOURCE_EXTENDED';
< }
<
< if (($Config{osname} eq "hpux") &&
($Config{archname} eq "PA-RISC2.0")) {
< $ccflags = $ccflags . ' +DAportable';
< $cppflags = $cppflags . ' +DAportable';
< }
<
74c62
< if( system(split(/s+/, $Config{'cc'}), split('
',$cppflags) ,'tst.c')) {
---
> if( system(split(/s+/, $Config{'cc'}), split('
',$Config{'cppflags'}),'tst.c')) {
145d132
< 'CCFLAGS' => $ccflags,
diff Tty.xs*
103c103
< #if !defined(SVR4) && (defined(__svr4__) ||
defined(_HPUX_SOURCE) || defined(_PowerMAXOS))
---
> #if !defined(SVR4) && (defined(__svr4__) ||
defined(_PowerMAXOS))
231c231
< #if defined(VOIDSIG) || defined(__osf__) ||
defined(_HPUX_SOURCE)
---
> #ifdef VOIDSIG
615d614
<
622,623d620
<
< #if !defined(_HPUX_SOURCE)
626d622
< #endif
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/
|