Follow-up Comment #1, bug #16623 (project freeciv):

I guess that your libraries define gethostbyname2() but your header files
fail to declare gethostbyname2(). Perhaps your <netdb.h> file is too old? The
configure script only checks for gethostbyname2() in the libraries, not the
header files. Freeciv only uses gethostbyname2() if the check passes.

The warning is serious. The compiler needs a declaration to know that
gethostbyname2() returns a pointer, not an int.

As a workaround, you might configure with --disable-ipv6 to disable the code
that uses gethostbyname2().

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16623>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to