MODULECPP="$CPP -I${srcdir}/include -I${srcdir}/agent/mibgroup"
if test "x$enable_mfd_rewrites" = "xyes"; then
MODULECPP="$MODULECPP -DNETSNMP_ENABLE_MFD_REWRITES"
fiThe version you patched from the 27th (I think) went something like:
MODULECPP="$CPP -I${srcdir}/include -I${srcdir}/agent/mibgroup"
I${srcdir}/agent/mibgroup" if test "x$enable_mfd_rewrites" = "xyes"; then
MODULECPP="$MODULECPP -DNETSNMP_ENABLE_MFD_REWRITES"
fiSince I am not entirely sure what is being accomplished in that section of configure a little guidance will be appreciated.
Andy
Robert Story (Coders) wrote:
On Thu, 28 Oct 2004 20:49:18 -0500 Andy wrote:
AS> if-mib/data_access/interface_ioctl.c:37: warning: "struct ifreq" AS> declared inside parameter list
AS> if-mib/data_access/interface_ioctl.c:37: warning: its scope is only this AS> definition or declaration, which is probably not what you want
AS> if-mib/data_access/interface_ioctl.c: In function `_ioctl_get':
AS> if-mib/data_access/interface_ioctl.c:63: error: dereferencing pointer to AS> incomplete type
Did you not get my last response in the previous thread, with a patch to mibII/interfaces.h to not require the interface data access stuff? I'm pretty sure it isn't used on windows, so it needn't be pulled in.
Apply patch, run autoconf, and re-configure. It shouldn't pull in the if-mib/data_access modules at all. Email me back if it does. Better yet, stop by the IRC channel, as we are running out of time before 5.2.rc2.
Index: agent/mibgroup/mibII/interfaces.h
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/agent/mibgroup/mibII/interfaces.h,v
retrieving revision 5.9
diff -u -r5.9 interfaces.h
--- agent/mibgroup/mibII/interfaces.h 17 Oct 2004 01:53:43 -0000 5.9
+++ agent/mibgroup/mibII/interfaces.h 27 Oct 2004 03:38:24 -0000
@@ -6,7 +6,9 @@
#define _MIBGROUP_INTERFACES_H
config_require(util_funcs)
+#if !defined(WIN32) && !defined(mingw32)
config_require(if-mib/data_access/interface)
+#endif
config_arch_require(solaris2, kernel_sunos5)
/*
* need get_address in var_route for some platforms (USE_SYSCTL_IFLIST).
Index: configure.in
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/configure.in,v
retrieving revision 5.130
diff -u -r5.130 configure.in
--- configure.in 26 Oct 2004 12:37:44 -0000 5.130
+++ configure.in 27 Oct 2004 03:39:57 -0000
@@ -1737,7 +1737,7 @@
AC_MSG_RESULT([$new_module_list.])
AC_MSG_CACHE_ADD(Agent MIB code: $new_module_list)
-MODULECPP="$CPP -I${srcdir}/include -I${srcdir}/agent/mibgroup"
+MODULECPP="$CPP -D$PARTIALTARGETOS -I${srcdir}/include
-I${srcdir}/agent/mibgroup" if test "x$enable_mfd_rewrites" = "xyes"; then
MODULECPP="$MODULECPP -DNETSNMP_ENABLE_MFD_REWRITES"
fi
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
