Hi!

I'm having trouble compiling a pmacct with PF_RING on Debian Squeeze 64-bit. It 
worked perfectly on a 32-bit ditto.

First, I had to specify the mysql-libs location (something I didn't have to do 
on the 32-bit installation). Then it fails to find dlopen(), which also worked 
on 32-bit.

---
/usr/local/src/pmacct-0.12.5# ./configure --enable-mysql 
--with-mysql-libs=/usr/lib --enable-64bit

loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking OS... Linux
checking hardware... x86_64
checking for ranlib... (cached) ranlib
checking whether to enable debugging compiler options... no
checking whether to relax compiler optimizations... no
checking for gmake... (cached) make
checking whether make sets ${MAKE}... (cached) yes
checking for __progname... yes
checking for extra flags needed to export symbols... --export-dynamic
checking for static inline... yes
checking endianess... little
checking unaligned accesses... ok
checking whether to disable L2 features... no
checking whether to enable IPv6 code... no
checking default locations for pcap.h... found in /usr/local/include
checking default locations for libpcap... found in /usr/local/lib
checking for PF_RING library... yes
checking packet capture type... linux
checking whether to enable MySQL support... checking how to run the C 
preprocessor... (cached) gcc -E
yes
checking your own MySQL client library... ok
checking default locations for mysql.h... found in /usr/include/mysql
checking whether to enable PostgreSQL support... no
checking whether to enable SQLite3 support... no
checking whether to disable shared objects... no
checking for dlopen... no
checking for dlopen in -ldl... no
configure: error: Unable to find dlopen(). Try with --disable-so
---

If i use the -disable-so flag, the configure completes, but instead the make 
fails. The make fails on an undefined reference in a pf_ring library:

---
/usr/local/lib/libpfring.so: undefined reference to `pfring_enable_hw_timestamp'
collect2: ld returned 1 exit status
make[2]: *** [pmacct] Error 1
make[2]: Leaving directory `/usr/local/src/pmacct-0.12.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/pmacct-0.12.5/src'
make: *** [all-recursive] Error 1
---

Any suggestions?

Regards,

Johan

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to