Why don’t you use nprobe package as well?
about the error, I think you should check the library path of your system.
Yuri
###############################################
Yuri Francalacci   -   [email protected]   -   http://www.ntop.org
"Simplicity is the ultimate sophistication" - Leonardo da Vinci
###############################################

> On 07 Nov 2014, at 09:48, Ramzi Abdallah <[email protected]> wrote:
> 
> Hi,
>  
> I’ve installed ntopng,n2disk,pfring and nbox on centos from the provided RPM 
> packages. When I try to compile nProbe from the source I get the bellow error.
> Any help is greatly appreciated.
>  
> *** Warning: Linking the shared library libnprobe.la against the
> *** static library 
> /root/nprobe_6.16.140827_svn4314/nDPI/src/lib/.libs/libndpi.a is not portable!
> libtool: link: gcc -shared  -fPIC -DPIC  .libs/cache.o .libs/collect.o 
> .libs/engine.o .libs/export.o .libs/database.o .libs/globals.o .libs/plugin.o 
> .libs/template.o .libs/patricia.o .libs/sflow_collect.o .libs/util.o 
> .libs/version.o .libs/systemId.o   -L/usr/local/lib -L/opt/local/lib -L/lib 
> -lresolv -lrt -ldl -lpthread -lpcap -lnuma 
> /root/nprobe_6.16.140827_svn4314/nDPI/src/lib/.libs/libndpi.a  -O2 -O2   
> -Wl,-soname -Wl,libnprobe-6.16.141107.so -o .libs/libnprobe-6.16.141107.so
> libtool: link: (cd ".libs" && rm -f "libnprobe.so" && ln -s 
> "libnprobe-6.16.141107.so" "libnprobe.so")
> libtool: link: ar cru .libs/libnprobe.a 
> /root/nprobe_6.16.140827_svn4314/nDPI/src/lib/.libs/libndpi.a  cache.o 
> collect.o engine.o export.o database.o globals.o plugin.o template.o 
> patricia.o sflow_collect.o util.o version.o systemId.o
> libtool: link: ranlib .libs/libnprobe.a
> libtool: link: ( cd ".libs" && rm -f "libnprobe.la" && ln -s 
> "../libnprobe.la" "libnprobe.la" )
> gcc -DHAVE_CONFIG_H -I. -I.  -I 
> /root/nprobe_6.16.140827_svn4314/nDPI/src/include/  -I/usr/local/include 
> -I/opt/local/include  -O2 -I/usr/local/include -I/opt/local/include -MT 
> nprobe-nprobe.o -MD -MP -MF .deps/nprobe-nprobe.Tpo -c -o nprobe-nprobe.o 
> `test -f 'nprobe.c' || echo './'`nprobe.c
> mv -f .deps/nprobe-nprobe.Tpo .deps/nprobe-nprobe.Po
> /bin/sh ./libtool  --tag=CC   --mode=link gcc  -O2 -I/usr/local/include 
> -I/opt/local/include -L/usr/local/lib -L/opt/local/lib -L/lib -pthread -lm 
> -L/usr/local/lib -L/opt/local/lib -L/lib -o nprobe nprobe-nprobe.o 
> libnprobe.la -lrt -lresolv -lrt -ldl -lpthread   -lnuma -lpcap  -lnuma  
> /root/nprobe_6.16.140827_svn4314/nDPI/src/lib/.libs/libndpi.a
> libtool: link: gcc -O2 -I/usr/local/include -I/opt/local/include -pthread -o 
> .libs/nprobe nprobe-nprobe.o  -L/usr/local/lib -L/opt/local/lib -L/lib -lm 
> ./.libs/libnprobe.so -lresolv -lrt -ldl -lpthread -lpcap -lnuma 
> /root/nprobe_6.16.140827_svn4314/nDPI/src/lib/.libs/libndpi.a -pthread 
> -Wl,-rpath -Wl,/usr/local/lib
> ./.libs/libnprobe.so: undefined reference to `pfring_get_ring_id'
> ./.libs/libnprobe.so: undefined reference to `pfring_breakloop'
> ./.libs/libnprobe.so: undefined reference to `pfring_enable_ring'
> ./.libs/libnprobe.so: undefined reference to `pfring_send'
> ./.libs/libnprobe.so: undefined reference to `pfring_set_master'
> ./.libs/libnprobe.so: undefined reference to `pfring_recv'
> ./.libs/libnprobe.so: undefined reference to `pfring_set_application_name'
> ./.libs/libnprobe.so: undefined reference to `pfring_set_socket_mode'
> ./.libs/libnprobe.so: undefined reference to `pfring_stats'
> ./.libs/libnprobe.so: undefined reference to `pfring_open'
> ./.libs/libnprobe.so: undefined reference to `pfring_get_selectable_fd'
> ./.libs/libnprobe.so: undefined reference to `pfring_enable_rss_rehash'
> ./.libs/libnprobe.so: undefined reference to `pfring_get_bound_device_ifindex'
> ./.libs/libnprobe.so: undefined reference to `pfring_set_master_id'
> ./.libs/libnprobe.so: undefined reference to `pfring_set_cluster'
> ./.libs/libnprobe.so: undefined reference to `pfring_set_poll_watermark'
> ./.libs/libnprobe.so: undefined reference to `pfring_close'
> ./.libs/libnprobe.so: undefined reference to `pfring_set_direction'
> collect2: error: ld returned 1 exit status
> make[2]: *** [nprobe] Error 1
> make[2]: Leaving directory `/root/nprobe_6.16.140827_svn4314'
> _______________________________________________
> Ntop-misc mailing list
> [email protected] <mailto:[email protected]>
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc 
> <http://listgateway.unipi.it/mailman/listinfo/ntop-misc>
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to