The firts Ploblem, compliling :)

Augusto Salazar <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Greetings,

I am new to all this SNMP but I will be dealing with it a lot so I am
reading lots of thing and I want to see something working now after all the
theory.

I am running RE 9, Kernel 2.4..

I got the net-snmp-5.3.pre3, ran the ./configure, left the options on
default and then on the make I got these:


[root@linux net-snmp-5.3.pre3]# make
making all in /linux/SNMP/net-snmp-5.3.pre3/snmplib
make[1]: Entering directory `/linux/SNMP/net-snmp-5.3.pre3/snmplib'
make[1]: Leaving directory `/linux/SNMP/net-snmp-5.3.pre3/snmplib'
making all in /linux/SNMP/net-snmp-5.3.pre3/agent
make[1]: Entering directory `/linux/SNMP/net-snmp-5.3.pre3/agent'
making all in /linux/SNMP/net-snmp-5.3.pre3/agent/helpers
make[2]: Entering directory `/linux/SNMP/net-snmp-5.3.pre3/agent/helpers'
make[2]: Leaving directory `/linux/SNMP/net-snmp-5.3.pre3/agent/helpers'
making all in /linux/SNMP/net-snmp-5.3.pre3/agent/mibgroup
make[2]: Entering directory `/linux/SNMP/net-snmp-5.3.pre3/agent/mibgroup'
/bin/sh ../../libtool --mode=compile gcc -I../../include -I. -I../../agent
-I../../agent/mibgroup -I../../snmplib -g -O2 -Dlinux -I/usr/include/rpm -c
-o if-mib/data_access/interface_linux.lo
if-mib/data_access/interface_linux.c
rm -f if-mib/data_access/.libs/interface_linux.lo
gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib
-g -O2 -Dlinux -I/usr/include/rpm -c if-mib/data_access/interface_linux.c
-fPIC -DPIC -o if-mib/data_access/.libs/interface_linux.lo
In file included from if-mib/data_access/interface_linux.c:28:
/usr/include/pci/pci.h:29: parse error before "byte"
/usr/include/pci/pci.h:30: parse error before "u8"
/usr/include/pci/pci.h:31: parse error before "word"
/usr/include/pci/pci.h:32: parse error before "u16"
/usr/include/pci/pci.h:33: parse error before "u32"
/usr/include/pci/pci.h:122: parse error before "word"
/usr/include/pci/pci.h:127: parse error before "vendor_id"
/usr/include/pci/pci.h:135: `access' redeclared as different kind of symbol
/usr/include/unistd.h:260: previous declaration of `access'
/usr/include/pci/pci.h:137: parse error before '*' token
/usr/include/pci/pci.h:141: parse error before '}' token
/usr/include/pci/pci.h:146: parse error before "pci_read_byte"
/usr/include/pci/pci.h:147: parse error before "pci_read_word"
/usr/include/pci/pci.h:148: parse error before "pci_read_long"
/usr/include/pci/pci.h:149: parse error before "byte"
/usr/include/pci/pci.h:150: parse error before "byte"
/usr/include/pci/pci.h:151: parse error before "word"
/usr/include/pci/pci.h:152: parse error before "u32"
/usr/include/pci/pci.h:153: parse error before "byte"
/usr/include/pci/pci.h:164: parse error before "byte"
/usr/include/pci/pci.h:184: parse error before "u32"
In file included from if-mib/data_access/interface_linux.c:30:
/usr/include/linux/ethtool.h:15: parse error before "u32"
/usr/include/linux/ethtool.h:17: parse error before "advertising"
/usr/include/linux/ethtool.h:18: parse error before "speed"
/usr/include/linux/ethtool.h:19: parse error before "duplex"
/usr/include/linux/ethtool.h:20: parse error before "port"
/usr/include/linux/ethtool.h:21: parse error before "phy_address"
/usr/include/linux/ethtool.h:22: parse error before "transceiver"
/usr/include/linux/ethtool.h:23: parse error before "autoneg"
/usr/include/linux/ethtool.h:24: parse error before "maxtxpkt"
/usr/include/linux/ethtool.h:25: parse error before "maxrxpkt"
/usr/include/linux/ethtool.h:26: parse error before "reserved"
/usr/include/linux/ethtool.h:27: parse error before '}' token
/usr/include/linux/ethtool.h:32: parse error before "u32"
/usr/include/linux/ethtool.h:40: parse error before "eedump_len"
/usr/include/linux/ethtool.h:41: parse error before "regdump_len"
/usr/include/linux/ethtool.h:47: parse error before "u32"
/usr/include/linux/ethtool.h:49: parse error before "wolopts"
/usr/include/linux/ethtool.h:50: parse error before "sopass"
/usr/include/linux/ethtool.h:51: parse error before '}' token
/usr/include/linux/ethtool.h:55: parse error before "u32"
/usr/include/linux/ethtool.h:61: parse error before "u32"
/usr/include/linux/ethtool.h:62: conflicting types for `version'
/usr/include/linux/ethtool.h:34: previous declaration of `version'
/usr/include/linux/ethtool.h:63: parse error before "len"
/usr/include/linux/ethtool.h:64: parse error before "data"
/usr/include/linux/ethtool.h:64: conflicting types for `data'
/usr/include/linux/ethtool.h:56: previous declaration of `data'
/usr/include/linux/ethtool.h:65: parse error before '}' token
/usr/include/linux/ethtool.h:69: parse error before "u32"
/usr/include/linux/ethtool.h:71: parse error before "offset"
/usr/include/linux/ethtool.h:72: parse error before "len"
/usr/include/linux/ethtool.h:73: parse error before "data"
/usr/include/linux/ethtool.h:74: parse error before '}' token
if-mib/data_access/interface_linux.c: In function
`netsnmp_linux_interface_get_if_speed':
if-mib/data_access/interface_linux.c:651: storage size of `edata' isn't
known
make[2]: *** [if-mib/data_access/interface_linux.lo] Error 1
make[2]: Leaving directory `/linux/SNMP/net-snmp-5.3.pre3/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/linux/SNMP/net-snmp-5.3.pre3/agent'
make: *** [subdirs] Error 1

Any idea of what I am doing wrong?

Thanks in advance for the help

Augusto Salazar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.