Solved build of nghttp2 fails

Hi!

I'm having a problem building nghttp2 (and the programs that depend on it) with Synth.

The build stops, these are the last lines I get:

Code:
libtool: link: ar cru .libs/libnghttp2_asio.a  libnghttp2_asio_la-util.o libnghttp2_asio_la-http2.o libnghttp2_asio_la-ssl.o libnghttp2_asio_la-timegm.o libnghttp2_asio_la-asio_common.o libnghttp2_asio_la-asio_io_service_pool.o libnghttp2_asio_la-asio_server_http2.o libnghttp2_asio_la-asio_server_http2_impl.o libnghttp2_asio_la-asio_server.o libnghttp2_asio_la-asio_server_http2_handler.o libnghttp2_asio_la-asio_server_request.o libnghttp2_asio_la-asio_server_request_impl.o libnghttp2_asio_la-asio_server_response.o libnghttp2_asio_la-asio_server_response_impl.o libnghttp2_asio_la-asio_server_stream.o libnghttp2_asio_la-asio_server_serve_mux.o libnghttp2_asio_la-asio_server_request_handler.o libnghttp2_asio_la-asio_server_tls_context.o libnghttp2_asio_la-asio_client_session.o libnghttp2_asio_la-asio_client_session_impl.o libnghttp2_asio_la-asio_client_session_tcp_impl.o libnghttp2_asio_la-asio_client_session_tls_impl.o libnghttp2_asio_la-asio_client_response.o libnghttp2_asio_la-asio_client_response_impl.o libnghttp2_asio_la-asio_client_request.o libnghttp2_asio_la-asio_client_request_impl.o libnghttp2_asio_la-asio_client_stream.o libnghttp2_asio_la-asio_client_tls_context.o  .libs/libnghttp2_asio.lax/libhttp-parser.a/http_parser.o
libnghttpx.a(libnghttpx_a-shrpx_log_config.o): In function `shrpx::log_config()':
shrpx_log_config.cc:(.text+0x106): undefined reference to `__cxa_thread_atexit'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:1311: nghttpx] Error 1
gmake[4]: *** Waiting for unfinished jobs....
libtool: link: ranlib .libs/libnghttp2_asio.a
libtool: link: rm -fr .libs/libnghttp2_asio.lax
libtool: link: ( cd ".libs" && rm -f "libnghttp2_asio.la" && ln -s "../libnghttp2_asio.la" "libnghttp2_asio.la" )
gmake[4]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1/src'
gmake[3]: *** [Makefile:2532: all-recursive] Error 1
gmake[3]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1/src'
gmake[2]: *** [Makefile:566: all-recursive] Error 1
gmake[2]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1'
gmake[1]: *** [Makefile:475: all] Error 2
gmake[1]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /xports/www/nghttp2



--------------------------------------------------
--  Termination
--------------------------------------------------
Finished: Sunday, 20 NOV 2016 at 12:50:01 UTC
Duration: 00:01:02

I also already tried adding MAKE_JOBS_UNSAFE=yes to synth's make.conf but the result wasn't much different:

Code:
libtool: link: ar cru .libs/libnghttp2_asio.a  libnghttp2_asio_la-util.o libnghttp2_asio_la-http2.o libnghttp2_asio_la-ssl.o libnghttp2_asio_la-timegm.o libnghttp2_asio_la-asio_common.o libnghttp2_asio_la-asio_io_service_pool.o libnghttp2_asio_la-asio_server_http2.o libnghttp2_asio_la-asio_server_http2_impl.o libnghttp2_asio_la-asio_server.o libnghttp2_asio_la-asio_server_http2_handler.o libnghttp2_asio_la-asio_server_request.o libnghttp2_asio_la-asio_server_request_impl.o libnghttp2_asio_la-asio_server_response.o libnghttp2_asio_la-asio_server_response_impl.o libnghttp2_asio_la-asio_server_stream.o libnghttp2_asio_la-asio_server_serve_mux.o libnghttp2_asio_la-asio_server_request_handler.o libnghttp2_asio_la-asio_server_tls_context.o libnghttp2_asio_la-asio_client_session.o libnghttp2_asio_la-asio_client_session_impl.o libnghttp2_asio_la-asio_client_session_tcp_impl.o libnghttp2_asio_la-asio_client_session_tls_impl.o libnghttp2_asio_la-asio_client_response.o libnghttp2_asio_la-asio_client_response_impl.o libnghttp2_asio_la-asio_client_request.o libnghttp2_asio_la-asio_client_request_impl.o libnghttp2_asio_la-asio_client_stream.o libnghttp2_asio_la-asio_client_tls_context.o  .libs/libnghttp2_asio.lax/libhttp-parser.a/http_parser.o
libnghttpx.a(libnghttpx_a-shrpx_log_config.o): In function `shrpx::log_config()':
shrpx_log_config.cc:(.text+0x106): undefined reference to `__cxa_thread_atexit'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [Makefile:1311: nghttpx] Error 1
gmake[4]: *** Waiting for unfinished jobs....
libtool: link: ranlib .libs/libnghttp2_asio.a
libtool: link: rm -fr .libs/libnghttp2_asio.lax
libtool: link: ( cd ".libs" && rm -f "libnghttp2_asio.la" && ln -s "../libnghttp2_asio.la" "libnghttp2_asio.la" )
gmake[4]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1/src'
gmake[3]: *** [Makefile:2532: all-recursive] Error 1
gmake[3]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1/src'
gmake[2]: *** [Makefile:566: all-recursive] Error 1
gmake[2]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1'
gmake[1]: *** [Makefile:475: all] Error 2
gmake[1]: Leaving directory '/construction/xports/www/nghttp2/work/nghttp2-1.16.1'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /xports/www/nghttp2



--------------------------------------------------
--  Termination
--------------------------------------------------
Finished: Sunday, 20 NOV 2016 at 12:50:01 UTC
Duration: 00:01:02

using make also wasn't successfully building nghttp2

I used postmaster to build postfix in one of my jails (which also relies on nghttp2) and it was successful.

Anything I'm missing?
 
Back
Top