Keith Thompson <address@hidden> writes:
> % uname -a
> SunOS elmak 5.9 Generic_118558-20 sun4u sparc SUNW,Sun-Blade-100 Solaris
> % config.guess
> sparc-sun-solaris2.9
> % gcc --version
> gcc (GCC) 4.0.2
> [...]
>
> The build fails with the following error message:
>
> gai_strerror.c:70: error: conflicting types for 'gai_strerror'
> /usr/include/netdb.h:311: error: previous declaration of 'gai_strerror' was
> here
I don't observe this on my Solaris 9 host. I'm using GCC 4.1.1, which
might be relevant.
I didn't configure with any special flags; did you?
My build didn't attempt to compile gai_strerror.c, which is the
correct behavior on Solaris 9, as it has a suitable gai_strerror of
its own. So we need to investigate why your build did the wrong thing.
This is probably related to the following output of "configure" on my
Solaris 9 host:
configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo
checking for library containing getaddrinfo... -lsocket
checking for getaddrinfo... yes
checking for gai_strerror... yes
What does your "configure" output say in this neighborhood?
What does "config.log" say near the point of failure for gai_strerror?