[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ip.h Solaris 5.7 build problems



The Y2K compliance diktat means we're migrating en masse to Solaris
2.7 (or 5.7, if you prefer the old nomenclature). Building ns under
Solaris 2.7 results in the following gotchas:


ip.h:47: warning: `IP_BROADCAST' redefined
/usr/include/netinet/in.h:288: warning: this is the location of the
previous definition

Solaris 5.7 is already using IP_BROADCAST, and gcc 2.95 isn't happy
about it being redefined.

There's also:
config.h:267: declaration of C function `int snprintf(char *, int,
const char *, ...)' conflicts with
/usr/include/stdio.h:291: previous declaration `int snprintf(char *,
unsigned int, const char *, ...)' here

suggesting that something's up with #ifndef HAVE_SNPRINTF in config.h.

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>