[Pkg-samba-maint] "dh_install: missing files" when building Samba with MIT Kerberos support

Guillermo López Alejos guillermo at lopezalejos.es
Sat Feb 24 20:43:41 UTC 2018


Hi Louis,

Thanks for the prompt and detailed answer.

Digging a little bit into this, it seems that the compilation process 
did actually succeed (I had to look into the build tree to locate smbd 
and then move around some shared libraries to get it working):

smbd -b | grep HAVE_LIBKADM5SRV_MIT
    HAVE_LIBKADM5SRV_MIT

Therefore the problem comes later on. Why is "dh_install" target looking 
for Heimdal libraries? (for example "libHDB-SAMBA4.so.0"). I'm neither 
acquainted with the Samba build process nor the Debian packaging 
process. Is this a problem with Samba build process? Or the Debian 
packaging? (maybe both :) ).

I guess that I need to instruct the process not to look for Heimdal 
libraries. Do you know how can I achieve this?

Have a nice holidays.

Kind regards,

Guillermo




On 02/23/2018 09:12 AM, L.P.H. van Belle wrote:
> Hai,
> 
> I suggest, check the minimal versions you need for the build, these are not correct in debian stretch,
> and you might need to rebuild these first, or use the packages i make for the samba list community, or use the debs from buster directly.
> 
> To use my debian stretch based packages, these you need the following.
> wget -O - http://apt.van-belle.nl/louis-van-belle.gpg-key.asc | apt-key add -
> echo "deb http://apt.van-belle.nl/debian stretch-unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list
> echo "deb-src http://apt.van-belle.nl/debian stretch-unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list
> 
> The apt line shows unstable, not that the package is unstable, thats because i also have multiple samba verions for stretch and jessie.
> 
> Everything you need, in requirements are done, and you can use a samba 4.7.5. if you want.
> All my build are based on the official debian builds, so credits to the debian samba devs here.
> I'm not a samba dev or debian dev, im just active in helping out.
> 
> Back to the build.. ;-)
> Make sure you met these requirements.
> For example ldb 1.2.3 tevent 0.9.34 talloc 2.1.10 tdb 1.3.15 and krb5 1.15.1
> 
> Then when these above requirements are all met, then you can prepair to build.
> 
> apt-get build-dep samba
> apt-get source samba
>   
> - Change in the debian/control
> Add these 2 in the Build-Depends: section.
> 	       libkrb5-dev (>= 1.15.1~),
> 	       krb5-kdc (>= 1.15.1~)
> 
> You already know about the --with-system-mitkrb5, check and add it also.
> 
> Make sure you changed the version in debian/changelog, that helps preventing conficts with official packages.
> 
> Now you can build samba with MIT support.
> 
> 
> Greetz,
> 
> Louis
> P.s. im going on holiday "today/tonight" so response on this mail can take some time.
> 
> 
>> -----Oorspronkelijk bericht-----
>> Van: Pkg-samba-maint
>> [mailto:pkg-samba-maint-bounces+belle=bazuin.nl at lists.alioth.d
>> ebian.org] Namens Guillermo López Alejos
>> Verzonden: donderdag 22 februari 2018 23:02
>> Aan: pkg-samba-maint at lists.alioth.debian.org
>> Onderwerp: [Pkg-samba-maint] "dh_install: missing files" when
>> building Samba with MIT Kerberos support
>>
>> Dear Samba package maintainers,
>>
>> I'm working in the integration of a new Samba server with an existing
>> MIT Kerberos server in my network.
>>
>> Since the Samba package in Debian Buster is not compiled with MIT
>> Kerberos support, I'm in the process of compiling the source
>> code with
>> support for this provider [1].
>>
>> Following are the steps that I'm executing:
>>
>> ---
>> apt-get build-dep samba
>> apt-get source samba
>>
>> # List of dependencies stated in [2]
>> apt-get install acl attr autoconf bind9utils bison build-essential
>> debhelper dnsutils docbook-xml docbook-xsl flex gdb libjansson-dev
>> krb5-user libacl1-dev libarchive-dev libattr1-dev libblkid-dev
>> libbsd-dev libcap-dev libcups2-dev libgpgme11-dev libjson-perl
>> libldap2-dev libncurses5-dev libpam0g-dev libparse-yapp-perl
>> libpopt-dev
>> libreadline-dev nettle-dev perl perl-modules pkg-config
>> python-all-dev
>> python-crypto python-dbg python-dev python-dnspython
>> python3-dnspython
>> python-markdown python3-markdown python3-dev xsltproc zlib1g-dev
>> krb5-kdc libkrb5-dev libgnutls28-dev python-gpg python3-gpg
>> libsystemd-dev
>>
>>
>> cd samba-4.7.4+dfsg
>>
>> # Added the following lines to debian/rules:
>> #conf_args += \
>> #	--with-system-mitkrb5
>>
>> dpkg-buildpackage
>> ---
>>
>> The build process fails with the messages shown in [3]. I've tried
>> removing "heimbase", "heimntlm", and "hdb" from
>> "--bundled-libraries" in
>> "debian/rules" but the result seems to be the same.
>>
>> Can you point out why would the files referred in [3] be missing?
>>
>> Thank you,
>>
>> Guillermo
>>
>> ---
>> [1]
>> https://wiki.samba.org/index.php/Running_a_Samba_AD_DC_with_MI
>> T_Kerberos_KDC
>> [2]
>> https://wiki.samba.org/index.php/Package_Dependencies_Required
>> _to_Build_Samba#Debian_.2F_Ubuntu
>> [3]
>> dh_install --sourcedir=/root/samba-src/samba-4.7.4+dfsg/debian/tmp
>> --list-missing --fail-missing
>> dh_install: Please use dh_missing
>> --list-missing/--fail-missing instead
>> dh_install: This feature will be removed in compat 12.
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libHDB-SAMBA4.so.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba missing files: usr/lib/*/samba/libHDB-SAMBA4.so.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libhdb-samba4.so.11" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba missing files: usr/lib/*/samba/libhdb-samba4.so.11
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libhdb-samba4.so.11.0.2" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba missing files:
>> usr/lib/*/samba/libhdb-samba4.so.11.0.2
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libkdc-samba4.so.2" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba missing files: usr/lib/*/samba/libkdc-samba4.so.2
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libkdc-samba4.so.2.0.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba missing files:
>> usr/lib/*/samba/libkdc-samba4.so.2.0.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libasn1-samba4.so.8" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libasn1-samba4.so.8
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libasn1-samba4.so.8.0.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libasn1-samba4.so.8.0.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libcom_err-samba4.so.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libcom_err-samba4.so.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libcom_err-samba4.so.0.25" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libcom_err-samba4.so.0.25
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libgssapi-samba4.so.2" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libgssapi-samba4.so.2
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libgssapi-samba4.so.2.0.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libgssapi-samba4.so.2.0.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libhcrypto-samba4.so.5" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libhcrypto-samba4.so.5
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libhcrypto-samba4.so.5.0.1" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libhcrypto-samba4.so.5.0.1
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libheimbase-samba4.so.1" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libheimbase-samba4.so.1
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libheimbase-samba4.so.1.0.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libheimbase-samba4.so.1.0.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libheimntlm-samba4.so.1" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libheimntlm-samba4.so.1
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libheimntlm-samba4.so.1.0.1" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libheimntlm-samba4.so.1.0.1
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libhx509-samba4.so.5" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libhx509-samba4.so.5
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libhx509-samba4.so.5.0.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libhx509-samba4.so.5.0.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libkrb5-samba4.so.26" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libkrb5-samba4.so.26
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libkrb5-samba4.so.26.0.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libkrb5-samba4.so.26.0.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libroken-samba4.so.19" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libroken-samba4.so.19
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libroken-samba4.so.19.0.1" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libroken-samba4.so.19.0.1
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libwind-samba4.so.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libwind-samba4.so.0
>> dh_install: Cannot find (any matches for)
>> "usr/lib/*/samba/libwind-samba4.so.0.0.0" (tried in
>> /root/samba-src/samba-4.7.4\+dfsg/debian/tmp, debian/tmp)
>>
>> dh_install: samba-libs missing files:
>> usr/lib/*/samba/libwind-samba4.so.0.0.0
>> dh_install: missing files, aborting
>> debian/rules:126: recipe for target 'override_dh_install' failed
>> make[1]: *** [override_dh_install] Error 25
>> make[1]: Leaving directory '/root/samba-src/samba-4.7.4+dfsg'
>> debian/rules:84: recipe for target 'binary' failed
>> make: *** [binary] Error 2
>> dpkg-buildpackage: error: debian/rules binary subprocess
>> returned exit
>> status 2
>>
>> _______________________________________________
>> Pkg-samba-maint mailing list
>> Pkg-samba-maint at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sa
>> mba-maint
>>
>>
> 
> 



More information about the Pkg-samba-maint mailing list