[prev in list] [next in list] [prev in thread] [next in thread] 

List:       redhat-devel
Subject:    CMU SNMP patch for Linux/Alpha
From:       "Erik J. Verbruggen" <erik () bigmama ! coriolis ! nl>
Date:       1997-05-18 17:19:15
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----

Hi,

I really don't know where to send this, so I'm dropping it here :) (I also
send a copy to Erik Schoenfelder (schoenfr@gaertner.de) and Juergen
Schoenwaelder (schoenw@cs.utwente.de) mentioned at the end of the
README.linux).

Today I made a patch for Linux/Alpha to make CMU-SNMP build without
warnings/errors on my Alpha. The patch is attached to this mail. If you
prefer a new SRPM, tell me. Or better: tell me who is maintaining this
(S)RPM, so I can send him the patch directly. Also drop me a message
telling me where to drop this kinda mail next time :)

Thanks, Erik.
 
- ---
Erik J. Verbruggen -- Unix freak, BUFH, caffeine addict and more!
Home:                <erik@bigmama.coriolis.nl>,        phone: +31-24-3236420
University:          <everbrug@sci.kun.nl>, room A6034, phone: +31-24-3652162
PGP public key:      finger everbrug@violet.sci.kun.nl
World Wide sideWalk: http://elfje.cs.kun.nl:8000/~everbrug/
Nickname on IRC:     Daneel (on #koffie)

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBM38dzSXo8iTVXuihAQHPngQAjZgEaH1y/gHIUW0u/2DQ2h7T1DxfR5Ni
D0TeNsY/ojPIyj8ROQC9XQtbnRg3aVj1Hj7gmAeMnrDaV2g4dqJ+FCqGwn2WQyQD
74wtmUaG9bIHXuCG/bm4iAdvpMqaP9BEjMhxYBTK/XlFyRn8+DEQNh08Km7VWOqR
cG7Wa4Pb6LI=
=y7eq
-----END PGP SIGNATURE-----

["cmu-snmp-linux-3.2-alpha.patch" (TEXT/PLAIN)]

diff -Nurd cmu-snmp-linux-3.2/Makefile cmu-snmp-linux-3.2-patched.version/Makefile
--- cmu-snmp-linux-3.2/Makefile	Mon Aug 12 23:37:36 1996
+++ cmu-snmp-linux-3.2-patched.version/Makefile	Sun May 18 16:30:39 1997
@@ -21,7 +21,7 @@
 
 ## where to install mib.txt and the shared library:
 LIBDIR=$(prefix)/lib
-SHLIBDIR=/lib
+SHLIBDIR=$(prefix)/lib
 
 ## where to install the snmp/snmp*h headers:
 INCDIR=$(prefix)/include
@@ -32,7 +32,7 @@
 ##
 ## used for installation:
 ##
-INSTALL =		/bin/install -c
+INSTALL =		install
 INSTALL_PROGRAM =	${INSTALL}
 INSTALL_DATA =		${INSTALL} -m 644
 
diff -Nurd cmu-snmp-linux-3.2/apps/authkey.c \
                cmu-snmp-linux-3.2-patched.version/apps/authkey.c
--- cmu-snmp-linux-3.2/apps/authkey.c	Wed Jun  5 21:46:27 1996
+++ cmu-snmp-linux-3.2-patched.version/apps/authkey.c	Sun May 18 16:52:38 1997
@@ -1,6 +1,7 @@
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "snmp.h"
 #include "snmp_impl.h"
diff -Nurd cmu-snmp-linux-3.2/apps/snmp_var_route.c \
                cmu-snmp-linux-3.2-patched.version/apps/snmp_var_route.c
--- cmu-snmp-linux-3.2/apps/snmp_var_route.c	Mon Aug 12 22:52:16 1996
+++ cmu-snmp-linux-3.2-patched.version/apps/snmp_var_route.c	Sun May 18 16:41:19 1997
@@ -49,7 +49,6 @@
 #endif
 #undef	KERNEL
 #define rt_unit rt_hash		       /* Reuse this field for device # */
-#include <nlist.h>
 #ifndef NULL
 # define NULL 0
 #endif
diff -Nurd cmu-snmp-linux-3.2/apps/snmp_vars.c \
                cmu-snmp-linux-3.2-patched.version/apps/snmp_vars.c
--- cmu-snmp-linux-3.2/apps/snmp_vars.c	Mon Aug 12 21:34:28 1996
+++ cmu-snmp-linux-3.2-patched.version/apps/snmp_vars.c	Sun May 18 16:36:58 1997
@@ -105,7 +105,6 @@
 #include <netinet/ip_icmp.h>
 #include <netinet/icmp_var.h>
 #endif
-#include <nlist.h>
 #ifndef linux
 #include <sys/protosw.h>
 #endif
diff -Nurd cmu-snmp-linux-3.2/apps/snmpd.c \
                cmu-snmp-linux-3.2-patched.version/apps/snmpd.c
--- cmu-snmp-linux-3.2/apps/snmpd.c	Mon Aug 12 22:48:55 1996
+++ cmu-snmp-linux-3.2-patched.version/apps/snmpd.c	Sun May 18 16:50:40 1997
@@ -351,7 +351,7 @@
     int sd;
 {
     struct sockaddr_in	from;
-    int length, out_length, fromlength;
+    ssize_t length, out_length, fromlength;
     u_char  packet[SNMP_MAX_LEN], outpacket[SNMP_MAX_LEN];
 
     fromlength = sizeof from;
diff -Nurd cmu-snmp-linux-3.2/apps/snmpnetstat/main.c \
                cmu-snmp-linux-3.2-patched.version/apps/snmpnetstat/main.c
--- cmu-snmp-linux-3.2/apps/snmpnetstat/main.c	Thu Jun 27 00:31:45 1996
+++ cmu-snmp-linux-3.2-patched.version/apps/snmpnetstat/main.c	Sun May 18 16:53:57 \
1997 @@ -48,6 +48,7 @@
 #include <netdb.h>
 #include <stdio.h>
 #include <netinet/in.h>
+#include <string.h>
 #include "asn1.h"
 #include "snmp.h"
 #include "snmp_api.h"
diff -Nurd cmu-snmp-linux-3.2/snmplib/snmp_api.c \
                cmu-snmp-linux-3.2-patched.version/snmplib/snmp_api.c
--- cmu-snmp-linux-3.2/snmplib/snmp_api.c	Sun Jul 14 11:34:04 1996
+++ cmu-snmp-linux-3.2-patched.version/snmplib/snmp_api.c	Sun May 18 16:48:01 1997
@@ -808,7 +808,7 @@
     struct snmp_internal_session *isp;
     u_char packet[PACKET_LENGTH];
     struct sockaddr_in	from;
-    int length, fromlength;
+    ssize_t length, fromlength;
     struct snmp_pdu *pdu;
     struct request_list *rp, *orp;
 
diff -Nurd cmu-snmp-linux-3.2/snmplib/usec.c \
                cmu-snmp-linux-3.2-patched.version/snmplib/usec.c
--- cmu-snmp-linux-3.2/snmplib/usec.c	Sat Jul 13 15:44:56 1996
+++ cmu-snmp-linux-3.2-patched.version/snmplib/usec.c	Sun May 18 16:49:08 1997
@@ -44,7 +44,7 @@
         while( len-- ) {
 		if( i == 16 ) {
                         asc[ i ] = 0;
-                        fprintf( stderr, "%s%08x %s %s\n", hdr, (int) msg - i, hex, \
asc ); +                        fprintf( stderr, "%s%08x %s %s\n", hdr, (ssize_t) msg \
- i, hex, asc );  i = 0;
                 }
 
@@ -55,7 +55,7 @@
         }
         if( i ) {
                 asc[ i ] = 0;
-                fprintf( stderr, "%s%08x %-48s %s\n", hdr, (int) msg - i, hex, asc \
); +                fprintf( stderr, "%s%08x %-48s %s\n", hdr, (ssize_t) msg - i, \
hex, asc );  }
 }
 


--
To unsubscribe:
mail -s unsubscribe redhat-devel-list-request@redhat.com < /dev/null


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic