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



Reply via email to