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 -- "If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein
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
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
On Sun, 2016-12-18 at 19:24 +0000, Jonathan Hunter via samba 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.Yes, this is a painfully well known bug in the debian xsltproc package, on i386 which doesn't seem to have a good resolution. It is made worse by various kernel versions, due to the placement of the stack, which overflows. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1471029 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750593 https://bugzilla.gnome.org/show_bug.cgi?id=736077 https://bugzilla.gnome.org/show_bug.cgi?id=751764 Andrew Bartlett
Wow - definitely not just me, in that case! Many thanks, both. This has also been added to Debian section of the wiki page, for the benefit of others :) (Thanks to Marc for the edit - I didn't have access to add external links) Much appreciated, Jonathan On 19 December 2016 at 21:39, Andrew Bartlett <abartlet at samba.org> wrote:> On Sun, 2016-12-18 at 19:24 +0000, Jonathan Hunter via samba 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. > > Yes, this is a painfully well known bug in the debian xsltproc package, > on i386 which doesn't seem to have a good resolution. > > It is made worse by various kernel versions, due to the placement of > the stack, which overflows. > > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1471029 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750593 > https://bugzilla.gnome.org/show_bug.cgi?id=736077 > https://bugzilla.gnome.org/show_bug.cgi?id=751764 > > Andrew Bartlett >-- "If we knew what it was we were doing, it would not be called research, would it?" - Albert Einstein
On Sun, Dec 18, 2016 at 07:24:05PM +0000, Jonathan Hunter 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 && makeIs there a reason you're using 'make distclean' rather than 'make clean'? The latter wouldn't remove the bundled copy of smb.conf.5, meaning you don't need to run xsltproc to rebuild it. You probably only want 'make distclean' if you're doing development work on Samba or e.g. a packager. Cheers, Jelmer -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: not available URL: <http://lists.samba.org/pipermail/samba/attachments/20161223/6152f03a/signature.sig>