Skip to content

Build fail if CMake with CURL_WERROR #2358

Closed
@concatime

Description

@concatime

I tried to build curl with CMake using CURL_WERROR flag. The issue is that I’m getting this error:

 # cmake .. -GNinja -DCMAKE_USE_MBEDTLS=1 -DCMAKE_USE_OPENSSL=0 -DCURL_ZLIB=1 -DCURL_WERROR=1 -DUSE_NGHTTP2=1 -DENABLE_ARES=1
 […]
 # ninja
[4/763] Building C object lib/CMakeFiles/libcurl.dir/cookie.c.o
FAILED: lib/CMakeFiles/libcurl.dir/cookie.c.o 
 […]
lib/CMakeFiles/libcurl.dir/cookie.c.o   -c ../lib/cookie.c
In file included from ../lib/curl_setup.h:56:0,
                 from ../lib/cookie.c:83:
lib/curl_config.h:987:19: error: two or more data types in declaration specifiers
 #define in_addr_t unsigned long
                   ^
lib/curl_config.h:987:28: error: two or more data types in declaration specifiers
 #define in_addr_t unsigned long
                            ^
[5/763] Building C object lib/CMakeFiles/libcurl.dir/http.c.o
FAILED: lib/CMakeFiles/libcurl.dir/http.c.o 
 […]
lib/CMakeFiles/libcurl.dir/http.c.o   -c ../lib/http.c
In file included from ../lib/curl_setup.h:56:0,
                 from ../lib/http.c:23:
lib/curl_config.h:987:19: error: two or more data types in declaration specifiers
 #define in_addr_t unsigned long
                   ^
lib/curl_config.h:987:28: error: two or more data types in declaration specifiers
 #define in_addr_t unsigned long
                            ^
ninja: build stopped: subcommand failed.

The line #define in_addr_t unsigned long should be present only once according to this comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions