Mailing List Archive

problem compiling ntop on RH 7.1
I am getting the error below when running make on Redhat 7.1 using 12/07/01
snapshot of ntop. I do not get any errors when running ./configure. I have
setup mysql, created the NTOP db, run the batch to create the correct tables
and installed the DBD::mysql module. Is there anything that I am missing??


[root@ntop ntop]# make
make all-recursive
make[1]: Entering directory `/usr/src/redhat/SOURCES/ntop-current/ntop'
Making all in .
make[2]: Entering directory `/usr/src/redhat/SOURCES/ntop-current/ntop'
/bin/sh ./libtool --mode=link gcc -g -O2 -pipe -o ntop main.o
libntopreport.la
bntop.la -lpcap -lpthread -lresolv -lnsl -ldl -L/usr/lib/mysql -lmysqlclie
nt -lcrypt -lm -lssl -lcrypto
gcc -g -O2 -pipe -o .libs/ntop main.o
.libs/libntopreport.so -L/usr/lib/mysql -lmysqlclient -lcrypt -lm -lssl -lcr
ypto -lpcap -lpthread -lresolv -lnsl -ldl -lmysqlclient -lcrypt -lm -lssl -l
crypto
.libs/libntop.so -lgdbm -lpcap -lpthread -lresolv -lnsl -ldl -lmysqlclient -
lcrypt -lm -lssl -lcrypto -lpcap -lpthread -lresolv -lnsl -ldl -L/usr/lib/my
sql -lmysqlclient -lcrypt -lm -lssl -lcrypto -Wl,--rpath -Wl,/usr/local/lib
main.o: In function `main':
/usr/src/redhat/SOURCES/ntop-current/ntop/main.c:212: undefined reference to
`handlemySQLSupport'
.libs/libntop.so: undefined reference to `mySQLupdateHostNameInfo'
.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 `mySQLnotifyHostCreation'
.libs/libntop.so: undefined reference to `mySQLupdateDBOSname'
collect2: ld returned 1 exit status
make[2]: *** [ntop] Error 1
make[2]: Leaving directory `/usr/src/redhat/SOURCES/ntop-current/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/ntop-current/ntop'
make: *** [all-recursive-am] Error 2
[root@ntop ntop]#


Martin Potgieter