i've got problem with compiling cyrus-sasl. few last line before error: configure: configuring in saslauthd configure: running /bin/sh './configure' --prefix=/usr '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-saslauthd=/var/lib/sasl2' '--with-pwcheck=/var/lib/sasl2' '--with-configdir=/etc/sasl2' '--with-plugindir=/usr/lib/sasl2' '--with-dbpath=/etc/sasl2/sasldb2' '--enable-login' '--enable-ntlm' '--disable-krb4' '--disable-otp' '--disable-static' '--with-openssl' '--with-pam' '--without-ldap' '--disable-gssapi' '--with-mysql' '--without-pgsql' '--disable-sql' '--enable-java' '--with-javahome=/opt/blackdown-jdk-1.4.2_rc1' '--enable-sql' '--with-dblib=berkeley' 'CC=gcc' 'CFLAGS=-march=athlon-xp -O3 -mfpmath=sse -pipe -ffast-math -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer' 'host_alias=i686-pc-linux-gnu' --cache-file=.././config.cache --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. configure: loading cache .././config.cache configure: error: `CFLAGS' has changed since the previous run: configure: former value: -march=athlon-xp -O3 -mfpmath=sse -pipe -ffast-math -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer configure: current value: -march=athlon-xp -O3 -mfpmath=sse -pipe -ffast-math -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer configure: error: changes in the environment can compromise the build configure: error: run `make distclean' and/or `rm .././config.cache' and start over configure: error: /bin/sh './configure' failed for saslauthd !!! ERROR: dev-libs/cyrus-sasl-2.1.18 failed. !!! Function econf, Line 362, Exitcode 1 !!! econf failed i've got the same problem in version 2.1.19. here's my emerge info: Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.5.1 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 -O3 -mfpmath=sse -pipe -ffast-math -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -mfpmath=sse -pipe -ffast-math -DNDEBUG -DG_DISABLE_ASSERT" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl/ #http://gentoo.prz.rzeszow.pl http://src.gentoo.pl/distfiles ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.inode.at/ ftp://ftp.rhnet.is/pub/gentoo/ http://www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/my_ebuilds" SYNC="rsync://gentoo.prz.rzeszow.pl/gentoo-portage" USE="3dnow X aalib apache2 arts avi crypt cups dvd encode esd fbcon flash gif glut gphoto2 gpm gtk gtk2 imlib imlib2 java javascript jikes jpeg lcms libwww maildir mbox memlimit mikmod mmx motif moznocompose moznoirc moznomail mpeg mysql ncurses nls nocardbus nptl nvidia oggvorbis opengl oss pam pda pdflib perl png ppds python quicktime readline samba sasl sdl serial slang spell sse ssl tcltk tcpd tiff truetype v4l v4l2 videos vim-with-x wmf x86 xv xvid zlib"
ok - i've found a solution. i had "-DNDEBUG -DG_DISABLE_ASSERT" (with double space) in make.conf. after change to "-DNDEBUG -DG_DISABLE_ASSERT" everything works fine. i think that kind mistakes should be automatically handled by portage nad this bug should be reassigned to portage team
1) I see nothing in this bug report that has anything to do with our security team so why it's assigned to security@ does not make sense 2) You should *NEVER* ever use -DNDEBUG in your make.conf or blindly assume that disabling asserts wont lead to major seucrity problems. Many many programmers use assert(blah != NULL) logic to ensure safety. /msg yoann on irc.freenode.net for an indepth detailed explanation. I'm include to open a bug to ensure that -DNDEBUG gets stripped from all user flags in the future.