KDE/kdelibs
Peter Kümmel
syntheticpp at gmx.net
Thu Feb 16 15:23:08 CET 2006
Paulo Jorge Guedes wrote:
> This breaks the build for MinGW:
>
> CMakeFiles/kdecore.dir/network/ksocketaddress.obj(.text+0x278):ksocketaddress.cpp: undefined reference to `KDE::inet_pton(int, char const*, void*)'
> CMakeFiles/kdecore.dir/network/ksocketaddress.obj(.text+0x362):ksocketaddress.cpp: undefined reference to `KDE::inet_pton(int, char const*, void*)'
> CMakeFiles/kdecore.dir/network/ksocketaddress.obj(.text+0x5cb):ksocketaddress.cpp: undefined reference to `KDE::inet_ntop(int, void const*, char*, unsigned int)'
> CMakeFiles/kdecore.dir/network/ksocketaddress.obj(.text+0x613):ksocketaddress.cpp: undefined reference to `KDE::inet_ntop(int, void const*, char*, unsigned int)'
> CMakeFiles/kdecore.dir/kreverseresolver.obj(.text+0x9b8):kreverseresolver.cpp: undefined reference to `KDE::getnameinfo(sockaddr const*, unsigned int, char*, unsigned int, char*, unsigned int, int)'
> collect2: ld returned 1 exit status
>
inet_pton and inet_ntop are declared in win/include/mingw/arpa/inet.h
and defined in win/src/inet.c.
So please check if they where found by the configure process.
It seems your build uses the KDE:: versions because the HAVE_
macros are not set.
getnameinfo is decalred in the mingw header ws2tcpip.h.
This header should be included by sys/socket.h, netdb.h,
I recently updated these files.
Peter
More information about the Kde-buildsystem
mailing list