[Samba] Building on debian 8.6

Jonathan Hunter jmhunter1 at gmail.com
Mon Dec 19 11:03:16 UTC 2016


Thank you Rowland!

Running 'apt-get install <all_those_packages>' resulted in:
[...]
The following extra packages will be installed:
  comerr-dev krb5-multidev libssl-doc
Suggested packages:
  doc-base krb5-doc
The following NEW packages will be installed:
  comerr-dev krb5-multidev libkrb5-dev libpam-krb5 libssl-dev libssl-doc
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,739 kB of archives.
After this operation, 8,103 kB of additional disk space will be used.

This made me quite hopeful that I'd be able to compile samba, but
sadly no luck - exactly the same again. (Sorry for the delayed
response - I left it compiling but the network connection dropped
overnight, so I re-started the build this morning!)

[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}
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 1


On 18 December 2016 at 19:54, Rowland Penny via samba
<samba at lists.samba.org> wrote:
> 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
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



-- 
"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