Re: Some questions
Augusto Salazar <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello All, Thomas, here are the errors when I try to compile the 5.2.2 in my RH 9, make[2]: Entering directory `/linux/SNMP/net-snmp-5.2.2/agent/mibgroup' /bin/sh ../../libtool --mode=compile gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g - O2 -Dlinux -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 -c if-mib/data_access/interfa ce_linux.c -fPIC -DPIC -o if-mib/data_access/.libs/interface_linux.lo In file included from if-mib/data_access/interface_linux.c:27: /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:29: /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_arch_interface_get_if_speed': if-mib/data_access/interface_linux.c:395: 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.2.2/agent/mibgroup' make[1]: *** [subdirs] Error 1 make[1]: Leaving directory `/linux/SNMP/net-snmp-5.2.2/agent' make: *** [subdirs] Error 1 For the Fedora, I made a standard installation configure with the default options make make install. Thanks in advance for your opinions Augusto On 12/1/05, Thomas Anders <[email protected]> wrote: > > Augusto Salazar wrote: > > Another thing, the net snmp 5.2.2 does not compile in my RH 9 > > How do you think we should help with compiling if you don't tell us what > errors you get? Also, we'd need to know your configure line at least. > > > it does in a Fedora 4 machine, but when I run the example of this page > > > > > http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demoapp/index.html > > > > > > In the FC 4 I get a missing libnetsnmp.so.9.. > > Did you perform a "make install"? If you installed to a non-standard > location, you need to tell your system in order to run snmpdemoapp: > > env LD_LIBRARY_PATH=/path/to/lib ./snmpdemoapp > > (assuming that libnetsnmp.so.9 is in /path/to/lib) > > > +Thomas > > -- > Thomas Anders (thomas.anders at blue-cable.de) > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Net-snmp-users mailing list > [email protected] > Please see the following page to unsubscribe or change other options: > https://lists.sourceforge.net/lists/listinfo/net-snmp-users >