Bug 81400 - /usr/include/net-snmp/library/snmp_parse_args.h won't compile.
/usr/include/net-snmp/library/snmp_parse_args.h won't compile.
Product: Red Hat Linux
Classification: Retired
Component: net-snmp (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Depends On:
  Show dependency treegraph
Reported: 2003-01-08 19:49 EST by Dale Lovelace
Modified: 2015-03-04 20:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-02-05 12:52:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dale Lovelace 2003-01-08 19:49:36 EST
Description of problem:

/usr/include/net-snmp/library/snmp_parse_args.h won't compile.

Version-Release number of selected component (if applicable):


How reproducible:


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
/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 '*'

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.
Comment 1 Phil Knirsch 2003-02-05 12:52:29 EST
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

Note You need to log in before you can comment on or make changes to this bug.