Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50761 - apache-2.0.49-r1 fails with ./configure error while configuring apr
Summary: apache-2.0.49-r1 fails with ./configure error while configuring apr
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
Depends on:
Reported: 2004-05-11 09:13 UTC by Ben
Modified: 2005-04-23 19:54 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Ben 2004-05-11 09:13:47 UTC
Title says it all... Here's the output:

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
updating cache /var/tmp/portage/apache-2.0.49-r1/work/httpd-2.0.49/config.cache
configuring package in srclib/apr now
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 /var/tmp/portage/apache-2.0.49-r1/work/httpd-2.0.49/config.cache
configure: error: `CFLAGS' has changed since the previous run:
configure:   former value:  -O2 -march=pentium4  -fprefetch-loop-arrays -pipe
configure:   current value: -O2 -march=pentium4 -fprefetch-loop-arrays -pipe
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm /var/tmp/portage/apache-2.0.49-r1/work/httpd-2.0.49/config.cache' and start over
configure failed for srclib/apr

!!! ERROR: net-www/apache-2.0.49-r1 failed.
!!! Function src_compile, Line 170, Exitcode 1
!!! bad ./configure please submit bug report to Include your config.layout.

Here's my config.layout:

<Layout Gentoo>
prefix:          /usr
exec_prefix:     /usr
bindir:          /usr/bin
sbindir:         /usr/sbin
libdir:          /usr/lib
libexecdir:      /usr/lib/apache2/modules
mandir:          /usr/share/man
infodir:         /usr/share/info
includedir:      /usr/include/apache2
installbuilddir: /usr/lib/apache2/build
datadir:         /var/www/localhost
errordir:        /var/www/localhost/error
iconsdir:        /var/www/localhost/icons
htdocsdir:       /var/www/localhost/htdocs
cgidir:          /var/www/localhost/cgi-bin
manualdir:       /usr/share/doc/version/manual
sysconfdir:      /etc/apache2/conf
localstatedir:   /var
runtimedir:      /var/run
logfiledir:      /var/log/apache2
proxycachedir:   /var/cache/apache2

Comment 1 Tuan Van (RETIRED) gentoo-dev 2004-05-11 10:05:14 UTC
There is a double space before "-fprefetch-loop-arrays" in your CFLAGS.
Comment 2 Chuck Short (RETIRED) gentoo-dev 2004-05-11 13:49:14 UTC
Thats correct, apache is picky with errors like that in cflags. Fix your cflags and try again. It will work.

Comment 3 Ben 2004-05-11 15:37:46 UTC
Thanks, that worked... strange that I'm only going from 2.0.49 to 2.0.49-r1 and the .49 compiled just fine barely more than a week ago... and I haven't touched make.conf in a long time. Anyway, just glad that it was so easy a fix. :-)
Comment 4 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 19:54:39 UTC