Problems with Perl port on -CURRENT
Arjan van Leeuwen
avleeuwen at piwebs.com
Wed May 14 12:24:07 PDT 2003
I'm trying to upgrade my lang/perl5 port on -CURRENT, but the port fails in
the configure phase. It seems to want to use -ldl (why?). Is there an easy
way to fix this?
Checking for optional libraries...
What libraries to use? [-ldl -lm -lc -lcrypt -lutil]
What optimizer/debugger flag should be used?
[-O2 -pipe -mfpmath=sse -march=athlon-xp]
Any additional cc flags?
[-DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -fno-strict-aliasing
-I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[-Wl,-E -L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
I've tried to compile and run the following simple program:
#include <stdio.h>
int main() { printf("Ok\n"); exit(0); }
I used the command:
/usr/local/bin/gcc -o try -O2 -pipe -mfpmath=sse -march=athlon-xp
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.6.1/BSDPAN" -fno-strict-aliasing
-I/usr/local/include -Wl,-E -L/usr/local/lib try.c -ldl -lm -lc -lcrypt
-lutil
./try
and I got the following output:
/usr/bin/ld: cannot find -ldl
I can't compile the test program.
You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure.
Arjan
More information about the freebsd-ports
mailing list