[kaffe] m68k cross-compiling error "redefinition of `struct addrinfo'"

Dalibor Topic robilad at kaffe.org
Thu Jul 20 16:53:37 PDT 2006

On Wed, 2006-07-19 at 08:35 -0300, Frederico M. Motta wrote:

> In file included from getaddrinfo.c:129:
> ../include/getaddrinfo.h:199: redefinition of `struct addrinfo'
> ../include/getaddrinfo.h:219: conflicting types for `getnameinfo'
> /usr/local/lib/gcc-lib/m68k-elf/2.95.3/../../../../m68k-elf/include/netdb.h:482:
> previous declaration of `getnameinfo'

Hi Frederico,

it seems that the problem is that configure does not pick up that there
is a getnameinfo in your netdb.h. It should redefine its own getnameinfo
in replace/getaddrinfo.c away, see include/getaddrinfo.h.

from include/getaddrifo.h:

 * Fake struct and function names.
 * <netdb.h> might declares all or some of them.
#define addrinfo my_addrinfo
#define gai_strerror my_gai_strerror
#define freeaddrinfo my_freeaddrinfo
#define getaddrinfo my_getaddrinfo
#define getnameinfo my_getnameinfo

could you file a bug report, and attach your config.log?

dalibor topic

More information about the kaffe mailing list