Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61050 - courier-imap-3.0.7 fails to compile
Summary: courier-imap-3.0.7 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 11:04 UTC by Alexander Ivanchev
Modified: 2004-08-21 12:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Ivanchev 2004-08-20 11:04:52 UTC
net-mail/courier-imap-3.0.7 fails to compile with:

Calculating world dependencies ...done!
[ebuild     U ] net-mail/courier-imap-3.0.7 [3.0.5] +berkdb -debug -fam +gdbm -ipv6 -ldap +mysql +nls +pam -postgres -(selinux)  0 kB 
...
configure: configuring in liblog
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--build=i686-pc-linux-gnu' '--disable-root-check' '--bindir=/usr/sbin' '--mandir=/usr/share/man' '--sysconfdir=/etc/courier-imap' '--libexecdir=/usr/lib/courier-imap' '--localstatedir=/var/lib/courier-imap' '--enable-workarounds-for-imap-client-bugs' '--with-authdaemonvar=/var/lib/courier-imap/authdaemon' '--cache-file=/var/tmp/portage/courier-imap-3.0.7/work/config.cache' '--with-authpam' '--without-authldap' '--with-authmysql' '--without-authpostgresql' '--without-ipv6' '--with-db=gdbm' '--with-authvchkpw' '--enable-unicode' '--without-redhat' '--without-fam' 'CC=gcc' 'CFLAGS=-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -fstack-protector -I/var/vpopmail/include' 'LDFLAGS= -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz -lcrypt ' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' --with-authchangepwdir=/usr/lib/courier-imap/authlib --with-userdb=/etc/userdb --with-makedatprog='/usr/lib/courier-imap/makedatprog' --with-mailuser=root --without-socks --with-authchangepwdir=/var/tmp/dev/null --with-package=courier-imap --with-version=3.0.7 --cache-file=/var/tmp/portage/courier-imap-3.0.7/work/config.cache --srcdir=.
configure: loading cache /var/tmp/portage/courier-imap-3.0.7/work/config.cache
configure: error: `LDFLAGS' has changed since the previous run:
configure:   former value:   -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql  -lmysqlclient -lz -lcrypt  
configure:   current value:  -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz -lcrypt 
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm /var/tmp/portage/courier-imap-3.0.7/work/config.cache' and start over
configure: error: /bin/sh './configure' failed for liblog

!!! ERROR: net-mail/courier-imap-3.0.7 failed.
!!! Function econf, Line 362, Exitcode 1
!!! econf failed

On:
Portage 2.0.50-r9 (hardened-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.5.3
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -fstack-protector"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.internet-bg.net/ http://gentoo.itdnet.net/gentoo/ http://gentoo.inode.at/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://gentoo.internet-bg.net/gentoo-portage"
USE="3dnow X509 aalib acl acpi apache2 bcmath berkdb bidi bzlib calendar cdb chroot crypt curl dba directfb doc erandom exif extensions fbcon ftp gd gd-external gdbm gif hardened iconv icq idea imap innodb ipalias javascript jpeg justify lcms lzw-tiff maildir mcal memlimit mhash mime mmx mssql mysql ncurses nls nocardbus nptl oav odbc pam pcre pdflib perl pic pie png posix prelude python readline samba sasl sftplogging shared skey slang sockets socks5 spamassassin spell sse ssl tcpd threads tiff truetype unicode vhosts wmf x86 xml xml2 zeo zlib"

Is this a ccache problem...? Or? 


Reproducible: Always
Steps to Reproduce:
1. emerge -U courier-imap
2.
3.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2004-08-20 11:15:34 UTC
The problem seems to be your ccache - you have probably changed some settings since last compile. Try erasing info regarding courier-imap from your CCACHE_DIR and emerge again.
Comment 2 Alexander Ivanchev 2004-08-20 11:35:28 UTC
configure: error: run `make distclean' and/or `rm /var/tmp/portage/courier-imap-3.0.7/work/config.cache' and start over

Did that. Actually did rm -rf /var/tmp/portage/courier* & rm -rf /root/.ccache

Guess it involves a problem in the ebuild...
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2004-08-20 12:03:23 UTC
Not likely - the output clearly indicates that some data has been left over from previous compile.

Besides, I just emerged net-mail/courier-imap-3.0.7 just fine. Not on athlon (intel celeron), but that shouldn't make any difference in this case.
Comment 4 Alexander Ivanchev 2004-08-20 12:09:12 UTC
Beats me then... could be something @ FEATURES="autoaddcvs buildpkg ccache sandbox sfperms strict" possibly? sandbox? sfperms? strict?
Comment 5 Alexander Ivanchev 2004-08-20 12:14:34 UTC
configure: error: `LDFLAGS' has changed since the previous run:
configure:   former value:   -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql  -lmysqlclient -lz -lcrypt  
configure:   current value:  -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz -lcrypt 

...and that's simply hilarious ;-)
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2004-08-20 12:15:20 UTC
It might be a bug in ccache. Try disabling it in FEATURES.
Comment 7 Alexander Ivanchev 2004-08-20 12:24:28 UTC
Nope... didn't work... weird indeed...
Comment 8 Alexander Ivanchev 2004-08-20 12:33:12 UTC
Alright. Here's what seems to fix it:

dmz courier-imap # nano /usr/portage/net-mail/courier-imap/courier-imap-3.0.7.ebuild

in the ./configure section I rm'ed --cache-file=${cachefile} \
Now, it cache-file defaults to /dev/null and the build seems to complete fine... I'll still wait for an official resolution however ;-)
Comment 9 Tuan Van (RETIRED) gentoo-dev 2004-08-20 12:39:35 UTC
I'll fixed as sson as I get my system up running again.
For now, you can open the ebuild and look for bug #21338, uncomment the 3 lines below it.

And I'll look in your solution too.
Comment 10 Tuan Van (RETIRED) gentoo-dev 2004-08-20 23:17:52 UTC
I've put back the fix as in previous ebuild.
Comment 11 Dan Davis 2004-08-20 23:38:48 UTC
This bug came up on my machine tonight. Received the same errors as Alexander while doing:
> emerge /usr/portage/net-mail/courier-imap/courier-imap-3.0.7.ebuild

configure: loading cache /var/tmp/portage/courier-imap-3.0.7/work/config.cache
configure: error: `LDFLAGS' has changed since the previous run:
configure:   former value:   -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql  -lmysqlclient -lz -lcrypt
configure:   current value:  -L/var/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz -lcrypt
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm /var/tmp/portage/courier-imap-3.0.7/work/config.cache' and start over
configure: error: /bin/sh './configure' failed for liblog

!!! ERROR: net-mail/courier-imap-3.0.7 failed.
!!! Function econf, Line 362, Exitcode 1
!!! econf failed


NOTE: on the lines showing "former value" and "current value" above, there appears to be an extra space in the former; pardon my newbie-ness, but this is the ONLY thing I see different in the two lines... would this matter?

Also, I am using 2004.2, with some packages GRP'ed (X.org, KDE). Celeron 566 Coppermine on Abit BH6 board. This is a relatively NEW install (only about a week), so not much has been added. I do NOT use ccache on this machine (haven't bothered setting up distcc system yet, so ccache is not installed, just checked), so I don't think this has anything to do with ccache directly. USE flags are "-gtk -gnome qt kde apache2 maildir mysql", and I'm using standard "x86" keyword, with ARCH set to i686.

Finally, I see that there was a note to look to bug #21338 above, but that's for 'scigraphica'; I don't understand what that has to do with 'courier-imap'...?
Comment 12 Tuan Van (RETIRED) gentoo-dev 2004-08-21 08:48:16 UTC
Dan, please emerge sync, then emerge courier-imap.
Comment 13 Alexander Ivanchev 2004-08-21 11:53:16 UTC
Tuan, could you please elaborate a bit more on this bug? What's the cause of the breakage? I'm pretty curious...
Comment 14 Tuan Van (RETIRED) gentoo-dev 2004-08-21 12:19:41 UTC
Alexander, I have pointed to the wrong bug in my previous post. Please read bug #21330.