Apparently, linking against both ldap and ldap_r causes problems: /usr/local/bin/ruby19:/usr/local/lib/libldap_r.so.11.0: /usr/local/lib/libldap.so.11.0 : WARNING: symbol(ldap_int_global_options) size mismatch, relink your program
This warning occurs when requiring ldap using ruby 1.8 or 1.9. Also, it causes the ruby process to dump core when it exits. This patch makes ruby-ldap only link against ldap, not ldap_r, which appears to fix this issue. Tested on i386, compiles fine on amd64. I'll be committing later this week unless I hear objections. Thanks, Jeremy Index: Makefile =================================================================== RCS file: /cvs/ports/databases/ruby-ldap/Makefile,v retrieving revision 1.25 diff -u -p -r1.25 Makefile --- Makefile 16 Sep 2011 08:48:05 -0000 1.25 +++ Makefile 3 Apr 2012 21:43:46 -0000 @@ -3,7 +3,7 @@ COMMENT= Ruby interface to some common LDAP libraries PKGNAME= ldap-0.9.8 -REVISION= 2 +REVISION= 3 DISTNAME= ruby-${PKGNAME} CATEGORIES= databases @@ -22,11 +22,12 @@ EXTRACT_SUFX = .tar.bz2 MODULES= lang/ruby -WANTLIB= crypto pthread ssl ldap ldap_r lber +WANTLIB= crypto pthread ssl ldap lber LIB_DEPENDS= databases/openldap CONFIGURE_STYLE= ruby extconf +CONFIGURE_ARGS= --without-libldap_r REGRESS_TARGET= test REGRESS_DEPENDS= databases/openldap,-server