After upgrading libtool to 2.2.4 and running revdep-rebuild courier-authlib was selected for re-emerging. This process failed as follows: config.status: executing depfiles commands config.status: executing libtool commands mv: cannot stat `libtoolT': No such file or directory /bin/sh ./libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -Wall -I.. -I./.. -o libuserdb.la userdb.lo userdb2.lo userdbmkpw.lo touch dummy /bin/sh ./libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -Wall -I.. -I./.. -static -o userdbpw userdbpw.o libuserdb.la ../libhmac/libhmac.la ../md5/libmd5.la ../sha1/libsha1.la -lcrypt ./libtool: line 13: func_dirname_and_basename: command not found /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/userdb/: /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/userdb/: is a directory make[3]: *** [userdbpw] Error 126 make[3]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/userdb' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/userdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce:
Portage 2.1.5.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.8_p20080602-r0, 2.6.24-hardened-r2 i686) ================================================================= System uname: 2.6.24-hardened-r2 i686 Intel(R) Celeron(R) CPU 2.80GHz Timestamp of tree: Wed, 11 Jun 2008 08:36:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium4 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-detect distlocks noinfo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.prz.rzeszow.pl" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex 3dnowext aalib apache2 authdaemond bash-completion bcmath berkdb bzip2 calendar cdb cgi cjk ck-server cli cracklib crypt ctype curl curlwrappers dba dpms erandom exif fam fastcgi force-cgi-redirect ftp gd-external gif gmp gnutls graphviz hal hardened hpn iconv imap inifile ipv6 jabber java javascript jpeg jpeg2k junit kerberos libcaca libwww linuxthreads-tls maildir mailwrapper mcve mhash midi ming mmx mmx2 mmxext mng mode-owner msn msnextras mysql mysqli ncurses nls nptl nptlonly offensive oggvorbis openssl oscar pam pcntl pcre pdo-external pear perl php pic png posix python readline real rtc sasl session sftplogging sharedmem simplexml soap sockets soundex spell spl sqlite sqlite3 sse sse2 ssl sun-jdk sysvipc tcpd tidy tokenizer truetype unicode urandom utf8 vda vhosts vim-syntax win32codecs x86 xcb xinetd xml xmlreader xmlrpc xorg xsl xvid yaz zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="none" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Is this problem specific to net-libs/courier-authlib-0.60.6? In other words, can you please try emerging something else that depends on sys-devel/libtool and see whether that fails as well?
This bug is specific to net-libs/courier-authlib (any version, including older ones). All other packages I remerged today (because of the libtool upgrade and the new libltdl.so) built fine.
During the revdep-rebuild that I executed after upgrading libtool 6 packages needed to be rebuilt. 5 of them built successfully; the 6th (which was actually the 3rd in order of building) this bug is about. So no; it's not specific to libtool but afaik rather to courier-authlib or whatever it does to invlolve libtool in its building.
I can confirm this is not a libtool problem. I have done emerge -eav system, and only build which fails is net-libs/courier-authlib-0.60.6 config.status: executing depfiles commands config.status: executing libtool commands config.status: executing libtool commands mv: cannot move `libtoolT' to `libtool': No such file or directory cp: cannot stat `libtoolT': No such file or directory /bin/sh ./libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -Wall -I.. -I./.. -o libuserdb.la userdb.lo userdb2.lo userdbmkpw.lo chmod: cannot access `libtool': No such file or directory /bin/sh: ./libtool: No such file or directory make[3]: *** [libuserdb.la] Error 127 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/userdb' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/userdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6' make: *** [all] Error 2
diego has fixed this
Is not fixed in courier-authlib-0.60.6 of the portage snapshot as of 08:45 CEST: ... make[2]: Entering directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6' /bin/sh ./libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./libltdl -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/postgresql/libpq-4 -march=prescott -O3 -pipe -mno-tls-direct-seg-refs -Wall -I.. -I./.. -MT authdaemon.lo -MD -MP -MF .deps/authdaemon.Tpo -c -o authdaemon.lo authdaemon.c /bin/sh ./libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./libltdl -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/postgresql/libpq-4 -march=prescott -O3 -pipe -mno-tls-direct-seg-refs -Wall -I.. -I./.. -MT authdaemonlib.lo -MD -MP -MF .deps/authdaemonlib.Tpo -c -o authdaemonlib.lo authdaemonlib.c ./libtool: line 20: func_dirname_and_basename: command not found /bin/sh ./libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./libltdl -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/postgresql/libpq-4 -march=prescott -O3 -pipe -mno-tls-direct-seg-refs -Wall -I.. -I./.. -MT preauthdaemon.lo -MD -MP -MF .deps/preauthdaemon.Tpo -c -o preauthdaemon.lo preauthdaemon.c ./libtool: line 20: func_dirname_and_basename: command not found /bin/sh ./libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./libltdl -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/postgresql/libpq-4 -march=prescott -O3 -pipe -mno-tls-direct-seg-refs -Wall -I.. -I./.. -MT authmoduser2.lo -MD -MP -MF .deps/authmoduser2.Tpo -c -o authmoduser2.lo authmoduser2.c ./libtool: line 20: func_dirname_and_basename: command not found /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: is a directory make[2]: *** [authmoduser2.lo] Error 126 make[2]: *** Waiting for unfinished jobs.... ./libtool: line 20: func_dirname_and_basename: command not found /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: is a directory make[2]: *** [preauthdaemon.lo] Error 126 /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: is a directory make[2]: *** [authdaemonlib.lo] Error 126 /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: /var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6/: is a directory make[2]: *** [authdaemon.lo] Error 126 make[2]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-libs/courier-authlib-0.60.6/work/courier-authlib-0.60.6' make: *** [all] Error 2 * * ERROR: net-libs/courier-authlib-0.60.6 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2856: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-libs/courier-authlib-0.60.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-libs/courier-authlib-0.60.6/temp/environment'. * * GNU info directory index is up-to-date. jord modelnine # ...
This is not fixed. Same problem as before. If there is a fix, please post details here.
Reopened as Bug #225867.
Sorry for the noise, reopened as Bug #227723.
*** Bug 227723 has been marked as a duplicate of this bug. ***
(In reply to comment #10) > Sorry for the noise, reopened as Bug #227723. No, that's another bug you opened.
(In reply to comment #12) > (In reply to comment #10) > > Sorry for the noise, reopened as Bug #227723. > > No, that's another bug you opened. > Yes, I know it's another bug I opened, but when nobody seemed inclined to reopen this bug even though two people reoprted the issue was not fixed for them (me being one), I thought it prudent to clone the bug. Anyway, you asked for emerge --info in the "new" bug: jord modelnine # emerge --info Portage 2.1.5.5 (default-linux/x86/2007.0, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.20-xen-r6 i686) ================================================================= System uname: 2.6.20-xen-r6 i686 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz Timestamp of tree: Tue, 17 Jun 2008 06:45:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r4 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.62 sys-devel/automake: 1.7.9-r1, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O3 -pipe -mno-tls-direct-seg-refs" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O3 -pipe -mno-tls-direct-seg-refs" DISTDIR="/usr/portage/distfiles" FEATURES="distcc distlocks parallel-fetch sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="aac acl apache2 authdaemond bash-completion berkdb bzip2 caps cli cracklib crypt cups djvu dri emacs fam fastcgi flac fortran fpx gd gdbm gmp gpg graphviz gs iconv iproute2 ipv6 isdnlog java jbig jpeg jpeg2k lcms lzo midi mmx mmxext mp3 mudflap mysql ncurses nls nptl nptlonly ogg openexr openmp pam pcre perl pg-intdatetime php png postgres pppd python readline reflection sasl session speex spell spl sqlite sse sse2 ssl svg tcpd tiff truetype unicode vorbis wma wmf x86 xattr xml xmlreader xmlrpc xmlwriter xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY jord modelnine #
OK, people, as this bug is getting nowhere, I've got a theory here, that somebody may want to test. Based on bug 226127. see if following changes make any progress: change in the ebuild sed line -e 's:AC_LIBLTDL_INSTALLABLE:AC_LIBLTDL_CONVENIENCE:' to -e 's:AC_LIBLTDL_INSTALLABLE:AC_LIB_LTDL:' (though I'm not sure if aclocal/autoconf won't start complaining about macro order, if it does, patch will probably be required instead of sed line or a more complicated sed line) and remove libltdl from AC_CONFIG_SUBDIRS (be careful, this change will most probably break the ebuild for libtool-1*) then change the block local d for d in $(find -name configure.in) ; do [[ ${d} == */libltdl/* ]] && continue cd "${S}"/${d%configure.in} AT_NO_RECURSIVE="yes" AT_NOELIBTOOLIZE="yes" eautoreconf done into standard, recursive eautoreconf.
I hope I didn't offended anybody here. I don't use this, previous comment was due to some posts on the forum, from people still having some problems. Personally, I think that this package (the whole courier family, really), has one of the more annoying built systems among small to medium size packages. Only one more annoying in this category, that I can recall is mit-krb5.
it seems to compile fine with USE="-gdbm"
USE="-gdbm" also worked for me. courier-authlib-0.59.2. I'm clutching to vpopmail until I install a new server some time next year.
Created attachment 160944 [details, diff] courier-authlib-0.60.6-r1.patch Patches to courier-authlib-0.60.6.ebuild to fix build issues against libtool 2.2.4.
Thanks, Paul. The patch works great.
I am getting errors reported in this bug intermittently. Running with MAKEOPTS="-j1" causes the build to succeed, so it seems to be related to parallel make.
courier-authlib-0.61.0 faild to build with the same errors... tested with -gdbm & also MAKEOPTS="-j1" & now courier-authlib compile correctly
(In reply to comment #21) > courier-authlib-0.61.0 faild to build with the same errors... > > tested with -gdbm & also MAKEOPTS="-j1" & now courier-authlib compile correctly > for me it works with the patch applied && gdbm set [ebuild R ] net-libs/courier-authlib-0.61.0 USE="berkdb crypt gdbm ldap pam -debug -mysql -postgres -vpopmail" whats wrong with the patch?
I had net-libs/courier-authlib-0.61.0 fail to emerge with libtool errors. Setting MAKEOPTS="-j1" solved the problem. I suspect that there's a bug in the upstream makefile, and the ebuild needs to force -j1 until we have an upstream fix.
same problem and same solution for courier-authlib-0.61.1 MAKEOPTS="-j1" emerge courier-authlib
MAKEOPTS="-j1" also fixes same issue for net-mail/courier-imap-4.4.1-r1 on ~amd64. (In reply to comment #24) > same problem and same solution for courier-authlib-0.61.1 > > MAKEOPTS="-j1" emerge courier-authlib >
Just came across this problem, MAKEOPTS="-j1" fixed it for me too.
(In reply to comment #26) > Just came across this problem, MAKEOPTS="-j1" fixed it for me too. > Same here, only it's courier-authlib-0.62.2 for me... MAKEOPTS="-j1" fixed it!
Same for me with 0.62.2. Looks like this package needs to force MAKEOPTS="-j1".
I could get rid of the eautoreconf call now, so we should be fine