tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
openldap-client, libfetch and OpenSSL
Hi
I build openldap-client with PREFER_PKGSRC=openldap-client openssl
This produces libldap.so which links with pkgsrc's libcrypto.so, and
base system libfetch.so. The latter links with base system libcrypto.so.
Mixing two libcrypto.so 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 libldap.so. 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
1.30
+++ 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 libfetch.so, which depends on base
OpenSSL.
+# causing crashes when openldap-client is linked with pkgsrc OpenSSL.
+.include "../../net/libfetch/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index