Re: net-snmp 5.2.4.1 fails to compile on HP-UX 11.31 IA64

This is a discussion on Re: net-snmp 5.2.4.1 fails to compile on HP-UX 11.31 IA64 within the SNMP Users forums, part of the Networking and Network Related category; Ian, first, please don't write to the net-snmp-bugs mailing list. Please use the net-snmp-users list ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-24-2008
Thomas Anders
 
Posts: n/a
Default Re: net-snmp 5.2.4.1 fails to compile on HP-UX 11.31 IA64

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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0