cmake - show command line for a test

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Mon Feb 13 18:13:22 CET 2006


Alexander Neundorf schrieb:
> Hi,
> 
> On Sunday 12 February 2006 23:50, Peter Kümmel wrote:
>> Christian Ehrlicher wrote:
>>> for example getaddrinfo isn't found - don't know why. Simply look into
>>> CMakeErro.log and you'll see that some functions aren't found which
>>> normally are available on windows.
>>>
>>> Christian
>> The function-check does not work because of the principle linker error,
>> and the symbol-check didn't work because of a bad #define in sys/socket.h
>> and sys/types.h.
>>
>> We could change the configure process to also find the win symbols, see
>> the diff. There are also some small changes which fixes compile errors.
>> Feel free to check it in.
> 
> Do I understand the patches correctly that you add the winsock2 headers to 
> win/include/msvc/sys/socket.h ?
> 
> Then instead of this check 
> check_symbol_exists(getaddrinfo "winsock2.h;ws2tcpip.h" 
> HAVE_GETADDRINFO_SYMBOL)
> 
> this one should work for you too:
> check_symbol_exists(getaddrinfo "sys/types.h;sys/socket.h" HAVE_GETADDRINFO)
> 
> Can you please try ?
> If it does, this one should be used instead of check_function_exists()
My problem is not that we have to check for getaddrinfo but that the
test for "struct addrinfo" fails because the kdewin32 include paths
aren't used during test compile (see my other mail)

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060213/7d5a5af7/attachment.pgp 


More information about the Kde-buildsystem mailing list