I am compiling a net-snmp agentx subagent on red hat enterprise linux 3.
Previously I was using the standard distribution of RHEL3 that included 
net-snmp 5.0.9.
I recently installed the rpms
    net-snmp-cmaX-devel-5.1-83.rhel.i386
    net-snmp-cmaX-5.1-83.rhel.i386
for compatibility with a customer.

The installation appeared to be problem-free. In particular
the links to the libraries are correct and all the header files
in /usr/include/net-snmp/agent appear to be recent enough to indicate
that they were all updated.

In compiling my subagent using the following command:

g++ -I/usr/include/rpm -DINET6 -O2 -g -pipe -march=i386 -mcpu=i686
-Dlinux -I/usr/include/rpm -I. -I/usr/include/net-snmp -W -Wall -
Wpointer-arith -pipe -g   -Wno-unused-parameter -Wno-unused-variable
-Wno-non-virtual-dtor  -Wno-reorder -W -I/home/gprice/ACE_wrapp
ers_5.4/build/debug -D_DEBUG -D_LIB -DUSE_ACE -D_REENTRANT
-DACE_HAS_AIO_CALLS -D_GNU_SOURCE  
-I/home/gprice/ACE_wrappers_5.4/build /debug -DACE_HAS_EXCEPTIONS
-D__ACE_INLINE__  -c -fPIC -o ACE_Debug60/EventRecordACEImpl.o
EventRecordACEImpl.cpp

I got the following error:

EventRecordACEImpl.cpp: 
In member function `virtual void EventRecordImpl::log(int*)':
EventRecordACEImpl.cpp:233: 
In file included from /usr/include/net-snmp/agent/all_helpers.h:29,
  from /usr/include/net-snmp/agent/net-snmp-agent-includes.h:16,
  from EventRecordACEImpl.cpp:422:
/usr/include/net-snmp/agent/table_mfd.h: At global scope:
    /usr/include/net-snmp/agent/table_mfd.h:20: 
        conflicting types for 
        `struct netsnmp_request_group'
/usr/include/net-snmp/agent/table_array.h:79: 
    previous declaration as 
    `typedef    struct netsnmp_request_group_s netsnmp_request_group'

I tried commenting out the offending line in table_mfd.h and the 
compile and link completed, and the subagent worked.

I checked the source code for 5.0.9 and 5.1.1 and neither have
table_mfd.h in include/net-snmp/agent. Also, all_helpers.h has
no reference to table_mfd.h in either of those distributions. The file
table_mfd.h occurs only in the distribution noted at the top of this
email, obtained as part of a proliant upgrade.

Can someone suggest what might be going on? The file versions involved
are:

table_mfd.h: v1.4 2003/10/14 16:45:07 rstory
table_array: v5.8 2002/07/30 06:56:23 rstory

Thanks
Gary Price
Intelligent Compression Technologies
http://www.ictcompress.com




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to