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.
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: net-snmp (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2003-02-05 12:52:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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):

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.
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.