[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
inet_ntop and Solaris
From: |
Bruno Haible |
Subject: |
inet_ntop and Solaris |
Date: |
Mon, 12 Mar 2007 00:45:56 +0100 |
User-agent: |
KMail/1.5.4 |
Hi Yoann,
On Solaris 9, with "gcc -m64" as compiler, the 'inet_ntop' module fails to
compile, like this:
gcc -m64 -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT inet_ntop.o -MD -MP -MF
.deps/inet_ntop.Tpo -c -o inet_ntop.o inet_ntop.c
inet_ntop.c:75: error: conflicting types for `inet_ntop'
/usr/include/arpa/inet.h:55: error: previous declaration of `inet_ntop'
make[3]: *** [inet_ntop.o] Error 1
The situation on this platform is that the system has inet_ntop() in libnsl.
Should gnulib compile its own inet_ntop() in this situation?
If yes, you need to add a '#define inet_ntop rpl_inet_ntop' to gnulib's
arpa/inet.h. If no, the autoconf test should look whether inet_ntop is
available in -lnsl, and make this additional library available in a variable,
say, LIBINET.
What do you think?
Bruno
- inet_ntop and Solaris,
Bruno Haible <=