Trying to build statically linked nss-winbind & pam-winbind

Louis Bouchard louis.bouchard at ubuntu.com
Mon Oct 10 15:56:23 UTC 2016


Hello,

I am working in fixing Ubuntu[1] and Debian[2] bugs occuring when upgrading the
libnss-winbind and libpam-winbind packages.

One option is to provide those libraries as statically linked to avoid ABI
breakage when upgrading. This has happened when commands were expecting the old
library while the new one is in place.

I have been investigating the use and possible enhancement of the
--nonshared-binary to be able to build a non-shared library, but for now, I am
simply unable to even build a non-shared binary. I also fail to build static
modules using the following WAF configuration :

>  --prefix=/usr \
> --enable-fhs \
> --sysconfdir=/etc \
> --localstatedir=/var \
> --with-privatedir=/var/lib/samba/private \
> --with-smbpasswd-file=/etc/samba/smbpasswd \
> --with-piddir=/var/run/samba \
> --with-pammodulesdir=/lib/$(DEB_HOST_MULTIARCH)/security \
> --with-pam \
> --with-syslog \
> --with-utmp \
> --with-pam_smbpass \
> --with-winbind \
> --with-static-modules=ALL \
> --nonshared-binary=smbtree \
> --with-automount \
> --with-ldap \
> --with-ads \
> --with-dnsupdate \
> --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
> --with-modulesdir=/usr/lib/$(DEB_HOST_MULTIARCH)/samba \
> --datadir=/usr/share \
> --with-lockdir=/var/run/samba \
> --with-statedir=/var/lib/samba \
> --with-cachedir=/var/cache/samba \
> --disable-avahi \
> --disable-rpath \
> --disable-rpath-install \
> --bundled--libraries=NONE,pytevent,iniparser,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,com_err,compile_et,asn1_compile \
> --builtin-libraries=replace,ccan,samba-cluster-support \
> --minimum-library-version="$(shell ./debian/autodeps.py --minimum-library-version)"


Use of --nonshared-binary=smbtree is for test purposes only.

Any suggestion or help would be more than welcomed. I've not been able to build
a single non-shared binary so far.

TIA,

Kind regards,

...Louis

-- 
Louis Bouchard
Software engineer,
Ubuntu Developer / Debian Maintainer
GPG : 429D 7A3B DD05 B6F8 AF63  B9C4 8B3D 867C 823E 7A61



More information about the samba-technical mailing list