Closed
Description
Hello,
Curl is failing to build on openBSD -current:
/home/jungle/bin/curl/lib/vtls/openssl.c:121:22: error: static declaration of 'OpenSSL_version_num' follows non-static declaration
static unsigned long OpenSSL_version_num(void)
^
/usr/include/openssl/crypto.h:340:15: note: previous declaration is here
unsigned long OpenSSL_version_num(void);
^
1 error generated.
*** Error 1 in . (lib/CMakeFiles/libcurl.dir/build.make:2943 'lib/CMakeFiles/libcurl.dir/vtls/openssl.c.o': cd /home/jungle/bin/curl/build/lib...)
*** Error 1 in . (CMakeFiles/Makefile2:1014 'lib/CMakeFiles/libcurl.dir/all')
*** Error 1 in /home/jungle/bin/curl/build (Makefile:141 'all')
See this openBSD commit to lib/libcrypto/crypto.h:
openbsd/src@3a94b19#diff-f5754718dcf4bb001cacd3a8e689bb01
Simply editing this file:
https://github.com/curl/curl/blob/master/lib/vtls/openssl.c#L121
and removing Static
at the beginning of the line causes the build to successfully build.