tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

openldap-client, libfetch and OpenSSL


I build openldap-client with PREFER_PKGSRC=openldap-client openssl
This produces which links with pkgsrc's, and
base system The latter links with base system
Mixing two in the same program leads to unpleasant crashes.

The patch below works around the problem, at the expense of linking
pkgsrc's libfetch.a into Is it admissible? I also encounter
the same libfetch problem in dovecot, therefore I suspect there is a
better approach.

(please Cc: me as I am not subscribed to this list)

Index: databases/openldap/Makefile.common
RCS file: /cvsroot/pkgsrc/databases/openldap/Makefile.common,v
retrieving revision 1.30
diff -U4 -r1.30 Makefile.common
--- databases/openldap/Makefile.common  13 Mar 2012 19:57:10 -0000
+++ databases/openldap/Makefile.common  7 Aug 2012 12:22:16 -0000
@@ -85,8 +85,11 @@
 DB_CONFIG?=            # empty
 PTHREAD_OPTS+=         require
+# This avoids linking with base, which depends on base
+# causing crashes when openldap-client is linked with pkgsrc OpenSSL.
+.include "../../net/libfetch/"
 .include "../../security/openssl/"
 .include "../../security/tcp_wrappers/"
 .include "../../mk/"

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index