Thomas Anders wrote:
Radek Vokál wrote:
Hi, I can't figure out where the problem. Net-snmp doesn't configure with ethtool because the following test crashes

configure:20372: checking for linux/ethtool.h
configure:20394: gcc -c -DINET6 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -lcrypto -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE conftest.c >&5
In file included from conftest.c:134:
/usr/include/linux/ethtool.h:18: error: expected specifier-qualifier-list before '__u32'

net-snmp version? OS version? configure options?


+Thomas


I'm sending you a patch which fixies the issue for me. This is Fedora Core 6 and RHEL5 issue. Net-snmp 5.3.1 and 5.4

Radek

--
Radek Vokál <[EMAIL PROTECTED]>
Base OS Engineering - Team Lead

Office: +420 543 422 235
Red Hat Inc.                               http://www.redhat.com
--- net-snmp-5.3.1/configure.ethtool-config	2007-01-11 16:11:37.000000000 +0100
+++ net-snmp-5.3.1/configure	2007-01-11 16:16:55.000000000 +0100
@@ -20382,10 +20382,10 @@
 /* end confdefs.h.  */
 
 #include <sys/types.h>
-typedef unsigned long long u64;         /* hack, so we may include kernel's ethtool.h */
-typedef __uint32_t u32;         /* ditto */
-typedef __uint16_t u16;         /* ditto */
-typedef __uint8_t u8;           /* ditto */
+typedef unsigned long long __u64;         /* hack, so we may include kernel's ethtool.h */
+typedef __uint32_t __u32;         /* ditto */
+typedef __uint16_t __u16;         /* ditto */
+typedef __uint8_t __u8;           /* ditto */
 
 
 #include <$ac_header>
--- net-snmp-5.3.1/agent/mibgroup/if-mib/data_access/interface_linux.c.ethtool-config	2007-01-11 16:11:37.000000000 +0100
+++ net-snmp-5.3.1/agent/mibgroup/if-mib/data_access/interface_linux.c	2007-01-11 16:11:37.000000000 +0100
@@ -27,10 +27,10 @@
 
 #ifdef HAVE_LINUX_ETHTOOL_H
 #include <sys/types.h>
-typedef unsigned long long u64;         /* hack, so we may include kernel's ethtool.h */
-typedef __uint32_t u32;         /* ditto */
-typedef __uint16_t u16;         /* ditto */
-typedef __uint8_t u8;           /* ditto */
+typedef unsigned long long __u64;         /* hack, so we may include kernel's ethtool.h */
+typedef __uint32_t __u32;         /* ditto */
+typedef __uint16_t __u16;         /* ditto */
+typedef __uint8_t __u8;           /* ditto */
 #include <linux/ethtool.h>
 #endif /* HAVE_LINUX_ETHTOOL_H */
 #include <linux/sockios.h>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to