Reproducible: always My original issue was was with failed emerge of samba. The error was at the step for building man page for smb.conf. The error message: [code] [2530/2657] Linking default/source3/modules/libvfs_module_expand_msdfs.so [2531/2657] Linking default/source3/modules/libvfs_module_dirsort.so [2532/2657] Linking default/source3/modules/libvfs_module_btrfs.so [2533/2657] Linking default/source3/net [2534/2657] Linking default/source3/modules/libvfs_module_acl_xattr.so [2535/2657] Linking default/source3/modules/libvfs_module_readonly.so [2536/2657] Linking default/source3/modules/libvfs_module_acl_tdb.so [2537/2657] Linking default/source3/pysmbd.so [2538/2657] Linking default/source3/modules/libvfs_module_media_harmony.so [2539/2657] Linking default/source3/modules/libvfs_module_recycle.so [2540/2657] Linking default/source3/modules/libnon-posix-acls-samba4.so [2541/2657] Linking default/source3/modules/libvfs_module_audit.so [2542/2657] Linking default/source3/modules/libvfs_module_fruit.so [2543/2657] Linking default/source3/modules/libvfs_module_default_quota.so [2544/2657] Linking default/source3/smbd/smbd [2545/2657] Linking default/source3/modules/libvfs_module_worm.so [2546/2657] Linking default/source3/modules/libvfs_module_time_audit.so [2547/2657] pidl.1: pidl/pidl -> bin/default/pidl/pidl.1 [2548/2657] Parse::Pidl::Dump.3pm: pidl/lib/Parse/Pidl/Dump.pm -> bin/default/pidl/Parse::Pidl::Dump.3pm [2549/2657] Parse::Pidl::Wireshark::Conformance.3pm: pidl/lib/Parse/Pidl/Wireshark/Conformance.pm -> bin/default/pidl/Parse::Pidl::Wireshark::Conformance.3pm [2550/2657] Parse::Pidl::Util.3pm: pidl/lib/Parse/Pidl/Util.pm -> bin/default/pidl/Parse::Pidl::Util.3pm [2551/2657] Parse::Pidl::NDR.3pm: pidl/lib/Parse/Pidl/NDR.pm -> bin/default/pidl/Parse::Pidl::NDR.3pm [2552/2657] Parse::Pidl::Wireshark::NDR.3pm: pidl/lib/Parse/Pidl/Wireshark/NDR.pm -> bin/default/pidl/Parse::Pidl::Wireshark::NDR.3pm [2553/2657] Generating manpages/smb.conf.5 [2554/2657] Generating manpages/dbwrap_tool.1 Note: Writing dbwrap_tool.1 [2555/2657] Generating manpages/eventlogadm.8 Note: Writing eventlogadm.8 [2556/2657] Generating manpages/findsmb.1 Note: Writing findsmb.1 [2557/2657] Generating manpages/libsmbclient.7 Note: Writing libsmbclient.7 [2558/2657] Generating manpages/lmhosts.5 Note: Writing lmhosts.5 [2559/2657] Generating manpages/log2pcap.1 Note: Writing log2pcap.1 Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.2.14/work/samba-4.2.14-.arm/bin' Build failed: -> task failed (err #-7): {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 * ERROR: net-fs/samba-4.2.14::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-fs/samba-4.2.14::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-fs/samba-4.2.14::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-fs/samba-4.2.14/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-4.2.14/temp/environment'. * Working directory: '/var/tmp/portage/net-fs/samba-4.2.14/work/samba-4.2.14-.arm' * S: '/var/tmp/portage/net-fs/samba-4.2.14/work/samba-4.2.14' >>> Failed to emerge net-fs/samba-4.2.14, Log file: >>> '/var/tmp/portage/net-fs/samba-4.2.14/temp/build.log' * Messages for package net-fs/samba-4.2.14: * ERROR: net-fs/samba-4.2.14::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-fs/samba-4.2.14::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-fs/samba-4.2.14::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-fs/samba-4.2.14/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-4.2.14/temp/environment'. * Working directory: '/var/tmp/portage/net-fs/samba-4.2.14/work/samba-4.2.14-.arm' * S: '/var/tmp/portage/net-fs/samba-4.2.14/work/samba-4.2.14' * GNU info directory index is up-to-date. [/code] I've tried installing different version of samba with different USE flags and so on without success The full report with all necessary information is in the forum: https://forums.gentoo.org/viewtopic-t-1059430.html fedeliallalinea suggested to check out https://lists.samba.org/archive/samba/2015-August/193201.html and it worked. I updated app-text/docbook-xsl-stylesheets to 1.79.1-r1(which is nor marked stable for ARM today), but the patch is not applied and the build failed. I applied: [code] Description: use EXSLT "replace" function when available A recursive implementation of string.subst is problematic, long strings with many matches will cause stack overflows. Author: Peter De Wachter <pdewacht@gmail.com> Bug-Debian: https://bugs.debian.org/750593 --- docbook-xsl-1.78.1+dfsg.orig/docbook-xsl/lib/lib.xsl +++ docbook-xsl-1.78.1+dfsg/docbook-xsl/lib/lib.xsl @@ -10,7 +10,10 @@ This module implements DTD-independent functions ******************************************************************** --> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" + exclude-result-prefixes="str" + version="1.0"> <xsl:template name="dot.count"> <!-- Returns the number of "." characters in a string --> @@ -56,6 +59,9 @@ <xsl:param name="replacement"/> <xsl:choose> + <xsl:when test="function-available('str:replace')"> + <xsl:value-of select="str:replace($string, string($target), string($replacement))"/> + </xsl:when> <xsl:when test="contains($string, $target)"> <xsl:variable name="rest"> <xsl:call-template name="string.subst"> [/code] to /usr/share/sgml/docbook/xsl-stylesheets/lib/lib.xsl and then the compilation of samba succeeds. If needed I can copy all the information from the forum here.
*** This bug has been marked as a duplicate of bug 488168 ***