[MacPorts] #51791: nghttp2 @1.12.0 Fails to build against LibreSSL @2.3.4

MacPorts noreply at macports.org
Thu Jul 7 07:22:31 PDT 2016


#51791: nghttp2 @1.12.0 Fails to build against LibreSSL @2.3.4
---------------------+--------------------------------
 Reporter:  gavin@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.3.4
 Keywords:           |       Port:  nghttp2
---------------------+--------------------------------
 Hi, not sure if this needs to be fixed in nghttp2 or LIbreSSL so CC'ing
 both maintainers.

 Excerpt from the log showing the error:
 {{{
 :info:build /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I..
 -DPKGDATADIR='"/opt/local/share/nghttp2"' -I../lib/includes
 -I../lib/includes -I../lib -I../src/includes -I../third-party
 -I/opt/local/include/libxml2 -I/opt/local/include/openssl
 -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H
 -I/opt/local/include  -std=c++11 -pipe -Os -arch x86_64 -stdlib=libc++ -MT
 libnghttpx_a-shrpx_connect_blocker.o -MD -MP -MF .deps/libnghttpx_a-
 shrpx_connect_blocker.Tpo -c -o libnghttpx_a-shrpx_connect_blocker.o `test
 -f 'shrpx_connect_blocker.cc' || echo './'`shrpx_connect_blocker.cc
 :info:build shrpx_ssl.cc:1375:15: error: use of undeclared identifier
 'SSL_CTX_get0_certificate'; did you mean 'SSL_get_certificate'?
 :info:build   auto cert = SSL_CTX_get0_certificate(ssl_ctx);
 :info:build               ^~~~~~~~~~~~~~~~~~~~~~~~
 :info:build               SSL_get_certificate
 :info:build /opt/local/include/openssl/ssl.h:1734:7: note:
 'SSL_get_certificate' declared here
 :info:build X509 *SSL_get_certificate(const SSL *ssl);
 :info:build       ^
 :info:build shrpx_ssl.cc:1375:40: error: cannot initialize a parameter of
 type 'const SSL *' (aka 'const ssl_st *') with an lvalue of type
 'ssl_ctx_st *'
 :info:build   auto cert = SSL_CTX_get0_certificate(ssl_ctx);
 :info:build                                        ^~~~~~~
 :info:build /opt/local/include/openssl/ssl.h:1734:38: note: passing
 argument to parameter 'ssl' here
 :info:build X509 *SSL_get_certificate(const SSL *ssl);
 :info:build                                      ^
 :info:build shrpx_ssl.cc:1401:17: error: use of undeclared identifier
 'SSL_CTX_get0_certificate'; did you mean 'SSL_get_certificate'?
 :info:build     auto cert = SSL_CTX_get0_certificate(ssl_ctx);
 :info:build                 ^~~~~~~~~~~~~~~~~~~~~~~~
 :info:build                 SSL_get_certificate
 :info:build /opt/local/include/openssl/ssl.h:1734:7: note:
 'SSL_get_certificate' declared here
 :info:build X509 *SSL_get_certificate(const SSL *ssl);
 :info:build       ^
 :info:build shrpx_ssl.cc:1401:42: error: cannot initialize a parameter of
 type 'const SSL *' (aka 'const ssl_st *') with an lvalue of type
 'ssl_ctx_st *'
 :info:build     auto cert = SSL_CTX_get0_certificate(ssl_ctx);
 :info:build                                          ^~~~~~~
 :info:build /opt/local/include/openssl/ssl.h:1734:38: note: passing
 argument to parameter 'ssl' here
 :info:build X509 *SSL_get_certificate(const SSL *ssl);
 :info:build                                      ^
 :info:build mv -f .deps/libnghttpx_a-shrpx_log_config.Tpo .deps
 /libnghttpx_a-shrpx_log_config.Po
 :info:build /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I..
 -DPKGDATADIR='"/opt/local/share/nghttp2"' -I../lib/includes
 -I../lib/includes -I../lib -I../src/includes -I../third-party
 -I/opt/local/include/libxml2 -I/opt/local/include/openssl
 -I/opt/local/include -I/opt/local/include -DHAVE_CONFIG_H
 -I/opt/local/include  -std=c++11 -pipe -Os -arch x86_64 -stdlib=libc++ -MT
 libnghttpx_a-shrpx_live_check.o -MD -MP -MF .deps/libnghttpx_a-
 shrpx_live_check.Tpo -c -o libnghttpx_a-shrpx_live_check.o `test -f
 'shrpx_live_check.cc' || echo './'`shrpx_live_check.cc
 :info:build 4 errors generated.
 :info:build make[3]: *** [libnghttpx_a-shrpx_ssl.o] Error 1
 :info:build make[3]: *** Waiting for unfinished jobs....
 :info:build mv -f .deps/libnghttpx_a-shrpx_connect_blocker.Tpo .deps
 /libnghttpx_a-shrpx_connect_blocker.Po
 :info:build mv -f .deps/libnghttpx_a-shrpx_live_check.Tpo .deps
 /libnghttpx_a-shrpx_live_check.Po
 :info:build mv -f .deps/libnghttpx_a-shrpx_worker.Tpo .deps/libnghttpx_a-
 shrpx_worker.Po
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/work/nghttp2-1.12.0/src'
 :info:build make[2]: *** [all-recursive] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/work/nghttp2-1.12.0/src'
 :info:build make[1]: *** [all-recursive] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/work/nghttp2-1.12.0'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/work/nghttp2-1.12.0'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/work/nghttp2-1.12.0"
 && /usr/bin/make -j4 -w all
 :info:build Exit code: 2
 :error:build org.macports.build for port nghttp2 returned: command
 execution failed
 :debug:build Error code: CHILDSTATUS 62161 2
 :debug:build Backtrace: command execution failed
     while executing
 "system -nice 0 $fullcmdstring"
     ("eval" body line 1)
     invoked from within
 "eval system $notty $nice \$fullcmdstring"
     invoked from within
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "portbuild::build_main org.macports.build"
     ("eval" body line 1)
     invoked from within
 "eval $procedure $targetname"
 :info:build Warning: targets not executed for nghttp2:
 org.macports.destroot org.macports.build
 :notice:build Please see the log file for port nghttp2 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_nghttp2/nghttp2/main.log
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/51791>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list