The route.h stuff is fixed...seems there is still a pb:
--- configure.in 11 Dec 2003 00:08:50 -0000 2.183 +++ configure.in 22 Dec 2003 12:30:27 -0000 2.184
specifically:
@@ -2022,7 +2022,12 @@ #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif]) -AC_CHECK_HEADERS([sys/sysctl.h net/if_dl.h net/route.h]) +AC_CHECK_HEADERS([sys/sysctl.h net/if_dl.h]) +AC_CHECK_HEADERS([net/route.h], [], [], [ +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif]) + dnl> Note - if ethertype is missing, ntop.h has the critical #defines extracted... AC_CHECK_HEADERS([ethertype.h]) AC_CHECK_HEADERS([net/ppp_defs.h])
* compile (today's HEAD + patch-config_h)
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include -I/usr/local/include/libpng -I/share2/tmp/_testing/ntop/ntop-cvs-HEAD/ntop/myrrd -DOPENBSD -I/usr/local/include -I/usr/local/include -I/usr/local/include/libpng -I/share2/tmp/_testing/ntop/ntop-cvs-HEAD/ntop/myrrd -g -I/usr/include/glib-1.2 -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -g -I/usr/include/glib-1.2 -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -c iface.c -Wp,-MD,.deps/iface.TPlo -fPIC -DPIC -o .libs/iface.lo
iface.c: In function `iface_new':
iface.c:119: `RTM_IFINFO' undeclared (first use in this function)
iface.c:119: (Each undeclared identifier is reported only once
iface.c:119: for each function it appears in.)
iface.c:125: `RTM_NEWADDR' undeclared (first use in this function)
iface.c:205: `RTAX_MAX' undeclared (first use in this function)
iface.c:234: `RTAX_IFA' undeclared (first use in this function)
iface.c:240: `RTAX_BRD' undeclared (first use in this function)
iface.c:241: `RTAX_NETMASK' undeclared (first use in this function)
gmake[2]: *** [iface.lo] Error 1
gmake[2]: Leaving directory `/share2/tmp/_testing/ntop/ntop-cvs-HEAD/ntop'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/share2/tmp/_testing/ntop/ntop-cvs-HEAD/ntop'
gmake: *** [all] Error 2
$ grep route.h * config.h:/* Define to 1 if you have the <net/route.h> header file. */ config.h.in:/* Define to 1 if you have the <net/route.h> header file. */ config.h.orig:/* Define to 1 if you have the <net/route.h> header file. */ config.log:configure:13054: checking for net/route.h config.log:/usr/include/net/route.h:62: syntax error before `u_long' config.log:In file included from /usr/include/net/route.h:91, config.log:/usr/include/net/route.h:98: syntax error before `u_int' config.log:/usr/include/net/route.h:100: syntax error before `u_long' config.log:/usr/include/net/route.h:104: syntax error before `caddr_t' config.log:/usr/include/net/route.h:117: syntax error before `u_int32_t' config.log:/usr/include/net/route.h:120: syntax error before `int16_t' config.log:/usr/include/net/route.h:153: syntax error before `u_int32_t' config.log:/usr/include/net/route.h:164: syntax error before `u_short' config.log:/usr/include/net/route.h:170: syntax error before `pid_t' config.log:/usr/include/net/route.h:174: syntax error before `u_long' config.log:/usr/include/net/route.h:259: syntax error before `time_t' config.log:| #include <net/route.h> config.log:ac_cv_header_net_route_h=no configure:for ac_header in net/route.h configure.in:AC_CHECK_HEADERS([net/route.h], [], [], [ log.ntop:checking for net/route.h... no ntop.h:#include <net/route.h>
so error in config.log
- for configure test, need '#include <sys/types.h>' first (before socket.h)
- in fact, it is the same for the test of net/if.h else, failed
- for openbsd, ip6.h is /usr/include/netinet/ip6.h, but seems, other headers needed ...
$ gcc -c -g -I/usr/include/glib-1.2 -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DOPENBSD -I/usr/local/include -I/usr/local/include -I/usr/local/include/libpng conftest.c
In file included from configure:17164:
/usr/include/netinet/ip6.h:82: field `ip6_src' has incomplete type
/usr/include/netinet/ip6.h:83: field `ip6_dst' has incomplete type
same for /usr/include/netinet/icmp6.h
but (just after changing ntop.h & gmake clean)
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/usr/local/include -I/usr/local/include/libpng -I/share2/tmp/_testing/ntop/ntop-cvs-HEAD/ntop/myrrd -DOPENBSD -I/usr/local/include -I/usr/local/include -I/usr/local/include/libpng -I/share2/tmp/_testing/ntop/ntop-cvs-HEAD/ntop/myrrd -g -I/usr/include/glib-1.2 -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -g -I/usr/include/glib-1.2 -I/usr/local/include -g -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -c address.c -Wp,-MD,.deps/address.TPlo -fPIC -DPIC -o .libs/address.lo
In file included from ntop.h:196,
from address.c:21:
/usr/include/net/route.h:54: field `ro_dst' has incomplete type
In file included from ntop.h:196,
from address.c:21:
/usr/include/net/route.h:118: field `rt_dst' has incomplete type
/usr/include/net/route.h:119: field `rt_gateway' has incomplete type
gmake[2]: *** [address.lo] Error 1
i will wait for above correction with a pristine HEAD. in my previous post, param.h/socket.h/route.h solve this.
ok
As for IPv6, I'm not the one testing that...
Regards
Julien _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
