[Samba] Building on debian 8.6

Jonathan Hunter jmhunter1 at gmail.com
Sun Dec 18 19:24:05 UTC 2016


Despite having used samba for many, many years, I have not built from
source on Debian before. CentOS, yes.. Raspbian, yes.. but not Debian

I have installed Debian 8.6 from scratch:
newserver:~/download/samba-4.5.2$ cat /etc/debian_version
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:

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 ->
[3781/3902] Parse::Pidl::Wireshark::Conformance.3pm:
pidl/lib/Parse/Pidl/Wireshark/Conformance.pm ->
[3782/3902] Parse::Pidl::Util.3pm: pidl/lib/Parse/Pidl/Util.pm ->
[3783/3902] Parse::Pidl::NDR.3pm: pidl/lib/Parse/Pidl/NDR.pm ->
[3784/3902] Parse::Pidl::Wireshark::NDR.3pm:
pidl/lib/Parse/Pidl/Wireshark/NDR.pm ->
[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.



"If we knew what it was we were doing, it would not be called
research, would it?"
      - Albert Einstein

More information about the samba mailing list