Mailing List Archive

error building ntop
I'm having trouble building ntop. I was wondering if someone could give me
a hand.

Below is the last chunk of the make output:


creating libntopreport.la
(cd .libs && rm -f libntopreport.la && ln -s ../libntopreport.la
libntopreport.la)
gcc -DHAVE_CONFIG_H -I. -I/usr/include/pcap -I/usr/include/openssl -g -O2
-pipe -c main.c
/bin/sh ./libtool --mode=link gcc -g -O2 -pipe -o ntop main.o
libntopreport.la libntop.la -lpthread -lresolv -lnsl -ldl -L/usr/lib/mysql
-lmysqlclient -lcrypt -lm -lssl -lcrypto
gcc -g -O2 -pipe -o .libs/ntop main.o .libs/libntopreport.so
-L/usr/lib/mysql -lmysqlclient -lcrypt -lm -lssl -lcrypto -lpthread -lresolv
-lnsl -ldl -lmysqlclient -lcrypt -lm -lssl -lcrypto .libs/libntop.so -lpcap
-lgdbm -lpthread -lresolv -lnsl -ldl -lmysqlclient -lcrypt -lm -lssl
-lcrypto -lpthread -lresolv -lnsl -ldl -L/usr/lib/mysql -lmysqlclient
-lcrypt -lm -lssl -lcrypto -Wl,--rpath -Wl,/usr/local/lib
main.o: In function `main':
/usr/local/src/NTOP/ntop-current/ntop/main.c:212: undefined reference to
`handleNetFlowSupport'
/usr/local/src/NTOP/ntop-current/ntop/main.c:218: undefined reference to
`handlemySQLSupport'
.libs/libntop.so: undefined reference to `mySQLupdateHostNameInfo'
.libs/libntop.so: undefined reference to `sendICMPflow'
.libs/libntop.so: undefined reference to `sendUDPflow'
.libs/libntop.so: undefined reference to `mySQLnotifyTCPSession'
.libs/libntop.so: undefined reference to `closemySQLsocket'
.libs/libntop.so: undefined reference to `mySQLupdateHostTraffic'
.libs/libntop.so: undefined reference to `sendTCPSessionFlow'
.libs/libntop.so: undefined reference to `mySQLnotifyHostCreation'
.libs/libntop.so: undefined reference to `mySQLupdateDBOSname'
collect2: ld returned 1 exit status
gmake[2]: *** [ntop] Error 1
gmake[2]: Leaving directory `/usr/local/src/NTOP/ntop-current/ntop'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/NTOP/ntop-current/ntop'
gmake: *** [all-recursive-am] Error 2



Peter Matulis
AW: error building ntop [ In reply to ]
hello

same here
***
usr/local/src/NTOP/ntop-current/ntop/main.c:212: undefined reference to
`handleNetFlowSupport'
/usr/local/src/NTOP/ntop-current/ntop/main.c:218: undefined reference to
`handlemySQLSupport'
.libs/libntop.so: undefined reference to `mySQLupdateHostNameInfo'
***
just delete the ntop folder and download/resync from cvs again.
it worked for me today.

regards
lothar