Opened 6 years ago

Closed 6 years ago

#56154 closed defect (fixed)

openldap 2.4.46 fails to build with libressl on 10.10.5

Reported by: bK4gYuRo Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: bK4gYuRo, Schamschula (Marius Schamschula), jeremyhu (Jeremy Huddleston Sequoia), tgyurci (Teubel György)
Port: openldap

Description

Build fails at linking:

:info:build /usr/bin/clang -pipe -Os -arch x86_64 -Wl,-headerpad_max_install_names -arch x86_64 -o urltest urltest.o  -L/o
pt/local/lib -L/opt/local/lib/db48 ./.libs/libldap.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.m
acports.org_release_tarballs_ports_databases_openldap/openldap/work/openldap-2.4.46/libraries/liblber/.libs/liblber.a ../.
./libraries/liblber/.libs/liblber.a ../../libraries/liblutil/liblutil.a -lsasl2 -lssl -lcrypto -lresolv
:info:build Undefined symbols for architecture x86_64:
:info:build   "_BIO_meth_free", referenced from:
:info:build       _tlso_destroy in libldap.a(tls_o.o)
:info:build Undefined symbols for architecture x86_64:
:info:build   "_BIO_meth_free", referenced from:
:info:build       _tlso_destroy in libldap.a(tls_o.o)
:info:build   "_BIO_meth_new", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_new", referenced from:
:info:build   "_BIO_meth_set_create", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_set_create", referenced from:
:info:build   "_BIO_meth_set_ctrl", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_set_ctrl", referenced from:
:info:build   "_BIO_meth_set_destroy", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_set_destroy", referenced from:
:info:build   "_BIO_meth_set_gets", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_set_puts", referenced from:
:info:build   "_BIO_meth_set_gets", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_set_read", referenced from:
:info:build   "_BIO_meth_set_puts", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_set_read", referenced from:
:info:build   "_BIO_meth_set_write", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build       _tlso_init in libldap.a(tls_o.o)
:info:build   "_BIO_meth_set_write", referenced from:
:info:build       _tlso_init in libldap.a(tls_o.o)

Attachments (1)

main.log (223.5 KB) - added by bK4gYuRo 6 years ago.
build log of openldap

Download all attachments as: .zip

Change History (11)

Changed 6 years ago by bK4gYuRo

Attachment: main.log added

build log of openldap

comment:1 Changed 6 years ago by bK4gYuRo

Cc: bK4gYuRo added

comment:2 Changed 6 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:3 Changed 6 years ago by Schamschula (Marius Schamschula)

What version of the ssl library do yo have installed? From the log file it seems that you are not using openssl.

comment:4 Changed 6 years ago by bK4gYuRo

It's libressl:

$ port installed libressl
The following ports are currently installed:
  libressl @2.4.5_0
  libressl @2.5.3_0
  libressl @2.5.4_0
  libressl @2.5.5_0 (active)

comment:5 Changed 6 years ago by bK4gYuRo

There was #54275 for openldap 2.4.45, but it was a bit different. I wonder if upgrading libressl to 2.7 would fix the problem

comment:6 Changed 6 years ago by Schamschula (Marius Schamschula)

I was afraid that the libressl patch for openldap 2.4.46 would fail, as I had to remove one hunk from the patch against 2.4.45. As I use openssl, I have no way of testing against libressl.

comment:7 Changed 6 years ago by Schamschula (Marius Schamschula)

Cc: jeremyhu added

comment:8 Changed 6 years ago by Schamschula (Marius Schamschula)

I've added Jeremy, who added the previous libressl patch.

comment:9 Changed 6 years ago by tgyurci (Teubel György)

Cc: tgyurci added

comment:10 Changed 6 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.