IP_PKTINFO is defined on HP-UX 11.31 IA64

# find . -type f | xargs grep IP_PKTINFO
./netinet/in.h:#define IP_PKTINFO              17      /* IPv4 PKT INFO
option value   */

By adding #undef PKTINFO to the top of snmpUDPDomain.c if can get past this
point though another issue occurs

        /bin/sh ../../libtool  --mode=compile /bin/gcc -I../../include -I.
-I../../agent -I../../agent/mibgroup  -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 -o mibII/route_write.lo mibII/route_write.c
/bin/gcc -I../../include -I. -I../../agent -I../../agent/mibgroup
-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 mibII/route_write.c -o mibII/route_write.o
mibII/route_write.c: In function 'addRoute':
mibII/route_write.c:126: error: 'struct radix_node' has no member named
'rn_key'
mibII/route_write.c: In function 'delRoute':
mibII/route_write.c:173: error: 'struct radix_node' has no member named
'rn_key'
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
#


On Tue, Jun 24, 2008 at 9:28 AM, Thomas Anders <[EMAIL PROTECTED]>
wrote:

> 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

Reply via email to