Hi Snmp coders:
I updated my net-snmp from 5.4.1 to 5.7.1.
The library build worked fine on Linux ( Ubuntu 10.4).
On AIX there is some difficulty when it comes to the
~/net-snmp-5.7.1/agent , linking snmpd. The build does not go past this
point.
I see the following error
libtool: link: gcc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -Uaix5
-Daix5=aix5 -o snmpd snmpd.o -Wl,-brtl -L../snmplib/.libs -L../snmplib
-L./.libs ./.libs/libnetsnmpagent.a ./.libs/libnetsnmpmibs.a
/home/<builddir>/net-snmp-5.7.1/agent/.libs/libnetsnmpagent.a
/home/<builddir>/net-snmp-5.7.1/snmplib/.libs/libnetsnmp.a -lperfstat
../snmplib/.libs/libnetsnmp.a -lm -lz -lcrypto -lpthread
ld: 0711-317 ERROR: Undefined symbol: .CMSG_SPACE
ld: 0711-317 ERROR: Undefined symbol: .CMSG_LEN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: *** [snmpd] Error 1
CMSG_SPACE and CMSG_LEN are macro defined in an include file
~/net-snmp-5.7.1/include/net-snmp/library/snmp_transport.h
CMSG_SPACE is defined for solaris platform and sys/socket.h is expected for
non solaris.
The option in configure that potentially would include the available
sys/socket.h seems to be to include --oldincludedir.
Not sure if that is the right option to include, however that did not solve
the Undefined symbol issue above.
Also the use of CMSG_LEN and CMSG_SPACE in
snmplib/transports/snmpUDPBaseDomain.c is defined
#if defined(linux) && defined(IP_PKTINFO)
…
..
#elif defined(IP_SENDSRCADDR)
…
…
#endif
The platform used is AIX.
Is there a specific configure setting that ensures AIX will complete the
agent build and thus all of 5.7.1?
Please also let me know if you are aware of known issues in 5.7.1 AIX build
and means to resolve them.
[AIX does have /usr/include/sys/socket.h and with the .configure options
used, files that include sys/socket.h do not seem to have a compilation
problem]
Thank you
Mukund
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders