The route.h stuff is fixed... --- 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]) As for IPv6, I'm not the one testing that... -----Burton > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > Julien TOUCHE > Sent: Friday, December 19, 2003 2:26 PM > To: [EMAIL PROTECTED] > Subject: Re: [Ntop] ntop + openbsd > > > > oops forgotten some part: > > #include <sys/param.h> > is needed before sysctl.h include > > and there is another error related to route.h, which need before > #include <sys/socket.h> > > with this + patch-config_h on today's cvs HEAD, i get compile to: > > 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 > hash.c -Wp,-MD,.deps/hash.TPlo -fPIC -DPIC -o .libs/hash.lo > hash.c: In function `lookupHost': > hash.c:874: `_in6addr_linklocal_allnodes' undeclared (first use in this > function) > hash.c:874: (Each undeclared identifier is reported only once > hash.c:874: for each function it appears in.) > gmake[2]: *** [hash.lo] Error 1 > > Regards > > Julien > _______________________________________________ > Ntop mailing list > [EMAIL PROTECTED] > http://listgateway.unipi.it/mailman/listinfo/ntop > _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
