Date: Wed, 08 Feb 2017 00:07:51 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216898] net/pjsip Doesn't compile with libressl and libressl-devel Message-ID: <bug-216898-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216898 Bug ID: 216898 Summary: net/pjsip Doesn't compile with libressl and libressl-devel Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: madpilot@FreeBSD.org Reporter: olivierw1+bugzilla-freebsd@hotmail.com Flags: maintainer-feedback?(madpilot@FreeBSD.org) Assignee: madpilot@FreeBSD.org Created attachment 179732 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179732&action= =3Dedit Fix build errors with LIbreSSL Hello, I(ve been using pjsip with libressl-devel for months. Unfortunately, the up= date to pjsip 2.6 break the compilation with libressl and libressl-devel (compile fine with openssl and openssl-devel). The error was: "../src/pj/ssl_sock_ossl.c:463:16: error: use of undeclared identifier 'TLSEXT_nid_unknown' if (nid & TLSEXT_nid_unknown) { ^" So I first tried to define it like it's done in OpenSSL, with: #define TLSEXT_nid_unknown 0x1000000 It solved this problem, but the compilation broke even more with this messa= ges: "/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefi= ned reference to `SSL_set1_sigalgs_list' /wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefin= ed reference to `SSL_set1_client_sigalgs_list' /wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefin= ed reference to `SSL_is_server' /wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefin= ed reference to `SSL_get_shared_curve' /wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefin= ed reference to `ASN1_STRING_get0_data' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[3]: *** [/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/build/rules.mak:125: ../bin/pjlib-test-amd64-portbld-freebsd11.0] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/build' gmake[2]: *** [Makefile:112: pjlib-test-amd64-portbld-freebsd11.0] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/build' gmake[1]: *** [Makefile:14: all] Error 1 gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.= 6' *** Error code 1" So, I've added conditional directives to check for LibreSSL and now it comp= iles fine with both libressl and libressl-devel. Please find a patch attached. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216898-13>