tech-pkg archive

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

databases/ldb and ldap



Hi,

I have been looking into why databases/ldb (a dependency of samba4) 
fails to build without ldap support on Solarish (OmniOSCE here):

[...]
[119/134] Compiling tests/ldb_lmdb_free_list_test.c
[120/134] Linking bin/default/lldb_ldap_test
Undefined                       first referenced
 symbol                             in file
ldap_initialize                     tests/lldb_ldap.c.102.o
ld: fatal: symbol referencing errors. No output written to 
/var/obj/pkgsrc/databases/ldb/work/ldb-2.2.0/bin/default/lldb_ldap_test
collect2: error: ld returned 1 exit status
[...]

Since the ldb configure does not provide an ldap switch, options.mk 
patches ENABLE_LDAP_BACKEND. But this variable is only true based on 
certain conditions, otherwise undefined, so will not be patched. Adding 
a false branch explicitly did not help, because other parts of the 
build system apparently are not testing the variable any more.

ldb does build on NetBSD, but that is because the parts built 
unconditionally with ldap support pick up libraries from base:

%  ldd bin/default/lldb_ldap_test
bin/default/lldb_ldap_test:
[...]
	-lldap.4 => /usr/lib/libldap.so.4
	-llber.3 => /usr/lib/liblber.so.3
[...]

Does anybody familiar with ldb see a way around this fix? Or should we 
just punt, and mandate an ldap dependency for ldb (and in extension, 
for samba4)?

Cheerio,
Hauke

-- 
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email            Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-21344


Home | Main Index | Thread Index | Old Index