Johannes Schmidt-Fischer wrote:
regarding problem #9 in your list: both ntohl() and ntohs() aren't
implemented as functions in HP-UX 10.20 (and btw 11.0/11i too) but
instead as macros returning the given argument without change. Details
can be found in either <arpa/inet.h> or <netinet/in.h>.
I think that in any of the snmpnetstat sources the including of either
of these include files is missing such that the compiler generates code
for calling functions with those two names (and these two functions do
not exist in any of the libraries used when binding snmpnetstat).
Probably including
- <net-snmp/net-snmp-config.h>
- <net-snmp/net-snmp-includes.h>
will do.
OTOH:
- it builds fine on HP-UX 11.00, 11.11 and 11.23
- it even builds fine on HP-UX 10.20 with HP's cc, just not with gcc (4.0.2)
- the includes given above are there (AFAICS)
So either it's a bit more complicated than that or I'm missing something
obvious.
+Thomas
--
Thomas Anders (thomas.anders at blue-cable.de)
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders