Front page | perl.perl5.porters |
Postings from November 1999
[ID 19991117.003] question about Configure options for perl-onlyextensions
Thread Next
From:
Margie Levine
Date:
November 17, 1999 13:35
Subject:
[ID 19991117.003] question about Configure options for perl-onlyextensions
Message ID:
4F7525F7D14CD211AABD00A0C9DED9010308D180@exchange2.3dfx.com
Hi,
I am building perl with a number of extensions statically linked in.
Everything is working fine with my extensions that have C code associated
with them, but the extensions that are perl code only, such as DateManip,
GIFgraph, and DProf are giving me problems because they seem to not install
correctly.
I'm confused at the intended usage of -Dextensions versus -Dstatic_ext and
-Ddynamic_ext.
If I put all of DateManip, GifGraph, and DProf in both -Dextensions and
-Dstatic_extensions, like this:
./Configure -de -Dprefix='/home/mlevine/reshape/bin/perl' \
-Dlibs='-Wl,-Bstatic -lm -lstdc++ -Wl,-Bdynamic -ldl -Wl,-Bstatic ' \
-Dlibpth='-L/home/mlevine/reshape/blib ' -Dldflags=' ' -Dso='none' \
... some other unrelated stuff for setting gcc, make, etc \
-Dextensions='Reshape POSIX Fcntl IO GD DProf GIFgraph DateManip '
-Ddynamic_ext=' '
-Dstatic_ext='Reshape POSIX Fcntl IO GD DProf GIFgraph DateManip '
I get the following errors when I link perl
/home2/mlevine/reshape_tools/bin/gcc -o perl perlmain.o \
lib/auto/DynaLoader/DynaLoader.a lib/auto/Reshape/Reshape.a \
lib/auto/POSIX/POSIX.a lib/auto/Fcntl/Fcntl.a lib/auto/IO/IO.a \
lib/auto/GD/GD.a lib/auto/DProf/DProf.a lib/auto/GIFgraph/GIFgraph.a \
lib/auto/DateManip/DateManip.a libperl.a \
`cat ext.libs` -Wl,-Bstatic -lm -lstdc++ -Wl,-Bdynamic -ldl -Wl,-Bstatic \
gcc: lib/auto/DProf/DProf.a: No such file or directory \
gcc: lib/auto/GIFgraph/GIFgraph.a: No such file or directory \
gcc: lib/auto/DateManip/DateManip.a: No such file or directory
However, if I put DProf, GIFgraph, and DateManip in -Dextensions, but remove
it from -Dstatic_ext, like this:
-Dextensions='Reshape POSIX Fcntl IO GD DProf GIFgraph DateManip ' \
-Ddynamic_ext=' '
-Dstatic_ext='Reshape POSIX Fcntl IO GD
then when I make, I don't DProf, GIFgraph, and DateManip don't get made.
Where on the Configure line should these extensions that aren't really
dynamic or static go? If I cd into the actual extension directory and do
the standard 'perl Makefile.pl; make install', then of course, it does get
installed. But I know there must be some way for this to happen
automatically based on my arguments to Configure ...
Thanks!
- Margie Levine
Thread Next
-
[ID 19991117.003] question about Configure options for perl-onlyextensions
by Margie Levine