Mailing List Archive

nprobe install on centos
Hi Folks,

I am on centos 6.7 64bit, installed the nprobe binary but it's missing
a library:

nprobe: error while loading shared libraries: libnetfilter_queue.so.1:
cannot open shared object file: No such file or directory

ldd confirmed ... it's the only one missing ...

then I tried to compile ... autogen finishes with this error:

8. Downloading nDPI...
nDPI already available
8.1 Compiling nDPI...
./autogen.sh: line 478: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
nDPI compilation failed: please check errors

Any ideias ?

thanks!

-Ed
_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: nprobe install on centos [ In reply to ]
Hi Eduardo
the library should be installed as dependency. What is the version you are installing the stable or dev?

Luca

> On 09 Mar 2016, at 16:35, Eduardo <sathler90@gmail.com> wrote:
>
> Hi Folks,
>
> I am on centos 6.7 64bit, installed the nprobe binary but it's missing
> a library:
>
> nprobe: error while loading shared libraries: libnetfilter_queue.so.1:
> cannot open shared object file: No such file or directory
>
> ldd confirmed ... it's the only one missing ...
>
> then I tried to compile ... autogen finishes with this error:
>
> 8. Downloading nDPI...
> nDPI already available
> 8.1 Compiling nDPI...
> ./autogen.sh: line 478: ./configure: No such file or directory
> make: *** No targets specified and no makefile found. Stop.
> nDPI compilation failed: please check errors
>
> Any ideias ?
>
> thanks!
>
> -Ed
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: nprobe install on centos [ In reply to ]
Hi Luca,

thanks for the reply!

I am installing a bit old version which you sent us back on Sep. 2014:

nprobe_6.16.140709_svn4234.tgz

I was able to pass that error ... was missing nDPI lib ... now it
fails on make ... engine.c

/bin/sh ./config.status
config.status: creating Makefile
config.status: creating utils/Makefile
config.status: creating packages/nprobe.spec
config.status: creating packages/n2disk.spec
config.status: creating packages/n2disknt.spec
config.status: creating config.h
config.status: executing libtool commands
config.status: executing depfiles commands
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh
/home/engadm/nprobe/nprobe/nprobe/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory `/home/engadm/nprobe/nprobe/nprobe'
Making all in .
make[2]: Entering directory `/home/engadm/nprobe/nprobe/nprobe'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I /home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
cache.lo -MD -MP -MF .deps/cache.Tpo -c -o cache.lo cache.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I
/home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
cache.lo -MD -MP -MF .deps/cache.Tpo -c cache.c -fPIC -DPIC -o
.libs/cache.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I
/home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
cache.lo -MD -MP -MF .deps/cache.Tpo -c cache.c -o cache.o >/dev/null
2>&1
mv -f .deps/cache.Tpo .deps/cache.Plo
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I /home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
collect.lo -MD -MP -MF .deps/collect.Tpo -c -o collect.lo collect.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I
/home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
collect.lo -MD -MP -MF .deps/collect.Tpo -c collect.c -fPIC -DPIC -o
.libs/collect.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I
/home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
collect.lo -MD -MP -MF .deps/collect.Tpo -c collect.c -o collect.o
>/dev/null 2>&1
mv -f .deps/collect.Tpo .deps/collect.Plo
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I /home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
engine.lo -MD -MP -MF .deps/engine.Tpo -c -o engine.lo engine.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I
/home/engadm/nprobe/nprobe/nprobe/nDPI/src/include/
-I/usr/local/include -I/opt/local/include -O2 -I/usr/local/include
-I/opt/local/include -O2 -I/usr/local/include -I/opt/local/include -MT
engine.lo -MD -MP -MF .deps/engine.Tpo -c engine.c -fPIC -DPIC -o
.libs/engine.o
engine.c: In function âsetPayloadâ:
engine.c:229: error: incompatible types when assigning to type
âu_int16_tâ from type ândpi_protocolâ
engine.c:247: error: incompatible types when assigning to type
âu_int16_tâ from type ândpi_protocolâ
engine.c: In function âexportBucketâ:
engine.c:2976: error: incompatible types when assigning to type
âu_int16_tâ from type ândpi_protocolâ
make[2]: *** [engine.lo] Error 1
make[2]: Leaving directory `/home/engadm/nprobe/nprobe/nprobe'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/engadm/nprobe/nprobe/nprobe'
make: *** [all] Error 2

last few lines of autogen:
========================

configure: creating ./config.status
creating version.c
creating version.h


This is your nprobe 6.16.160309 configuration:

Host System Type : x86_64-unknown-linux-gnu (x86_64)
Compiler (cflags) : gcc -O2 -I/usr/local/include -I/opt/local/include
-DHAVE_CONFIG_H
Include path :
System Libs : -L/usr/local/lib -L/opt/local/lib -L/lib -lrt
-lresolv -lrt -ldl -lpthread
Core Libs : -lnuma -lpcap
Additional Libs :
libpcap in : standard installation
Install path : /usr/local

any help is appreciated.

thanks!

On Wed, Mar 9, 2016 at 2:47 PM, Luca Deri <deri@ntop.org> wrote:
> Hi Eduardo
> the library should be installed as dependency. What is the version you are installing the stable or dev?
>
> Luca
>
>> On 09 Mar 2016, at 16:35, Eduardo <sathler90@gmail.com> wrote:
>>
>> Hi Folks,
>>
>> I am on centos 6.7 64bit, installed the nprobe binary but it's missing
>> a library:
>>
>> nprobe: error while loading shared libraries: libnetfilter_queue.so.1:
>> cannot open shared object file: No such file or directory
>>
>> ldd confirmed ... it's the only one missing ...
>>
>> then I tried to compile ... autogen finishes with this error:
>>
>> 8. Downloading nDPI...
>> nDPI already available
>> 8.1 Compiling nDPI...
>> ./autogen.sh: line 478: ./configure: No such file or directory
>> make: *** No targets specified and no makefile found. Stop.
>> nDPI compilation failed: please check errors
>>
>> Any ideias ?
>>
>> thanks!
>>
>> -Ed
>> _______________________________________________
>> Ntop-misc mailing list
>> Ntop-misc@listgateway.unipi.it
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: nprobe install on centos [ In reply to ]
Luca,

the binary version that fails with the missing libnetfilter_queue.so.1
is this one:
nprobe.x86_64 7.2.160308-4471 @ntop


I tried nprobe 6.4.3_051011 ... that one fails with a different message


*** Warning: Linking the shared library libnprobe.la against the non-libtool
*** objects systemId.o is not portable!
libtool: link: gcc -shared .libs/collect.o .libs/engine.o
.libs/export.o .libs/database.o .libs/fb.o .libs/globals.o
.libs/plugin.o .libs/sflow_collect.o .libs/util.o .libs/version.o
systemId.o -L/usr/local/lib -L/opt/local/lib -lresolv -lpthread -ldl
-lutil -lm -lpython2.6 -lpcap -Wl,-soname -Wl,libnprobe-6.4.3.so -o
.libs/libnprobe-6.4.3.so
libtool: link: (cd ".libs" && rm -f "libnprobe.so" && ln -s
"libnprobe-6.4.3.so" "libnprobe.so")
libtool: link: ar cru .libs/libnprobe.a collect.o engine.o export.o
database.o fb.o globals.o plugin.o sflow_collect.o util.o version.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/usr/include/python2.6
-I/usr/include/python2.6 -I/usr/local/include -I/opt/local/include
-g -g -O2 -I/usr/local/include -I/opt/local/include
-I/usr/include/python2.6 -I/usr/include/python2.6 -MT nprobe-nprobe.o
-MD -MP -MF .deps/nprobe-nprobe.Tpo -c -o nprobe-nprobe.o `test -f
'nprobe.c' || echo './'`nprobe.c
nprobe.c:217: warning: conflicting types for âprintPcapStatsâ
nprobe.c:211: note: previous implicit declaration of âprintPcapStatsâ was here
mv -f .deps/nprobe-nprobe.Tpo .deps/nprobe-nprobe.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -g -g -O2
-I/usr/local/include -I/opt/local/include -I/usr/include/python2.6
-I/usr/include/python2.6 systemId.o -L/usr/local/lib -L/opt/local/lib
-pthread -lm -L/usr/local/lib -L/opt/local/lib -o nprobe
nprobe-nprobe.o libnprobe.la -lresolv -ldl -lpthread -lpthread -ldl
-lutil -lm -lpython2.6 -lpcap
libtool: link: gcc -g -g -O2 -I/usr/local/include -I/opt/local/include
-I/usr/include/python2.6 -I/usr/include/python2.6 systemId.o -pthread
-o .libs/nprobe nprobe-nprobe.o -L/usr/local/lib -L/opt/local/lib
./.libs/libnprobe.so -lresolv -lpthread -ldl -lutil -lm -lpython2.6
-lpcap -pthread -Wl,-rpath -Wl,/usr/local/lib
/usr/local/lib/libpcap.a(pcap.o): In function `pcap_next_ex':
(.text+0x13f0): multiple definition of `pcap_next_ex'
nprobe-nprobe.o:/home/engadm/nprobe/foo/nprobe_6.4.3_051011/nprobe.c:3174:
first defined here
/usr/local/lib/libpcap.a(pcap.o): In function `pcap_breakloop':
(.text+0x1364): undefined reference to `pfring_breakloop'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_set_watermark':
(.text+0x48): undefined reference to `pfring_set_poll_watermark'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_get_pfring_id':
(.text+0xe3): undefined reference to `pfring_get_ring_id'
/usr/local/lib/libpcap.a(pcap-linux.o): In function
`pcap_setfilter_linux_common':
(.text+0x2724): undefined reference to `pfring_get_bound_device_ifindex'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_stats_linux':
(.text+0x36ca): undefined reference to `pfring_stats'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_read_packet':
(.text+0x387e): undefined reference to `pfring_recv'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_cleanup_linux':
(.text+0x3e31): undefined reference to `pfring_close'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x449c): undefined reference to `pfring_enable_ring'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x44a8): undefined reference to `pfring_get_selectable_fd'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x4926): undefined reference to `pfring_open'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x4958): undefined reference to `pfring_set_socket_mode'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x49fd): undefined reference to `pfring_set_poll_watermark'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x4b0c): undefined reference to `pfring_enable_rss_rehash'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x4b6b): undefined reference to `pfring_set_application_name'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x4ba4): undefined reference to `pfring_set_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x4e4c): undefined reference to `pfring_set_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x4ef4): undefined reference to `pfring_set_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x5045): undefined reference to `pfring_set_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_activate_linux':
(.text+0x507d): undefined reference to `pfring_set_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o):(.text+0x50a4): more undefined
references to `pfring_set_cluster' follow
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_set_application_name':
(.text+0x78): undefined reference to `pfring_set_application_name'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_set_appl_name_linux':
(.text+0x8d): undefined reference to `pfring_set_application_name'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_set_master':
(.text+0xaf): undefined reference to `pfring_set_master'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_set_master_id':
(.text+0xc8): undefined reference to `pfring_set_master_id'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_set_cluster':
(.text+0x82f): undefined reference to `pfring_set_cluster'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_setdirection_linux':
(.text+0x4178): undefined reference to `pfring_set_direction'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_setdirection_linux':
(.text+0x4190): undefined reference to `pfring_set_direction'
/usr/local/lib/libpcap.a(pcap-linux.o): In function `pcap_inject_linux':
(.text+0x4229): undefined reference to `pfring_send'
collect2: ld returned 1 exit status
make[2]: *** [nprobe] Error 1
make[2]: Leaving directory `/home/engadm/nprobe/foo/nprobe_6.4.3_051011'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/engadm/nprobe/foo/nprobe_6.4.3_051011'
make: *** [all] Error 2

thanks!


On Wed, Mar 9, 2016 at 2:47 PM, Luca Deri <deri@ntop.org> wrote:
> Hi Eduardo
> the library should be installed as dependency. What is the version you are installing the stable or dev?
>
> Luca
>
>> On 09 Mar 2016, at 16:35, Eduardo <sathler90@gmail.com> wrote:
>>
>> Hi Folks,
>>
>> I am on centos 6.7 64bit, installed the nprobe binary but it's missing
>> a library:
>>
>> nprobe: error while loading shared libraries: libnetfilter_queue.so.1:
>> cannot open shared object file: No such file or directory
>>
>> ldd confirmed ... it's the only one missing ...
>>
>> then I tried to compile ... autogen finishes with this error:
>>
>> 8. Downloading nDPI...
>> nDPI already available
>> 8.1 Compiling nDPI...
>> ./autogen.sh: line 478: ./configure: No such file or directory
>> make: *** No targets specified and no makefile found. Stop.
>> nDPI compilation failed: please check errors
>>
>> Any ideias ?
>>
>> thanks!
>>
>> -Ed
>> _______________________________________________
>> Ntop-misc mailing list
>> Ntop-misc@listgateway.unipi.it
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
_______________________________________________
Ntop-misc mailing list
Ntop-misc@listgateway.unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-misc