[Samba] Building on debian 8.6

Rowland Penny rpenny at samba.org
Sun Dec 18 19:54:06 UTC 2016


On Sun, 18 Dec 2016 19:24:05 +0000
Jonathan Hunter via samba <samba at lists.samba.org> wrote:

> Hi,
> 
> Despite having used samba for many, many years, I have not built from
> source on Debian before. CentOS, yes.. Raspbian, yes.. but not Debian
> itself.
> 
> I have installed Debian 8.6 from scratch:
> newserver:~/download/samba-4.5.2$ cat /etc/debian_version
> 8.6
> user at newserver:~/download/samba-4.5.2$ uname -a
> Linux newserver 3.16.0-4-686-pae #1 SMP Debian 3.16.36-1+deb8u2
> (2016-10-19) i686 GNU/Linux
> 
> and have installed all required packages as per:
> https://wiki.samba.org/index.php/Samba_Dependencies_Required_to_Build_Samba#Debian_.2F_Ubuntu
> 
> The build works perfectly up to a point.. then fails with a
> segmentation fault. Are there logs from the build process that I could
> look at, to try and figure out what's failing?
> 
> user at newserver:~/download/samba-4.5.2$ make distclean && ./configure
> && make [...]
> [3777/3902] Linking
> default/source4/ldap_server/libservice_module_ldap.so [3778/3902]
> Linking default/source4/wrepl_server/libservice_module_wrepl.so
> [3779/3902] pidl.1p: pidl/pidl -> bin/default/pidl/pidl.1p
> [3780/3902] Parse::Pidl::Dump.3pm: pidl/lib/Parse/Pidl/Dump.pm ->
> bin/default/pidl/Parse::Pidl::Dump.3pm [3781/3902]
> Parse::Pidl::Wireshark::Conformance.3pm:
> pidl/lib/Parse/Pidl/Wireshark/Conformance.pm ->
> bin/default/pidl/Parse::Pidl::Wireshark::Conformance.3pm [3782/3902]
> Parse::Pidl::Util.3pm: pidl/lib/Parse/Pidl/Util.pm ->
> bin/default/pidl/Parse::Pidl::Util.3pm [3783/3902]
> Parse::Pidl::NDR.3pm: pidl/lib/Parse/Pidl/NDR.pm ->
> bin/default/pidl/Parse::Pidl::NDR.3pm [3784/3902]
> Parse::Pidl::Wireshark::NDR.3pm: pidl/lib/Parse/Pidl/Wireshark/NDR.pm
> -> bin/default/pidl/Parse::Pidl::Wireshark::NDR.3pm
> [3785/3902] Generating manpages/smb.conf.5
> Segmentation fault
> Waf: Leaving directory `/home/user/download/samba-4.5.2/bin'
> Build failed:  -> task failed (err #139):
>         {task: manpages/smb.conf.5 smb.conf.5.xml,parameters.all.xml
> -> smb.conf.5}
> 
> There might be something missing from my Debian installation (I'm
> normally a CentOS man; this is the first time I've tried Debian - you
> can probably tell!), but I'm confused by the fact that the build
> segfaults, rather than ./configure telling me something is missing.
> 
> I did think about trying to run strace, but it's quite a long build
> process and I wondered if there was a better way of debugging it.
> 
> Cheers,
> 
> Jonathan
> 

I think there might be some packages missing, it builds for me, do you
have all these installed:

build-essential libacl1-dev libattr1-dev libblkid-dev libreadline-dev
python-dev libpam0g-dev python-dnspython gdb pkg-config libpopt-dev
libldap2-dev dnsutils libbsd-dev attr krb5-user docbook-xsl
libcups2-dev acl libkrb5-dev libssl-dev xsltproc krb5-config
libpam-krb5 libgnutls28-dev libsystemd-dev libgpgme11-dev python-gpgme
python-m2crypto

There was a problem building the smb.conf map page, but I thought it
had been fixed, check you have all the required packages and we will go
from there.

Rowland




More information about the samba mailing list