[Bug 216898] net/pjsip Doesn't compile with libressl and libressl-devel

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 8 00:07:52 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216898

            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 at FreeBSD.org
          Reporter: olivierw1+bugzilla-freebsd at hotmail.com
             Flags: maintainer-feedback?(madpilot at FreeBSD.org)
          Assignee: madpilot at FreeBSD.org

Created attachment 179732
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179732&action=edit
Fix build errors with LIbreSSL

Hello,

I(ve been using pjsip with libressl-devel for months. Unfortunately, the update
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 messages:
"/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefined
reference to `SSL_set1_sigalgs_list'
/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefined
reference to `SSL_set1_client_sigalgs_list'
/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefined
reference to `SSL_is_server'
/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefined
reference to `SSL_get_shared_curve'
/wrkdirs/usr/ports/net/pjsip/work/pjproject-2.6/pjlib/lib/libpj.so: undefined
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 compiles
fine with both libressl and libressl-devel.
Please find a patch attached.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list