I am trying to compile ntop on RHEL4 U2:
uname -a
Linux rhel4-1.mydomain 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux
could someone help out with below error on 'make'? I have executed autogen.sh successfully (./autogen.sh --with-rrd-home=/usr/local/rrdtool- 1.2.15 --with-tcpwrap --enable-jumbo-frames --without-xmldump) but then ran into problem with make.
I actually do not need any statistics persistence with mysql.
[EMAIL PROTECTED] ntop]# make
make all-recursive
make[1]: Entering directory `/root/ntop_install/ntop'
Making all in .
make[2]: Entering directory `/root/ntop_install/ntop'
if /bin/sh ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -lwrap -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I/usr/local/rrdtool- 1.2.15/include -DLINUX -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -MT database.lo -MD -MP -MF ".deps/database.Tpo" -c -o database.lo database.c; \
then mv -f ".deps/database.Tpo" ".deps/database.Plo"; else rm -f ".deps/database.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -lwrap -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I/usr/local/rrdtool-1.2.15/include -DLINUX -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/usr/include/mysql -I/usr/local/mysql/include -MT database.lo -MD -MP -MF .deps/database.Tpo -c database.c -fPIC -DPIC -o .libs/database.o
In file included from ntop.h:384,
from database.c:24:
/usr/include/mysql/mysql.h:664: warning: declaration of 'bind' shadows a global declaration
/usr/include/sys/socket.h:111: warning: shadowed declaration is here
database.c:40: warning: no previous prototype for 'is_db_enabled'
database.c: In function `init_database':
database.c:164: error: `MYSQL_OPT_RECONNECT' undeclared (first use in this function)
database.c:164: error: (Each undeclared identifier is reported only once
database.c:164: error: for each function it appears in.)
database.c: At top level:
database.c:392: warning: no previous prototype for 'initDB'
database.c:418: warning: no previous prototype for 'termDB'
make[2]: *** [database.lo] Error 1
make[2]: Leaving directory `/root/ntop_install/ntop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ntop_install/ntop'
make: *** [all] Error 2
thanks in advance,
Michael
_______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
