- 论坛徽章:
- 0
|
用perlcc编译,老是出错,不知道原因,请教各位:
perlcc monitor.pl
--------------------------------------------------------------------------------
Compiling monitor.pl:
--------------------------------------------------------------------------------
Making C(monitor.pl.c) for monitor.pl!
perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -I/usr/lib/perl5/site_perl/5.6.0/i386-linux -I/usr/lib/perl5/site_perl/5.6.0 -I/usr/lib/perl5/site_perl -I. -MB::Stash -c monitor.pl
perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -I/usr/lib/perl5/site_perl/5.6.0/i386-linux -I/usr/lib/perl5/site_perl/5.6.0 -I/usr/lib/perl5/site_perl -I. -MO=C,-umain,-uattributes,-uDB monitor.pl
Starting compile
Walking tree
Prescan
Saving methods
Bootstrap attributes monitor.pl
Writing output
Loaded B
Loaded IO
Loaded Fcntl
monitor.pl syntax OK
Compiling C(monitor) for monitor.pl!
perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -I/usr/lib/perl5/site_perl/5.6.0/i386-linux -I/usr/lib/perl5/site_perl/5.6.0 -I/usr/lib/perl5/site_perl -I. /tmp/monitor.pl.tst
gcc -fno-strict-aliasing -I/usr/lib/perl5/5.6.0/i386-linux/CORE -o monitor monitor.pl.c -L/usr/local/lib -L/usr/lib/perl5/5.6.0/i386-linux/CORE -lperl -lnsl -ldl -lm -lc -lcrypt /usr/lib/perl5/5.6.0/i386-linux/auto/IO/IO.so /usr/lib/perl5/5.6.0/i386-linux/auto/Fcntl/Fcntl.so
/tmp/ccnja7iL.o: In function `xs_init':
/tmp/ccnja7iL.o(.text+0x987d): undefined reference to `boot_DynaLoader'
collect2: ld returned 1 exit status
ERROR: In compiling code for monitor.pl.c !
请问是配置问题吗?还是我的perl程序问题?谢谢 |
|