Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2018 04:56:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 227734] net/openldap24-sasl-client 2.4.46 undefined BIO_ references with libressl
Message-ID:  <bug-227734-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227734

            Bug ID: 227734
           Summary: net/openldap24-sasl-client 2.4.46 undefined BIO_
                    references with libressl
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: delphij@FreeBSD.org
          Reporter: dewayne@heuristicsystems.com.au
          Assignee: delphij@FreeBSD.org
             Flags: maintainer-feedback?(delphij@FreeBSD.org)

In an amd64 jail using libressl

Result of=20
# make __MAKE_CONF=3D/dev/null -C /usr/ports/net/openldap24-sasl-client -DB=
ATCH
-DMAKE_JOBS_UNSAFE  clean package
...
/bin/sh ../../libtool --mode=3Dlink  cc  -O2 -pipe  -fstack-protector
-fno-strict-aliasing  -Wl,-rpath,/usr/local/lib -fstack-protector   -o apit=
est
apitest.o libldap.la ../../libraries/liblber/liblber.la
../../libraries/liblutil/liblutil.a -lsasl2  -lssl -lcrypto   -L/usr/local/=
lib
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -Wl,-rpath
-Wl,/usr/local/lib -fstack-protector -o .libs/apitest apitest.o=20
./.libs/libldap.so ../../libraries/liblber/.libs/liblber.so
../../libraries/liblutil/liblutil.a /usr/local/lib/libsasl2.so -L/usr/local=
/lib
-lssl -lcrypto -Wl,--rpath -Wl,/usr/local/lib
./.libs/libldap.so: undefined reference to `BIO_meth_set_gets'
./.libs/libldap.so: undefined reference to `BIO_meth_set_puts'
./.libs/libldap.so: undefined reference to `BIO_meth_free'
./.libs/libldap.so: undefined reference to `BIO_meth_set_destroy'
./.libs/libldap.so: undefined reference to `BIO_meth_set_write'
./.libs/libldap.so: undefined reference to `BIO_meth_set_read'
./.libs/libldap.so: undefined reference to `BIO_meth_new'
./.libs/libldap.so: undefined reference to `BIO_meth_set_create'
./.libs/libldap.so: undefined reference to `BIO_meth_set_ctrl'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Environment is:
# openssl version ; echo ; cc -v ; echo ; ld -v; echo; uname -pvKU
LibreSSL 2.6.4

FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM
6.0.0)
Target: x86_64-unknown-freebsd11.2
Thread model: posix
InstalledDir: /usr/bin

GNU ld (GNU Binutils) 2.30

FreeBSD 11.2-PRERELEASE  r332843M  amd64 1101515 1101515

So I reverted the jail's userland to an earlier version=20
FreeBSD 11.2-PRERELEASE  r332843M   amd64 1101515 1101509
to replace clang 6 with clang 5.0.1; as I thought there may be some issues =
with
clang6 on amd64 as there is with i386.  The problem remains when built with
clang 5.0.1.
---
In an i386 jail using openssl:
# make -C /usr/ports/net/openldap24-sasl-client -DBATCH -DMAKE_JOBS_UNSAFE
clean package
Successful

# openssl version ; echo ; cc -v ; echo ; ld -v ; echo ; uname -pvKU
OpenSSL 1.0.2o  27 Mar 2018

FreeBSD clang version 5.0.1 (tags/RELEASE_501/final 320880) (based on LLVM
5.0.1)
Target: i386-unknown-freebsd11.1
Thread model: posix
InstalledDir: /usr/bin

GNU ld (GNU Binutils) 2.30

FreeBSD 11.2-PRERELEASE  r332843M  i386 1101515 1101509

In all cases
# svnlite info /usr/ports
...
Repository Root: https://svn.freebsd.org/ports
Revision: 468164
Last Changed Rev: 468163
Last Changed Date: 2018-04-24 10:26:05 +1000 (Tue, 24 Apr 2018)

PS I'm sure you're aware that the __MAKE_CONF=3D/dev/null removes /etc/make=
.conf
influence; and there are no option files :)

--=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-227734-7788>