Return-Path: Received: from PCH.mit.edu (PCH.MIT.EDU [18.7.21.50]) by krbdev.mit.edu (Postfix) with ESMTPS id 0BD2D58340; Fri, 2 Oct 2015 11:54:32 -0400 (EDT) Received: from pch.mit.edu (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.13.8/8.12.8) with ESMTP id t92FsVCA024541; Fri, 2 Oct 2015 11:54:31 -0400 Received: from mailhub-dmz-3.mit.edu (mailhub-dmz-3.mit.edu [18.9.21.42]) by PCH.mit.edu (8.13.8/8.12.8) with ESMTP id t92Dw83R005614 for ; Fri, 2 Oct 2015 09:58:08 -0400 Received: from dmz-mailsec-scanner-3.mit.edu (dmz-mailsec-scanner-3.mit.edu [18.9.25.14]) by mailhub-dmz-3.mit.edu (8.13.8/8.9.2) with ESMTP id t92Dvnq2009262 for ; Fri, 2 Oct 2015 09:58:07 -0400 X-Auditid: 1209190e-f79296d00000051c-45-560e8d6bcca9 Authentication-Results: symauth.service.identifier Received: from aserp1040.oracle.com (aserp1040.oracle.com [141.146.126.69]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP id 31.8D.01308.C6D8E065; Fri, 2 Oct 2015 09:58:05 -0400 (EDT) Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t92Dvx1R030121 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 2 Oct 2015 13:57:59 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t92DvwIg004328 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 2 Oct 2015 13:57:59 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t92DvwhC021489 for ; Fri, 2 Oct 2015 13:57:58 GMT Received: from [10.163.20.90] (/10.163.20.90) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 02 Oct 2015 06:57:58 -0700 Message-ID: <560E8D52.20304@oracle.com> Date: Fri, 02 Oct 2015 15:57:38 +0200 From: Tomas Kuthan User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: krb5-bugs@mit.edu Subject: configure should auto-detect OpenLDAP libs on Solaris 11 and higher Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Source-Ip: aserv0021.oracle.com [141.146.126.233] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGKsWRWlGSWpSXmKPExsXSO6nOVTe3ly/MYN5MEYuGh8fZHRg9ms4c ZQ5gjOKySUnNySxLLdK3S+DK+Lf4FWPBC9GKvzPWMzYwThTuYuTkkBAwkbj5azYziM0oYCSx +9wrVoi4mMSFe+vZuhi5OIQEdjJJLN72ig0kISSwiEni6oVYiMQEJol1a5+wQjinGCWeHXnE DuG0M0oc+3qQBaSFV0BdomPBZLAdLAKqEg/P32cEsdkEdCQenlwAViMqECrRs+4eE0S9oMTJ mU/A4iICohIv/x4Ds4UFfCR+/dgH1sssYCYxb/NDZghbXqJ5K8QPEgLGEn2z+lgmMArNQjJq FpKWWUhaFjAyr2KUTcmt0s1NzMwpTk3WLU5OzMtLLdI11svNLNFLTSndxAgMZCFOSb4djF8P Kh1iFOBgVOLhjTjNGybEmlhWXJl7iFGSg0lJlPdxJ1+YEF9SfkplRmJxRnxRaU5q8SFGCQ5m JRFe31SgHG9KYmVValE+TEqag0VJnHfTD74QIYH0xJLU7NTUgtQimCwTB/shRhkODiUJ3tAe oG7BotT01Iq0zJwSZDWcIIILZA0P0Jp+kELe4oLE3OLMdIiiU4yKUuK8rSAJAZBERmke3ABY 8rnEKCslzMvIwMAgxAN0AdDjqPKvGMWBnhbmPdsNNIUnM68EbvoroMVMQIsXGIItLklESEk1 MHIoZ/22z63fvW9aMrt4LLN3hUnOsm+dX9WszqxYucukjDcm8+6z37syN/6uCi2pDXVdHP/l qV+Zisfku7c4OsReuxS9nMbTuun7gmbh1Lb9YmVXnm98aD0tSMr77ql0zXO2k25+KVm4mu3b NPFliwq2y0yd+SpsrlyS9cOqGxean+XdU0zMMFBiKc5INNRiLipOBABQVH2eOQMAAA== X-Mailman-Approved-At: Fri, 02 Oct 2015 11:54:30 -0400 X-Beenthere: krb5-bugs-incoming@mailman.mit.edu X-Mailman-Version: 2.1.6 Precedence: list Sender: krb5-bugs-incoming-bounces@PCH.mit.edu Errors-To: krb5-bugs-incoming-bounces@PCH.mit.edu Content-Length: 2738 Solaris 11 and higher delivers 2 implementations of LDAP libraries: - Mozilla LDAP in /usr/lib/libldap.so.5 - OpenLDAP in /usr/lib/libldap-2.4.so (or re-entrant libldap_r-2.4.so) - (headers under /usr/include/openldap) configure detects and uses the former. Sadly, MIT krb5 no longer builds with the old Mozilla LDAP lib: gcc -fPIC -DSHARED -DHAVE_CONFIG_H -Dkrb5_dbe_lookup_last_pwd_change=kdb_ldap_dbe_lookup_last_pwd_change -Dkrb5_dbe_lookup_tl_data=kdb_ldap_dbe_lookup_tl_data -Dkrb5_dbe_update_last_pwd_change=kdb_ldap_dbe_update_last_pwd_change -Dkrb5_dbe_update_tl_data=kdb_ldap_dbe_update_tl_data -I../../../../include -I/builds/krb5/src/include -I/builds/krb5/src/lib/kdb -I/builds/krb5/src/lib/krb5/asn.1 -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -g -O2 -Wall -Wcast-align -Wshadow -Wmissing-prototypes -pedantic -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=pointer-arith -Werror=declaration-after-statement -Werror-implicit-function-declaration -D_REENTRANT -pthreads -c /builds/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c -o kdb_ldap_conn.so.o && mv -f kdb_ldap_conn.so.o kdb_ldap_conn.so In file included from /builds/krb5/src/include/k5-int.h:178:0, from /builds/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h:35, from /builds/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_main.h:34, from /builds/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c:36: /builds/krb5/src/include/k5-trace.h:93:20: warning: anonymous variadic macros were introduced in C99 [-Wvariadic-macros] /builds/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c: In function ‘authenticate’: /builds/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c:142:43: error: ‘LDAP_SASL_QUIET’ undeclared (first use in this function) /builds/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c:142:43: note: each undeclared identifier is reported only once for each function it appears in gmake[2]: *** [kdb_ldap_conn.so] Error 1 gmake[2]: Leaving directory `/builds/krb5-build/plugins/kdb/ldap/libkdb_ldap' gmake[1]: *** [all-recurse] Error 1 gmake[1]: Leaving directory `/builds/krb5-build/plugins/kdb/ldap' gmake: *** [all-recurse] Error 1 Ideally configure would auto-detect and use OpenLDAP library at /usr/lib/libldap_r-2.4.so and headers from /usr/include/openldap. Alternatively the --with-ldap option could accept path to the library as an argument: ./configure --with-ldap=/usr/lib/libldap_r-2.4.so ...