Den 03-01-2011 09:08, Magnus Fromreide skrev:
> All but RHEL4 looks like they are due to struct sockaddr (from
> <sys/socket.h>) not being defined. This in turn is allowed by posix as
> it states that "Inclusion of the<netinet/in.h>  header may also make
> visible all symbols from<inttypes.h>  and<sys/socket.h>." so the quick
> fix is to add
>
> #if HAVE_SYS_SOCKET_H
> #include<sys/socket.h>
> #endif
>
> to snmp_transport.h.

The same sys/socket problem makes it fail on FreeBSD 7 and 8 too.

The RHEL4 problem should be fixable by adding two dummy parameters to 
the call to pci_lookup_name (the call was made "varargs" in pciutils 2.2 
which is in RHEL5)

The sys/socket problem is limited to the trunk, it does not affect V5-5 
or V5-6.

None of the three versions (5.5, 5.6, trunk) compile on NetBSD or 
OpenBSD. On NetBSD they dont even configure :-(

I have been looking at the patches that the BSD's apply to our baby in 
their ports, and I have tried merging the whole thing, and it adds up to 
something like 2500 lines of patch ... but then it compiles on FreeBSD 
4,7,8, NetBSD 4,5, DragonFly 1.12,2.6, OpenBSD 4.7, RHEL 4,5,6, Solaris 
8,10,11

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - [email protected]
The purpose of computing is insight, not numbers   ---   R W Hamming

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to