On Wed, 22 Jun 2005 16:29:17 +0100 Dave wrote: DS> In file included from if-mib/data_access/interface_linux.c:27: DS> /usr/include/pci/pci.h:29: parse error before "byte" DS> /usr/include/pci/pci.h:30: parse error before "u8" DS> <etc, etc, etc> DS> DS> If I comment out the four blocks of code protected by DS> #ifdef HAVE_LINUX_ETHTOOL_H then things compile quite happily. DS> Any ideas what might be going wrong, or what I should look for?
hmm.. apparently another include file is needed before pci.h, to define those data types... I'd check your config.log to see if configure detected/compiled the file ok there. If so, the configure should reveal what other headers were included, and possibly reveal which one is missing. If it didn't compile ok, the the failed program should form a good test case for poking around and adding headers.. My pci.h has /usr/include/pci/pci.h:21:typedef u_int8_t byte; Maybe in an older version, another include provided those types... The file pci.h isn't actually needed, except for it's typedefs of u8, u16 and u32. If you can find a file that exists for 9 and Fedora, I'll be glad to update configure/code to use it... -- Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
