Has anyone had issues compiling Samba-4.1.9? I am getting an error saying:
Checking for system subunit : not found
ERROR: System library subunit of version 0.0.0 not found, and bundling disabled
* ERROR: net-fs/samba-4.1.9 failed (configure phase):
* configure failed
*
* Call stack:
* ebuild.sh, line 93: Called src_configure
* environment, line 4104: Called waf-utils_src_configure '--enable-fhs' '--sysconfdir=/etc' '--localstatedir=/var' '--with-modulesdir=/usr/lib64/samba' '--with-pammodulesdir=/lib64/security' '--with-piddir=/var/run/samba' '--disable-rpath' '--disable-rpath-install' '--nopyc' '--nopyo' '--bundled-libraries=NONE' '--builtin-libraries=NONE' '--with-dnsupdate' '--with-acl-support' '--with-ads' '--with-aio-support' '--disable-avahi' '--without-cluster-support' '--enable-cups' '--without-dmapi' '--with-fam' '--disable-gnutls' '--enable-iprint' '--with-ldap' '--with-pam' '--with-pam_smbpass' '--with-quotas' '--with-syslog' '--with-winbind' '--with-shared-modules=idmap_ad'
* environment, line 4978: Called die
* The specific snippet of code:
* CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" "--prefix=${EPREFIX}/usr" "${libdir}" "$@" configure || die "configure failed";
*
* If you need support, post the output of `emerge --info '=net-fs/samba-4.1.9'`,
* the complete build log and the output of `emerge -pqv '=net-fs/samba-4.1.9'`.
* The complete build log is located at '/var/tmp/portage/net-fs/samba-4.1.9/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-4.1.9/temp/environment'.
* Working directory: '/var/tmp/portage/net-fs/samba-4.1.9/work/samba-4.1.9'
* S: '/var/tmp/portage/net-fs/samba-4.1.9/work/samba-4.1.9'
I removed dev-python/subunit-0.0.18-r1000 and reinstalled it but to no avail.
Question
eusanpe
Hello all,
Has anyone had issues compiling Samba-4.1.9? I am getting an error saying:
Checking for system subunit : not found ERROR: System library subunit of version 0.0.0 not found, and bundling disabled * ERROR: net-fs/samba-4.1.9 failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 4104: Called waf-utils_src_configure '--enable-fhs' '--sysconfdir=/etc' '--localstatedir=/var' '--with-modulesdir=/usr/lib64/samba' '--with-pammodulesdir=/lib64/security' '--with-piddir=/var/run/samba' '--disable-rpath' '--disable-rpath-install' '--nopyc' '--nopyo' '--bundled-libraries=NONE' '--builtin-libraries=NONE' '--with-dnsupdate' '--with-acl-support' '--with-ads' '--with-aio-support' '--disable-avahi' '--without-cluster-support' '--enable-cups' '--without-dmapi' '--with-fam' '--disable-gnutls' '--enable-iprint' '--with-ldap' '--with-pam' '--with-pam_smbpass' '--with-quotas' '--with-syslog' '--with-winbind' '--with-shared-modules=idmap_ad' * environment, line 4978: Called die * The specific snippet of code: * CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" "--prefix=${EPREFIX}/usr" "${libdir}" "$@" configure || die "configure failed"; * * If you need support, post the output of `emerge --info '=net-fs/samba-4.1.9'`, * the complete build log and the output of `emerge -pqv '=net-fs/samba-4.1.9'`. * The complete build log is located at '/var/tmp/portage/net-fs/samba-4.1.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-fs/samba-4.1.9/temp/environment'. * Working directory: '/var/tmp/portage/net-fs/samba-4.1.9/work/samba-4.1.9' * S: '/var/tmp/portage/net-fs/samba-4.1.9/work/samba-4.1.9'I removed dev-python/subunit-0.0.18-r1000 and reinstalled it but to no avail.
Here are some settings:
emerge --info
I was able to run the configure script from the source code and it worked fine. The configure script running from the ebuild is the issue.
Thanks,
Tony
UPDATE - 11:53 PM CST
I noticed that Samba-4.1.6 compiled just fine but Samba-4.1.9 didn't. I ran a diff of the two ebuilds and found the difference.
Samba-4.1.6.ebuild portion - (This compiles fine)
src_configure() { local myconf='' use "cluster" && myconf+=" --with-ctdb-dir=/usr" use "test" && myconf+=" --enable-selftest" myconf="${myconf} \ --enable-fhs \ --sysconfdir=/etc \ --localstatedir=/var \ --with-modulesdir=/usr/$(get_libdir)/samba \ --with-pammodulesdir=/$(get_libdir)/security \ --with-piddir=/var/run/${PN} \ --disable-rpath \ --disable-rpath-install \ --nopyc \ --nopyo \ --bundled-libraries=ntdb \ --builtin-libraries=ntdb \ $(use_with addns dnsupdate) \ $(use_with acl acl-support) \ $(use_with ads) \ $(use_with aio aio-support) \ $(use_enable avahi) \ $(use_with cluster cluster-support) \ $(use_enable cups) \ $(use_with dmapi) \ $(use_with fam) \ $(use_enable gnutls) \ $(use_enable iprint) \ $(use_with ldap) \ --with-pam \ --with-pam_smbpass \ $(use_with quota quotas) \ $(use_with syslog) \ $(use_with winbind) " use "ads" && myconf+=" --with-shared-modules=idmap_ad"You will notice that the configure options --bundled-libraries and --builtin-libraries are set to 'ntdb'
Samba-4.1.9.ebuild portion - (This does not compile)
src_configure() { local myconf='' use "cluster" && myconf+=" --with-ctdb-dir=/usr" use "test" && myconf+=" --enable-selftest" myconf="${myconf} \ --enable-fhs \ --sysconfdir=/etc \ --localstatedir=/var \ --with-modulesdir=/usr/$(get_libdir)/samba \ --with-pammodulesdir=/$(get_libdir)/security \ --with-piddir=/var/run/${PN} \ --disable-rpath \ --disable-rpath-install \ --nopyc \ --nopyo \ --bundled-libraries=NONE \ --builtin-libraries=NONE \ $(use_with addns dnsupdate) \ $(use_with acl acl-support) \ $(use_with ads) \ $(use_with aio aio-support) \ $(use_enable avahi) \ $(use_with cluster cluster-support) \ $(use_enable cups) \ $(use_with dmapi) \ $(use_with fam) \ $(use_enable gnutls) \ $(use_enable iprint) \ $(use_with ldap) \ --with-pam \ --with-pam_smbpass \ $(use_with quota quotas) \ $(use_with syslog) \ $(use_with winbind) " use "ads" && myconf+=" --with-shared-modules=idmap_ad"You will notice that the configure options --bundled-libraries and --builtin-libraries are set to 'NONE'
I set them to 'ntdb' like the Samba-4.1.6.ebuild and everything compiled fine.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts