[MacPorts] #56393: curl fails to build with libressl-devel

MacPorts noreply at macports.org
Tue May 8 21:29:38 UTC 2018

#56393: curl fails to build with libressl-devel
  Reporter:  conradwt  |      Owner:  ryandesign
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.3
Resolution:  fixed     |   Keywords:
      Port:  curl      |

Comment (by bK4gYuRo):

 Unfortunately, I have to report that build fails with libressl 2.5.5:
 :info:build vtls/openssl.c:3519:21: warning: implicit declaration of
 function 'OpenSSL_version' is invali
 d in C99 [-Wimplicit-function-declaration]
 :info:build   const char *ver = OpenSSL_version(OPENSSL_VERSION);
 :info:build                     ^
 :info:build libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I../include
 -I../lib -I../lib -DBUILDING_L
 IBCURL -DCURL_HIDDEN_SYMBOLS -isystem /opt/local/include
 -I/opt/local/include -fvisibility=hidden -pipe -
 Os -mmacosx-version-min=10.13 -arch x86_64 -Qunused-arguments -Werror
 =partial-availability -MT vtls/libcu
 rl_la-polarssl_threadlock.lo -MD -MP -MF vtls/.deps/libcurl_la-
 polarssl_threadlock.Tpo -c vtls/polarssl_t
 hreadlock.c -o vtls/libcurl_la-polarssl_threadlock.o >/dev/null 2>&1
 :info:build vtls/openssl.c:3519:37: error: use of undeclared identifier
 :info:build   const char *ver = OpenSSL_version(OPENSSL_VERSION);
 :info:build                                     ^
 :info:build 1 warning and 1 error generated.
 :info:build make[2]: *** [vtls/libcurl_la-openssl.lo] Error 1

 This is on 10.13.4 with libressl @2.5.5_0.

 I would like to switch to libressl-devel, but libevent and
 py27-cryptography are still not fixed for libressl 2.7.2, so I cannot do
 it yet. I am not sure if making curl to build with libressl 2.5.5 is
 justified as we better move forward, not backwards. In the meantime I have
 to stay with curl @7.59.0_0+ssl.

 Just in case, I am attaching the full build log.

Ticket URL: <https://trac.macports.org/ticket/56393#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list