kompilace pomoci perlcc

hanc hancik na atlas.cz
Pátek Červen 15 16:05:04 CEST 2001


Hezky den,

mam problem s kompilaci uplne nejjednodussiho perlovyho skriptu. Urcite
delam neco spatne, ale nevim co.
skript hello.pl:

#!/usr/bin/perl

print "hello world !!!";

A vysledek:


[root na glogan comp]# perlcc hello.pl

----------------------------------------------------------------------------
----
Compiling hello.pl:
----------------------------------------------------------------------------
----
Making C(hello.pl.c) for hello.pl!
/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -I/us
r/lib/perl5/site_perl/5.6.0/i386-linux -I/usr/lib/perl5/site_perl/5.6.0 -I/u
sr/lib/perl5/site_perl -I. -MB::Stash -c  hello.pl
/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -I/us
r/lib/perl5/site_perl/5.6.0/i386-linux -I/usr/lib/perl5/site_perl/5.6.0 -I/u
sr/lib/perl5/site_perl -I. -MO=C,-umain,-uattributes,-uDB hello.pl
Starting compile
Walking tree
Prescan
Saving methods
Bootstrap attributes hello.pl
Writing output
Loaded B
Loaded IO
Loaded Fcntl
hello.pl syntax OK
Compiling C(hello) for hello.pl!
/usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 -I/us
r/lib/perl5/site_perl/5.6.0/i386-linux -I/usr/lib/perl5/site_perl/5.6.0 -I/u
sr/lib/perl5/site_perl -I. /tmp/hello.pl.tst
gcc -fno-strict-aliasing  -I/usr/lib/perl5/5.6.0/i386-linux/CORE -o hello
hello.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/ccAPH2oD.o: In function `xs_init':
/tmp/ccAPH2oD.o(.text+0x3475): undefined reference to `boot_DynaLoader'
collect2: ld returned 1 exit status
ERROR: In compiling code for hello.pl.c !
[root na glogan comp]#

Mate nekdo nejakej tip ?

Diky moc!
hanc




Další informace o konferenci Linux