MantisBT - CMake
View Issue Details
0015964CMakeCMakepublic2016-02-10 03:512016-06-10 14:21
David We 
 
normalminoralways
closedno change required 
x86Windows8.1
CMake 3.4.3 
 
0015964: Borland Makefile generation Script
The Borland makefiles are not configured correctly.

These defines are missing after the cmake process is finished.

#define HAVE_STRTOULL 1
#define HAVE_GETADDRINFO 1
#define HAVE_NTOHLL 1

I'am using the bcc32 from RadStudio Seattle ( XE10 ).
No tags attached.
Issue History
2016-02-10 03:51David WeNew Issue
2016-02-10 08:54Brad KingNote Added: 0040460
2016-02-10 11:09David WeNote Added: 0040461
2016-02-10 11:15David WeNote Added: 0040462
2016-02-10 11:25David WeNote Added: 0040464
2016-02-10 11:36Brad KingNote Added: 0040465
2016-02-10 11:36Brad KingStatusnew => resolved
2016-02-10 11:36Brad KingResolutionopen => no change required
2016-02-10 18:41David WeNote Deleted: 0040461
2016-02-10 18:41David WeNote Deleted: 0040462
2016-06-10 14:21Kitware RobotNote Added: 0041257
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0040460)
Brad King   
2016-02-10 08:54   
What project are you configuring?

There may be information in CMakeFiles/CMakeError.log about why these checks failed.
(0040464)
David We   
2016-02-10 11:25   
I've found something in the "ConfigureChecks.cmake" regarding the HAVE_STRTOULL check.

It's in the UNIX if construct.

This seems logical that the "check_function_exists(strtoull HAVE_STRTOULL)" is not called in a windows enviroment but, if i build the libssh with mingw ( MSYS2 ) it works well.

-->
if (UNIX)
    if (NOT LINUX)
        # libsocket (Solaris)
        check_library_exists(socket getaddrinfo "" HAVE_LIBSOCKET)
        if (HAVE_LIBSOCKET)
            set(HAVE_GETADDRINFO TRUE)
            set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} socket)
        endif (HAVE_LIBSOCKET)

        # libnsl/inet_pton (Solaris)
        check_library_exists(nsl inet_pton "" HAVE_LIBNSL)
        if (HAVE_LIBNSL)
            set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} nsl)
        endif (HAVE_LIBNSL)

        # librt
        check_library_exists(rt nanosleep "" HAVE_LIBRT)
    endif (NOT LINUX)

    check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
    if (HAVE_LIBRT OR HAVE_CLOCK_GETTIME)
        set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} rt)
    endif (HAVE_LIBRT OR HAVE_CLOCK_GETTIME)

    check_library_exists(util forkpty "" HAVE_LIBUTIL)
    check_function_exists(cfmakeraw HAVE_CFMAKERAW)
    check_function_exists(strtoull HAVE_STRTOULL)
    check_function_exists(__strtoull HAVE___STRTOULL)
endif (UNIX)
<--
(0040465)
Brad King   
2016-02-10 11:36   
Re 0015964:0040464: That appears to be in the libssh code and is not an issue with upstream CMake. Please raise this issue over there.
(0041257)
Kitware Robot   
2016-06-10 14:21   
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.