Den 04-09-2012 15:43, Nathan, Mukund skrev: > So, it seems to indicate the need for the Linux compatibility flag to be > included in CFLAGS. One of the configure option is --oldincludedir and > the fact that it is oldincludedir raises some concern. Even including > that did not resolve it. I recall that when I included > --oldincludesdir=/usr/include it resulted in undefined symbols > for CMSG_ALIGN. I did not further try to resolve that because I was not > sure about including the --oldincludedir option. I expected that to be > flagged automatically by configure.
I don't think that we use that --oldincludedir at all. It is something that the auto tools just give us. > Please note that the net-snmp-5.7.1/snmplib does build, but, > net-snmp-5.7.1/agent is the one that fails this way. There must have been some warnings about undeclared _CMSG_xxx from the compilation, but the true trouble only shows up when linking. You might try this patch diff --git a/include/net-snmp/library/snmp_transport.h b/include/net-snmp/library/snmp_transport.h index 5714a9b..4162897 100644 --- a/include/net-snmp/library/snmp_transport.h +++ b/include/net-snmp/library/snmp_transport.h @@ -8,6 +8,10 @@ #define _XPG4_2 #endif +#if defined(aix4) || defined(aix5) || defined(aix6) || defined(aix7) +#define _LINUX_SOURCE_COMPAT +#endif + #include <sys/socket.h> #ifdef solaris2 Unfortunately people with AIX systems are not that common .... /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming ------------------------------------------------------------------------------ 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders