Building courier dies in the configure script for imap, with: configure: configuring in imap configure: running /bin/sh './configure' --prefix=/usr '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--prefix=/usr' '--disable-root-check' '--mandir=/usr/share/man' '--sysconfdir=/etc/courier' '--libexecdir=/usr/lib/courier' '--datadir=/usr/share/courier' '--sharedstatedir=/var/lib/courier/com' '--localstatedir=/var/lib/courier' '--with-piddir=/var/run/courier' '--with-authdaemonvar=/var/lib/courier/authdaemon' '--with-mailuser=mail' '--with-mailgroup=mail' '--with-paranoid-smtpext' '--with-db=gdbm' '--disable-autorenamesent' '--cache-file=/var/tmp/portage/courier-0.48.1/work/courier-0.48.1/configuring.cache' '--host=i586-pc-linux-gnu' '--with-ispell' '--without-ipv6' '--without-ldapaliasd' '--disable-maildropldap' '--enable-nls' '--enable-unicode' '--enable-mimetypes=/etc/apache2/conf/mime.types' 'debug=true' 'CFLAGS=-march=k6-2 -Os -pipe' 'CXXFLAGS=-march=k6-2 -Os -pipe' 'host_alias=i586-pc-linux-gnu' --with-makedatprog=/usr/lib/courier/courier/makedatprog --with-package=courier --with-version=0.48.1 --with-courierlogger=/usr/sbin/courierlogger --with-mailuid=8 --with-mailgid=12 --enable-trusted-groups='mail' --with-formdata --enable-utf7-folder-encoding --with-webadmindir=/usr/share/courier/courierwebadmin --cache-file=/var/tmp/portage/courier-0.48.1/work/courier-0.48.1/configuring.cache --srcdir=. configure: error: invalid feature name: nls configure: error: /bin/sh './configure' failed for imap !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/courier-0.48.1/work/courier-0.48.1/config.log config.log attached as requested. Reproducible: Always Steps to Reproduce: Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808- r1, 2.4.28-gentoo-r5 i586) ================================================================= System uname: 2.4.28-gentoo-r5 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.4.16 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 9 2005, 12:23:03)] distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.2.3-r5, 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.7.9-r1, 1.5, 1.6.3, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.19-r1, 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=k6-2 -Os -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/ 3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k6-2 -Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http:// gentoo.blueyonder.co.uk http://mirror.datapipe.net/gentoo http://mirror.uni-c. dk/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib apache2 apm arts avi berkdb bitmap-fonts crypt cups dga encode esd f77 fam fbcon flac font-server foomaticdb gd gdbm ggi gif gpm gtk gtk2 gtkhtml imlib java javascript jpeg libg++ libwww mad maildir matrox mikmod mmx motif mpeg msn mysql nas ncurses nls oggvorbis opengl operanom2 oscar oss pam pdflib perl png python qt quicktime readline samba sdl slang speex spell ssl svga symlink tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb wmf xml xml2 xmms xv yahoo zlib video_cards_matrox" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Created attachment 50820 [details] config.log
Unless you know you specifically require nls, taking that out of your use flags will make many things compile faster, and that would directly remove the line it complained about here. However, it should not have stopped at all. I ran a successful build with your exact set of use flags, even cut and pasted the ./configure line from your log where yours died on a k6-2 machine that I have here but even that worked. If you're running a k6-2, you're obviously not on a multiprocessor, so the MAKEOPTS="-j4" isn't likely to help and in fact tends to introduce random build errors. Try rebuilding with that set to "-j1". And was your glibc built with the nls use flag in effect?
The -j4 is for distcc. The 5 or 6 previous versions of courier all built fine, but I'll try rebuilding glibc just in case (groan).
According to portage, glibc was built with nls: # emerge -pv glibc [ebuild R ] sys-libs/glibc-2.3.4.20040808-r1 -build -debug -erandom -hardened (-multilib) +nls -nptl -pic -userlocales 15,372 kB Need I rebuild it?
No, that looks fine. I don't see that you're doing anything wrong. Before going thru a big beast like glibc, maybe try the courier-0.48.2, first thru distcc then as a "-j1" if that doesn't go. I don't think the nls has a whole lot of impact on courier aside from the webmail part, so you probably wouldn't miss much building courier without it.
from config.log: configure:5227: checking for Fortran 77 compiler version configure:5227: --version </dev/null >&5 ./configure: line 1: --version: command not found configure:5230: $? = 127 configure:5232: -v </dev/null >&5 ./configure: line 1: -v: command not found configure:5235: $? = 127 configure:5237: -V </dev/null >&5 ./configure: line 1: -V: command not found configure:5240: $? = 127 configure:5248: checking whether we are using the GNU Fortran 77 compiler configure:5262: -c conftest.F >&5 ./configure: line 1: -c: command not found doesn't look good. May be something is wrong with your toolchain?
I just tried to build courier-0.48.1 without the nls use flag, and it failed at a different place: configure: configuring in webadmin configure: running /bin/sh './configure' --prefix=/usr '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--prefix=/usr' '--disable-root-check' '--mandir=/usr/share/man' '--sysconfdir=/etc/courier' '--libexecdir=/usr/lib/courier' '--datadir=/usr/share/courier' '--sharedstatedir=/var/lib/courier/com' '--localstatedir=/var/lib/courier' '--with-piddir=/var/run/courier' '--with-authdaemonvar=/var/lib/courier/authdaemon' '--with-mailuser=mail' '--with-mailgroup=mail' '--with-paranoid-smtpext' '--with-db=gdbm' '--disable-autorenamesent' '--cache-file=/var/tmp/portage/courier-0.48.1/work/courier-0.48.1/configuring.cache' '--host=i586-pc-linux-gnu' '--with-ispell' '--without-ipv6' '--without-ldapaliasd' '--disable-maildropldap' '--disable-nls' '--disable-unicode' '--enable-mimetypes=/etc/apache2/conf/mime.types' 'debug=true' 'CFLAGS=-march=k6-2 -Os -pipe' 'CXXFLAGS=-march=k6-2 -Os -pipe' 'host_alias=i586-pc-linux-gnu' --with-makedatprog=/usr/lib/courier/courier/makedatprog --with-package=courier --with-version=0.48.1 --with-courierlogger=/usr/sbin/courierlogger --with-mailuid=8 --with-mailgid=12 --enable-trusted-groups='mail' --with-formdata --enable-utf7-folder-encoding --with-webadmindir=/usr/share/courier/courierwebadmin --cache-file=/var/tmp/portage/courier-0.48.1/work/courier-0.48.1/configuring.cache --srcdir=. configure: error: invalid feature name: mimetypes configure: error: /bin/sh './configure' failed for webadmin !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/courier-0.48.1/work/courier-0.48.1/config.log I'll attach config.log again.
Created attachment 50860 [details] config.log config.log with USE="-nls"
whats the output of gcc-config -l fyi, on my k6-2, I kept getting random segfaults until I set the chost to be i486-pc-linux-gnu. Not necessarily the problem here, but worth a mention. Perhaps try building with FEATURES="-distcc -ccache" Also try deleting the line in the ebuild that has --cache-file=
# gcc-config -l [1] i586-pc-linux-gnu-3.3.5 * [2] i586-pc-linux-gnu-3.3.5-hardened [3] i586-pc-linux-gnu-3.3.5-hardenednopie [4] i586-pc-linux-gnu-3.3.5-hardenednossp distcc isn't actually in FEATURES, I'd removed it a while back. I'll try rebuilding with ccache disabled, then with removing that item from the ebuild.
if you aren't using distcc, i'd suggest leaving the makeopts at '-j1' Do this: ls -l /etc/env.d there will be a number of files listed, but the important place is around here: -rw-r--r-- 1 root root 69 Feb 3 10:16 03opengl -rw-r--r-- 1 root root 360 Feb 8 23:55 05gcc -rw-r--r-- 1 root root 105 Dec 19 21:16 10mozilla Do you have extra files starting with 05gcc? if so, delete them and run: gcc-config 1 (even though it was already set on the first one.) then: env-update ; source /etc/profile
I don't actually have ccache installed on the system, but changing MAKEOPTS from -j4 to -j2 worked. I assume this is due to something that changed in courier itself, as all previous versions build on this box without problems.
Problems that result from parallel make tend to be random since the threads get started at the same time but there is no real control over how they get scheduled past that. There are many packages that override the makeopts because of problems like this. If you don't actually have multiple processors, the unpredictable errors combined with larger memory demands of trying to compile in parallel will only work against you.