From owner-freebsd-ports-bugs@freebsd.org Wed Feb 8 00:07:52 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B38ACD30F5 for ; Wed, 8 Feb 2017 00:07:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6066D80F for ; Wed, 8 Feb 2017 00:07:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v1807phb012642 for ; Wed, 8 Feb 2017 00:07:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216898] net/pjsip Doesn't compile with libressl and libressl-devel Date: Wed, 08 Feb 2017 00:07:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olivierw1+bugzilla-freebsd@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: madpilot@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 00:07:52 -0000 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.=