Re: net-snmp 5.2.4.1 fails to compile on HP-UX 11.31 IA64
Thomas Anders <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Ian, first, please don't write to the net-snmp-bugs mailing list. Please use the net-snmp-users list for this kind of queries. > Any one have any ideas why this fails to compile on HP-UX 11.31 IA64. > > ... > > /bin/gcc -I../include -I. -I../snmplib > -I/opt/commonEnv/thirdparty/openssl/compiled/hpux/11.31-IA64/openssl-0.9.8h/include > -L/opt/commonEnv/thirdparty/openssl/compiled/hpux/11.31-IA64/openssl-0.9.8h > -Dhpux11 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual > -Wno-char-subscripts -c snmpUDPDomain.c -o snmpUDPDomain.o > snmpUDPDomain.c: In function 'netsnmp_udp_recvfrom': > snmpUDPDomain.c:118: warning: implicit declaration of function 'CMSG_SPACE' This code is protected by "#ifdef IP_PKTINFO", so it looks like HP-UX 11.31 IA64 (unlike earlier versions) defines this somewhere in its system headers. Could you please do a recursive grep for IP_PKTINFO in /usr/include and report back where and how it's defined? As a quick fix, you could change the "#ifdef IP_PKTINFO" line in snmplib/snmpUDPDomain.c to #if defined(IP_PKTINFO) && defined(linux) and rebuild. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users