Hi all,

I have a small problem compiling ntop with pf_ring, for 64bit arch...

#./configure
...
OK

Then try to make
#make
...
/bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 
-I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs  -fPIC -DPIC  -release 3.3 
-export-dynamic  -L/usr/local/lib -o libntop.la -rpath /usr/local/lib 
address.lo argv.lo dataFormat.lo fcUtils.lo getopt.lo getopt1.lo 
globals-core.lo hash.lo iface.lo initialize.lo l7.lo leaks.lo ntop.lo 
pbuf.lo database.lo plugin.lo prefs.lo protocols.lo sessions.lo term.lo 
util.lo utildl.lo traffic.lo vendor.lo version.lo ntop_darwin.lo 
-lpthread -lcrypt -lc -lssl -lcrypto -lrrd_th -lpcre -lgdbm -lz   
-L/usr/local/lib -lpcap gcc -shared  .libs/address.o .libs/argv.o 
.libs/dataFormat.o .libs/fcUtils.o .libs/getopt.o .libs/getopt1.o 
.libs/globals-core.o .libs/hash.o .libs/iface.o .libs/initialize.o 
.libs/l7.o .libs/leaks.o .libs/ntop.o .libs/pbuf.o .libs/database.o 
.libs/plugin.o .libs/prefs.o .libs/protocols.o .libs/sessions.o 
.libs/term.o .libs/util.o .libs/utildl.o .libs/traffic.o .libs/vendor.o 
.libs/version.o .libs/ntop_darwin.o  -L/usr/local/lib -lpthread -lcrypt 
-lc -lssl -lcrypto /usr/lib/librrd_th.so -L/usr/lib -lpcre 
/usr/lib/libgdbm.so -lz -lpcap -lc  -Wl,-soname -Wl,libntop-3.3 -o 
.libs/libntop-3.3
/usr/bin/ld: /usr/local/lib/libpcap.a(pfring.o): relocation R_X86_64_32 
against `a local symbol' can not be used when making a shared object; 
recompile with -fPIC
/usr/local/lib/libpcap.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libntop.la] Error 1
make[2]: se sale del directorio `/usr/local/src/ntop-3.3'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/usr/local/src/ntop-3.3'
make: *** [all] Error 2

But it seems to be compiled with fPIC!!
I have a workaround changing "-L/usr/local/lib" for 
/usr/local/lib/libpcap.a in Makefile and making a static compilation. 
Then everything seems to be OK, but I get a warning that I don“t really 
understand...

/*** Warning: Trying to link with static lib archive 
/usr/local/lib/libpcap.a./

/*** I have the capability to make that library automatically link in when/

/*** you link to this library.  But I can only do this if you have a/

/*** shared version of the library, which you do not appear to have/

/*** because the file extensions .a of this argument makes me believe/

/*** that it is just a static archive that I should not used here./

Is there anything wrong in this process?

Cheers,

Jorge

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to