Hi,

The following patch adds LynxOS support to Net-SNMP.
Patch is generated against net-snmp-5.3.1.pre3.
I'm now able to build libraries and applications
but agent is not working yet.

To correcly detect LynxOS, config.guess and config.sub
need to be updated. I used the latest versions from:

        http://cvs.savannah.gnu.org/viewcvs/config/config/

Could somebody review and apply these changes to Net-SNMP
package?

Thanks,
Olli

diff -urN net-snmp-5.3.1.pre3.orig/Makefile.in net-snmp-5.3.1.pre3/Makefile.in
--- net-snmp-5.3.1.pre3.orig/Makefile.in	2005-11-16 04:04:05.000000000 +0200
+++ net-snmp-5.3.1.pre3/Makefile.in	2006-05-29 16:19:04.000000000 +0300
@@ -18,7 +18,7 @@
 INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
 	darwin.h darwin7.h darwin8.h freebsd5.h freebsd6.h \
 	dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd.h generic.h hpux.h \
-	irix.h linux.h mingw32.h mips.h netbsd.h openbsd.h osf5.h \
+	irix.h linux.h lynxos.h mingw32.h mips.h netbsd.h openbsd.h osf5.h \
 	solaris2.6.h solaris2.7.h solaris2.8.h solaris2.9.h solaris2.10.h \
 	solaris.h sunos.h svr5.h sysv.h ultrix4.h
 INCLUDESUBDIR2=machine
diff -urN net-snmp-5.3.1.pre3.orig/README.LynxOS net-snmp-5.3.1.pre3/README.LynxOS
--- net-snmp-5.3.1.pre3.orig/README.LynxOS	1970-01-01 02:00:00.000000000 +0200
+++ net-snmp-5.3.1.pre3/README.LynxOS	2006-05-29 16:18:35.000000000 +0300
@@ -0,0 +1,23 @@
+Some notes for the LynxOS port
+==============================
+
+1. Compiling
+------------
+
+net-snmp 5.3.1 libraries and applications have been compiled
+successfully on Lynx 4.0 using the GCC version 3.2.2. It was
+configured with command:
+
+        ./configure --disable-agent        
+
+Please note that the agent module doesn't compile on LynxOS.
+
+
+2. Feedback
+-----------
+
+Please also see README and PORTING.
+
+If you have questions, additional insights or (even better) patches regarding
+net-snmp on LynxOS, please refer to the net-snmp mailing lists (see 
+http://www.net-snmp.org/support/mailinglists.html).
diff -urN net-snmp-5.3.1.pre3.orig/include/net-snmp/system/lynxos.h net-snmp-5.3.1.pre3/include/net-snmp/system/lynxos.h
--- net-snmp-5.3.1.pre3.orig/include/net-snmp/system/lynxos.h	1970-01-01 02:00:00.000000000 +0200
+++ net-snmp-5.3.1.pre3/include/net-snmp/system/lynxos.h	2006-05-29 16:18:35.000000000 +0300
@@ -0,0 +1,15 @@
+/*
+ * lynxos.h
+ * 
+ * Date Created: Mon May 29 14:41:40 EEST 2006
+ * Author:       Olli Savia  <[EMAIL PROTECTED]>
+ */
+
+#define __NO_INCLUDE_WARN__
+
+#include <net-snmp/system/generic.h>
+
+/*
+ * ARP_Scan_Next needs a 4th ifIndex argument 
+ */
+#define ARP_SCAN_FOUR_ARGUMENTS 1

Reply via email to