Description of problem: /usr/include/net-snmp/library/snmp_parse_args.h won't compile. Version-Release number of selected component (if applicable): net-snmp-devel-5.0.6-8.80.2 How reproducible: Always Steps to Reproduce: 1. Write this simple c program and save as test.c: #include <net-snmp/library/snmp_parse_args.h> 2. Compile with this command line: gcc -I/usr/include -DENABLE_SNMP test.c -o test 3. Watch errors fly Actual results: [dale@gandalf dale]$ echo '#include <net-snmp/library/snmp_parse_args.h>' > test.c [dale@gandalf dale]$ gcc test.c -o test In file included from test.c:1: /usr/include/net-snmp/library/snmp_parse_args.h:7: parse error before "netsnmp_session" /usr/include/net-snmp/library/snmp_parse_args.h:10: parse error before ')' token/usr/include/net-snmp/library/snmp_parse_args.h:11: parse error before '*' token/usr/include/net-snmp/library/snmp_parse_args.h:12: parse error before '*' token Expected results: A compiled "test" file. Additional info: I have tried this with the snmp_parse_args.h (net-snmp-devel-5.0.6-9.i386.rpm) currently in Rawhide with the same results.
You need to do: #include <net-snmp/config_api.h> instead of only trying to include a single header file. Otherwise a lot of types etc. are missing. Read ya, Phil