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.
signature.asc
Description: Digital signature