
alan at three6five
May 25, 2011, 6:26 AM
Post #2 of 4
(519 views)
Permalink
|
Hi Stefan I had this problem yesterday, we solved it by: nprobe.h change from: #include "pcap.h" to #include <pcap/pcap.h> Makefile (add -lpcap to the LIBS option) LIBS = -lsqlite3 -lpthread -lpcap and run make again. cheers alan On 25 May 2011, at 3:19 PM, Stefan Pavlov wrote: > Hello, > I try to compile nprobe 6.4.3 under FreeBSD 7.3 but have some shared library problems i think. I have working 5.2.6 version of nprobe and want to install the > new one. I tryed to compile libpcap from source but have the same error. aclocal autoconf ./configure does not help too. > What i need to do? Here are the error: > > $ ./autogen > ----------------------------------------------------------------------------------------------------------------- > configure: creating ./config.status > test: .: unexpected operator > creating version.c > > > This is your nprobe 6.4.3 configuration: > > Target Name : > Host System Type : i386-unknown-freebsd7.3 (i386) > Compiler (cflags) : gcc -DFREEBSD -g -g -O2 -I/usr/local/include -I/opt/local/include -DHAVE_CONFIG_H > Include path : > System Libs : -L/usr/local/lib -L/opt/local/lib -lsqlite3 -lpthread > Core Libs : > Additional Libs : > LBL pcap in : > Install path : /usr/local > > Now type 'make' or 'gmake' (GNU make) on *BSD and Solaris > systems to build . > > > > IMPORTANT > > Please type 'make datfiles' in order to download the data file > necessary for geolocation. > > > > > $ gmake > ------------------------------------------------------------------------------------------------------------------- > *** Warning: Linking the shared library libnprobe.la against the non-libtool > *** objects systemId.o is not portable! > libtool: link: cc -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 -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -L/opt/local/lib > /usr/local/lib/libsqlite3.so -lpthread -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/local/include -I/opt/local/include -DFREEBSD -g -g -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 > nprobe.c:217: warning: conflicting types for 'printPcapStats' > nprobe.c:211: warning: 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 -DFREEBSD -g -g -O2 -I/usr/local/include -I/opt/local/include 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 -lsqlite3 -lpthread > libtool: link: gcc -DFREEBSD -g -g -O2 -I/usr/local/include -I/opt/local/include systemId.o -pthread -o .libs/nprobe nprobe-nprobe.o -L/usr/local/lib - > L/opt/local/lib -lm ./.libs/libnprobe.so /usr/local/lib/libsqlite3.so -lpthread -pthread -Wl,-rpath -Wl,/usr/local/lib > nprobe-nprobe.o(.text+0x1129): In function `pcap_next_ex': > /usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3177: undefined reference to `pcap_next' > nprobe-nprobe.o(.text+0x1257): In function `term_pcap': > /usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:2870: undefined reference to `pcap_stats' > nprobe-nprobe.o(.text+0x130d): In function `openDevice': > /usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3051: undefined reference to `pcap_lookupdev' > nprobe-nprobe.o(.text+0x1357):/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3087: undefined reference to `pcap_open_live' > nprobe-nprobe.o(.text+0x13b0):/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3026: undefined reference to `pcap_open_offline' > nprobe-nprobe.o(.text+0x13e4):/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3118: undefined reference to `pcap_datalink' > nprobe-nprobe.o(.text+0x1421):/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3128: undefined reference to `pcap_compile' > nprobe-nprobe.o(.text+0x1436):/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3128: undefined reference to `pcap_setfilter' > nprobe-nprobe.o(.text+0x14d6):/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3035: undefined reference to `pcap_open_offline' > nprobe-nprobe.o(.text+0x16da): In function `printPcapStats': > /usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:220: undefined reference to `pcap_stats' > nprobe-nprobe.o(.text+0x6798): In function `fetchPackets': > /usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3303: undefined reference to `pcap_geterr' > nprobe-nprobe.o(.text+0x67f0):/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!/nprobe.c:3152: undefined reference to `pcap_geterr' > gmake[2]: *** [nprobe] Error 1 > gmake[2]: Leaving directory `/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/usr/home/spavlov/nprobe_6.4.3_051011-ne-se-kompilira!' > gmake: *** [all] Error 2 > _______________________________________________ > Ntop-misc mailing list > Ntop-misc [at] listgateway > http://listgateway.unipi.it/mailman/listinfo/ntop-misc -- Alan Kemp email: alan [at] three6five mobile: +27 83 257 5970 three6five systems _______________________________________________ Ntop-misc mailing list Ntop-misc [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop-misc
|