On Sat, Mar 22, 2003 at 12:40:55PM -0600, Bruce Winter wrote: > Well hmmm. We have a bit of a mystery here. I've tried it on 2 boxes, > RedHat 7.2 and 8.0, but can not get it to work on either. It looks like I > have the latest versions of SerialPort, ScanDeps, and Par. Contrary to what > I said yesterday, though, I can indeed see the termios.ph file extracted to > a /tmp/*.pm file. Attached is my debug.
It is indeed a mystery here, since I just walked it thru a freshly
minted Red Hat 8.0 install, and found that it works.
Here's a transcript of what I did:
% sudo perl -MCPAN -eshell
cpan> install PAR
cpan> install Devel::SerialPort
# got problem: not finding .ph files
^Z
% cd /usr/include
% h2ph -r -l .
# ... got lots of files but stuck somewhere
% h2ph termios.h gnu/stubs.h asm/*.h
% fg
cpan> force install Devel::SerialPort
% cat > test.pl
use Devel::SerialPort;
print Devel::SerialPort->VERSION, $/;
^D
% pp test.pl
% mv /usr/lib/perl5 /usr/lib/perl4
% ./a.out
# got problem: not finding libperl.so
% cp /usr/lib/perl4/5.8.0/i386-linux-thread-multi/CORE/libperl.so /usr/lib/
% ./a.out
0.12
% mkdir tmp ; cd tmp ; unzip ../a.out ; find -type f .
./lib/_h2ph_pre.ph
./lib/asm/ioctl.ph
./lib/asm/ioctls.ph
./lib/asm/posix_types.ph
./lib/asm/termbits.ph
./lib/asm/termios.ph
./lib/bits/pthreadtypes.ph
./lib/bits/sched.ph
./lib/bits/termios.ph
./lib/bits/types.ph
./lib/features.ph
./lib/gnu/stubs.ph
./lib/linux/posix_types.ph
./lib/linux/stddef.ph
./lib/stddef.ph
./lib/sys/cdefs.ph
./lib/sys/termios.ph
./lib/sys/ttydefaults.ph
./lib/termios.ph
So... either you don't have h2ph'ed the necessary .ph files, or aliens
have invaded from the outer space. Can you try unzipping your pp'ed
a.out and compare the included .ph files with mine?
Another way to verify it is to unzip it, and run your script with the
@INC containing only the extracted 'lib' directory. That should point
out the exact reason of failure, instead of hidden behind the cryptic
"Can't find termios" error message.
Thanks,
/Autrijus/
pgp00000.pgp
Description: PGP signature
