develooper Front page | perl.perl5.porters | Postings from March 2000

perlcc and alternatives to perl/.../*.so

Thread Next
Tom Christiansen
March 30, 2000 14:01
perlcc and alternatives to perl/.../*.so
Message ID:
% perlcc tcap -o tcap.out
[millions of lines of spam deleted]
% ldd tcap:
    -lgdbm.2 => /usr/local/lib/ (0x400bd000)
    -lm.0 => /usr/lib/ (0x400c3000)
    -lc.23 => /usr/lib/ (0x400d7000)
    /usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/auto/IO/ (0x40181000)
    /usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/auto/Fcntl/ (0x401850

It occurs to me that people are going to want a static way to build
these.    Right now, everything links against those two Perl shared
library files.  That's not going to make folks happy, because they 
still can't run these anywhere without a full perl installation.
In fact, they won't be able to run them anywhere that doesn't
have nearly THE SAME installation!

It's not good enough just to add a -static.  That works for the 
system ones, but not for the Perl ones.  

It seems to me that something in the build process is going to have
to change.  One has to be able to load those from *.a or *.o files,
not just from *.so files.

Oh, (fyi Simon) those last two aren't needed.  This builds fine:

cc -static -fno-strict-aliasing -I/usr/local/include -I/usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/CORE -o tcap.out tcap.c -L/usr/local/lib -L/usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/CORE -lperl -lgdbm -lm -lc /usr/local/lib/perl5/5.6.0/OpenBSD.i386-openbsd/auto/DynaLoader/DynaLoader.a


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About