Bug 8126 - Solaris/Mozilla ldap libraries badly interact with openldap libldap on the same system
Summary: Solaris/Mozilla ldap libraries badly interact with openldap libldap on the sa...
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.5.8
Hardware: Sparc Solaris
: P5 critical
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 21:45 UTC by leosum1
Modified: 2011-08-05 10:19 UTC (History)
0 users

See Also:


Attachments
solaris10.config.log (3.64 MB, application/octet-stream)
2011-05-09 21:45 UTC, leosum1
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description leosum1 2011-05-09 21:45:34 UTC
Created attachment 6440 [details]
solaris10.config.log

Hello,

With specific directories set for openldap and krb5 compiled (CC sunstudio12) with the following options :
./configure --prefix=/ec/sw/krb5/1.9.1 --exec-prefix=/ec/sw/krb5/1.9.1 --without-tcl --without-krb4 --enable-static --disable-shared
make
make all
make install
./configure --prefix=/ec/sw/openldap/2.4.23 -exec-prefix=/ec/sw/openldap/2.4.23 --disable-slapd --enable-static --disable-shared
make depend
make
make install

samba configure program is not working :

export LDFLAGS="-L/ec/sw/openldap/2.4.23/lib -L/ec/sw/krb5/1.9.1/lib"
./configure --prefix=/ec/sw/samba/3.5.8 --exec-prefix=/ec/sw/samba/3.5.8 --with-ldap=/ec/sw/openldap/2.4.23 --with-krb5=/ec/sw/krb5/1.9.1 --with-ads --without-winbind --enable-static --disable-shared

Please find in attachment the details of the config.log.
Comment 1 Björn Jacke 2011-08-05 10:19:32 UTC
this is a well known problem. I see no easy way to fix this. Especially a clean fix (not just a hack) seems to be close to impossible with the two completely  different libraries having the same name on the same system. Play around with LD_LIBRARY_PATH and the change the order of -L's in your resulting Makefile to force your build find the ldap library you want.

If you know how to fix this in a clean way, please tell us. So far I'll close this as wontfix, sorry.