Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181404 - app-crypt/mit-krb5-1.5.2-r2: econf fails because of change in CFLAGS
Summary: app-crypt/mit-krb5-1.5.2-r2: econf fails because of change in CFLAGS
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-09 11:21 UTC by Peter Shaw
Modified: 2008-07-11 08:15 UTC (History)
4 users (show)

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


Attachments
make.conf (make.conf,3.81 KB, text/plain)
2008-03-19 22:15 UTC, Frank Hellmuth
Details
log of the failed build of mit-krb5-1.6.3-r1 (build.log,21.88 KB, text/plain)
2008-03-20 19:50 UTC, Frank Hellmuth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Shaw 2007-06-09 11:21:52 UTC
config.status: creating include/autoconf.h
configure: configuring in lib/apputils
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' '--without-krb4' '--without-tcl' '--enable-ipv6' '--enable-shared' '--with-system-et' '--with-system-ss' '--enable-dns-for-realm' '--enable-kdc-replay-cache' '--build=i686-pc-linux-gnu' 'CFLAGS=-O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow -mno-tls-direct-seg-refs' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' --cache-file=../.././config.cache --srcdir=.
configure: loading cache ../.././config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow     -mno-tls-direct-seg-refs
configure:   current value: -O2 -pipe -march=athlon-xp -fomit-frame-pointer -mmmx -msse -m3dnow -mno-tls-direct-seg-refs
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 lib/apputils

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/app-crypt/mit-krb5-1.5.2-r2/work/krb5-1.5.2/src/config.log

!!! ERROR: app-crypt/mit-krb5-1.5.2-r2 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  mit-krb5-1.5.2-r2.ebuild, line 45:   Called econf '--without-krb4' '--without-tcl' '--enable-ipv6' '--enable-shared' '--with-system-et' '--with-system-ss' '--enable-dns-for-realm' '--enable-kdc-replay-cache'
  ebuild.sh, line 578:   Called die

!!! econf 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/app-crypt/mit-krb5-1.5.2-r2/temp/build.log'.



Reproducible: Always

Steps to Reproduce:
1. emerge mit-krb5-1.5.2-r1 or -r2


Actual Results:  
build fails

Expected Results:  
build succeeds
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-09 11:23:19 UTC
Remove the redundant spaces in C[XX]FLAGS from /etc/make.conf

*** This bug has been marked as a duplicate of bug 106513 ***
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2007-06-09 12:41:37 UTC
autoconf has been fixed, now it's up to the packages themselves to regenerate the configure script.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2007-06-09 15:37:39 UTC
Peter Shaw,

Please edit the mit-krb5-1.5.2-r2.ebuild file and comment out the cd "${S}"/appl/telnet line

then `ebuild mit-krb5-1.5.2-r2.ebuild digest`

Then try to emerge it as normal.  Please report back the results.
Comment 4 Kyle Elbert 2008-01-19 23:21:39 UTC
I'm experiancing this bug too. I will shortly folllow your directions, seemant
Comment 5 Kyle Elbert 2008-01-19 23:28:44 UTC
i probabily should have updated some more packages (fresh from 2007.0 s3) before i tried emerging this, and i have a wierd /etc . but your directions didnt work
Comment 6 Frank Hellmuth 2008-03-19 21:38:30 UTC
Same here with app-crypt/mit-krb5-1.6.3, commenting out the mentionend line 

cd "${S}"/appl/telnet line

didn't help. After that the same error occured a bit later during the compilaton.
Comment 7 Markus Ullmann (RETIRED) gentoo-dev 2008-03-19 21:57:22 UTC
can you attach your make.conf and (if you have that file) attach /etc/portage/bashrc as well?
Comment 8 Frank Hellmuth 2008-03-19 22:15:05 UTC
Created attachment 146613 [details]
make.conf

Sure, make.conf attached, no /etc/portage/bashrc.

Thanks for the quick reply.
Comment 9 Markus Ullmann (RETIRED) gentoo-dev 2008-03-20 13:13:47 UTC
can you post a full build log as well?
I tried to reproduce it here yet it works in any case
Comment 10 Frank Hellmuth 2008-03-20 18:43:25 UTC
OK. Here's the log.

[...]
config.status: creating kadmin/testing/scripts/Makefile
config.status: creating kadmin/testing/util/Makefile
config.status: creating include/autoconf.h
configure: configuring in plugins/preauth/pkinit
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--without-krb4' '--without-tcl' '--enable-ipv6' '--enable-shared' '--with-system-et' '--with-system-ss' '--enable-dns-for-realm' '--enable-kdc-replay-cache' '--libdir=/usr/lib64' '--build=x86_64-pc-linux-gnu' 'CFLAGS=-march=native -O2' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' --cache-file=../../.././config.cache --srcdir=.
configure: loading cache ../../.././config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -march=native  -O2
configure:   current value: -march=native -O2
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 plugins/preauth/pkinit

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-crypt/mit-krb5-1.6.3-r1/work/krb5-1.6.3/src/config.log
 *
 * ERROR: app-crypt/mit-krb5-1.6.3-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3157:  Called econf 'src_compile' 'src_compile' '--without-krb4' '--without-tcl' '--enable-ipv6' '--enable-shared' '--with-system-et' '--with-system-ss'
 *               ebuild.sh, line  513:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *  The die message:
 *   econf 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/app-crypt/mit-krb5-1.6.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-crypt/mit-krb5-1.6.3-r1/temp/environment'.
 *

Do you also need the full environment (125K)?
Comment 11 Frank Hellmuth 2008-03-20 19:50:07 UTC
Created attachment 146688 [details]
log of the failed build of mit-krb5-1.6.3-r1

Wait ... trying again I see a

checking for unistd.h... yes
checking for GNU linker... yes
configure: not adding extra gcc warning flags because CFLAGS was set
configure: no krb4 support
checking which version of com_err to use... system

during configuration.

I think I'll better attach the full log.
Comment 12 Markus Ullmann (RETIRED) gentoo-dev 2008-03-21 15:56:57 UTC
okay, as weird as it might sound, can you change your CFLAGS setting from
"-march=native  -O2"
to
"-march=native -O2"

I assume the configure script is heavily b0rked and it will work afterwards
Comment 13 Frank Hellmuth 2008-03-21 18:14:12 UTC
Thanks, I can confirm taking out the extra space made it working.

Who matches compiler options per character, and even if you do so, who, the hell, took out the space in the first place?!

Grml ....

Thanks again, and have a nice easter!
Comment 14 Markus Ullmann (RETIRED) gentoo-dev 2008-03-21 19:23:45 UTC
thankies :)
Comment 15 Harald van Dijk (RETIRED) gentoo-dev 2008-03-21 21:22:07 UTC
There's no need for CANTFIX, this is easily fixed... As I mentioned in comment #2, this was an autoconf bug and regenerating the configure scripts is enough to get mit-krb5 working properly. mit-krb5 has multiple configure scripts. Regenerating all (actually, only those that use AC_CONFIG_SUBDIRS really need it) fixes this bug.

    einfo "Reconfiguring configure scripts (be patient)"
    local subdir
    for subdir in $(find . -name configure.in \
            | xargs grep -l 'AC_CONFIG_SUBDIRS' \
            | sed 's@/configure\.in$@@'); do
        ebegin "Regenerating configure script in ${subdir}"
        cd "${S}"/${subdir}
        eautoconf --force -I "${S}"
        eend $?
    done
Comment 16 Le retraité 2008-03-26 15:24:55 UTC
I can confirm this.

Removing the extra spaced solve the problem but still, the configure script shouldn't be that sensible to a mere space...
Comment 17 Michael Hammer (RETIRED) gentoo-dev 2008-07-11 08:15:14 UTC
(In reply to comment #15)

> There's no need for CANTFIX, this is easily fixed...

Thx for you suggestion - I've tested it and this workaround is now part of mit-krb5-1.6.3-r1. I haven't done revision bump because for all of you which already could compile mit-krb5 it makes no sense to recompile and for all the others it should work now ;)

(At least in 1.6.4 we shouldn't need to reconfigure all)