Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2003 21:23:52 +0200
From:      Arjan van Leeuwen <avleeuwen@piwebs.com>
To:        ports@FreeBSD.ORG
Subject:   Problems with Perl port on -CURRENT
Message-ID:  <200305142123.52161.avleeuwen@piwebs.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305142123.52161.avleeuwen>