[Samba] Samba-2.2.5pre1 - all binaries require libldap with --with-ldapsam

Buchan Milne bgmilne at cae.co.za
Tue Jun 11 12:33:05 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gerald Carter wrote:
| On Mon, 10 Jun 2002, Buchan Milne wrote:
|
|
|>While preparing packaging of te upcoming samba-2.2.5, we are looking at
|>having samba packages with and without ldap enabled, however, we would
|>like to try and minimize the duplication. But, it seems that most (all?)
|>binaries resulting from a --with-ldapsam build en up linking to libldap.
|>
|>Are there really good reasons for nmblookup, smbcacls, smbclient,
|>smbmount, smbprint, smbspool, smbtar, smbumount to need to link against
|>libldap (we have these in a samba-client sub-package, I don't see a need
|>for a samba-client-ldap package), or should I be compiling them
|>differently?
|
|
| smbpasswd & smbd will need the ldap libraries in this case (pdbedit as
| well if you package that).  Our makefile is kind of a mess when it comes
| to this kind of thing.
|

Unfortunately we use a tool to automatically grab dependencies from the
binaries, which normally works ok. From the output below, it seems that
the majority (except tdbackup I think) link to libldap, so unless I
disable dependency checks (not a good idea, and not really acceptable
...), any packages I make while compiling --with-ldapsam containing any
of the binaries below will require ldap libs (=bloat).

How do I fix the makefile?

[bgmilne at bgmilne bin]$ for i in *;do if [ `ldd $i |grep libldap |wc -l`
== 1 ];then echo $i;fi;done
debug2html
make_printerdef
make_smbcodepage
make_unicodemap
nmbd
nmblookup
pam_smbpass.so
pdbedit
rpcclient
smbcacls
smbclient
smbcontrol
smbd
smbfilter
smbmnt
smbmount
smbpasswd
smbsh
smbspool
smbstatus
smbumount
smbwrapper.so
swat
testparm
testprns
wbinfo
winbindd



Buchan

- --
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9BhL2rJK6UGDSBKcRAoJPAJsEBpwCePavV9GGH+3KXMdOxnJvnwCffNSb
QjFZiagYjdrLTDcxC/PDlzY=
=qKwt
-----END PGP SIGNATURE-----





More information about the samba mailing list