Hi!

First it checks for dlopen (indirectly), but check later down in my config.log 
paste:

configure:2855: checking for dlopen in -ldl
configure:2874: gcc -o conftest -O2  -Wl,--export-dynamic  conftest.c -ldl   
-L/usr/local/lib -lpcap -lpfring -L/usr/lib -lmysqlclient 1>&5

So the configure script indeed tries with "-ldl"

The output regarding dlopen of the configure on Debian Squeeze 64-bit is:

checking for dlopen... no
checking for dlopen in -ldl... no
configure: error: Unable to find dlopen(). Try with --disable-so

While on Debian Squeeze 32-bit, it finds it in -ldl:

checking for dlopen... no
checking for dlopen in -ldl... yes

So something else must be the cause

Regards,

Johan

-----Original Message-----
From: Roger Leigh [mailto:rle...@codelibre.net] 
Sent: den 16 februari 2011 14:51
To: Johan Karlsson
Cc: debian-user@lists.debian.org
Subject: Re: Debian Squeeze 64-bit, dlopen() missing?

On Wed, Feb 16, 2011 at 12:43:19PM +0100, Johan Karlsson wrote:
> Hi!
> 
> The --enable-64bit flag is just to enable 64bit counters in pmacct, and I get 
> the same error without it.
> 
> I've also tried using LDFLAGS to point out every single lib-directory 
> on the server when running configure ;)
> 
> Here's the the info from config.log when things start to go bad (the 
> undefined reference to "pfring_enable_hw_timestamp" I guess is because it 
> failed to find dlopen and load shared libs):
> 
> ---
> configure:2701: checking whether to disable shared objects
> configure:2806: checking for dlopen
> configure:2834: gcc -o conftest -O2  -Wl,--export-dynamic  conftest.c  
> -L/usr/local/lib -lpcap -lpfring -L/usr/lib -lmysqlclient 1>&5
> /tmp/ccmfOILI.o: In function `main':
> conftest.c:(.text+0x7): undefined reference to `dlopen'

I think the answer is fairly straightforward: the above link line does not 
include "-ldl" so libdl is not linked in, and the reference is indeed undefined.

This may have worked previously with indirect linkage (i.e.
one of the other libraries linked to libdl either directly or indirectly).  
Either way, it's the configure test that's broken, not your system!

This is how I check for dlopen:
AC_CHECK_LIB(dl, dlopen, [DLOPEN_LIBS="-ldl"])


Regards,
Roger

--
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/b08f3f3d67451844a7a8a029fcc71e4c1952b0a...@win01.ad.deltamanagement.se

Reply via email to