When I try to emerge Apache 2.0.49 with the berkdb USE flag set. Removing the berkdb fixes the problem. Reproducible: Always Steps to Reproduce: 1.Add USE="berkdb" to /etc/make.conf 2.emerge apache 3. Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) net-www/apache-2.0.49-r3 to / >>> md5 src_uri ;-) httpd-2.0.49.tar.gz >>> Unpacking source... >>> Unpacking httpd-2.0.49.tar.gz to /var/tmp/portage/apache-2.0.49-r3/work * Applying 00_gentoo_base.patch... [ ok ] * Applying 01_gentoo_cvs_sync.patch... [ ok ] * Applying 03_redhat_xfsz.patch... [ ok ] * Applying 01_gentoo_cgi.patch... [ ok ] * Applying 04_ssl_makefile.patch... [ ok ] * Applying 01_ssl_engine_kernel.patch... [ ok ] ipv6 * Applying 01_gentoo_ipv6.patch... [ ok ] ssl * Applying 01_ssl_verify_client.patch... [ ok ] * Replacing obsolete head/tail with POSIX compliant ones rebuilding srclib/apr/configure buildconf: checking installation... buildconf: autoconf version 2.59 (ok) buildconf: libtool version 1.4.3 (ok) Copying libtool helper files ... buildconf: Using libtool.m4 at /usr/share/aclocal/libtool.m4. Creating include/arch/unix/apr_private.h.in ... autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader-2.59: WARNING: is deprecated and discouraged. autoheader-2.59: autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without autoheader-2.59: WARNING: `acconfig.h': autoheader-2.59: autoheader-2.59: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader-2.59: [Define if a function `main' is needed.]) autoheader-2.59: autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the autoheader-2.59: WARNING: documentation. Creating configure ... rebuilding srclib/apr-util/configure Looking for apr source in ../apr Creating include/private/apu_config.h ... Creating configure ... Invoking xml/expat/buildconf.sh ... Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ... Copying libtool helper files ... Creating config.h.in ... autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader-2.59: WARNING: is deprecated and discouraged. autoheader-2.59: autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without autoheader-2.59: WARNING: `acconfig.h': autoheader-2.59: autoheader-2.59: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader-2.59: [Define if a function `main' is needed.]) autoheader-2.59: autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the autoheader-2.59: WARNING: documentation. Creating configure ... copying build files rebuilding srclib/pcre/configure rebuilding include/ap_config_auto.h.in autoheader-2.59: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader-2.59: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader-2.59: WARNING: is deprecated and discouraged. autoheader-2.59: autoheader-2.59: WARNING: Using the third argument of `AC_DEFINE' and autoheader-2.59: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without autoheader-2.59: WARNING: `acconfig.h': autoheader-2.59: autoheader-2.59: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader-2.59: [Define if a function `main' is needed.]) autoheader-2.59: autoheader-2.59: WARNING: More sophisticated templates can also be produced, see the autoheader-2.59: WARNING: documentation. rebuilding configure rebuilding rpm spec file >>> Source unpacked. berkdb * DATADIR is set to: /var/www/localhost * USERDIR is set to: public_html * DB verison detected is db4 ipv6 * Enabling ipv6 * /etc/apache2/apache2-builtin-mods options: --disable-example --enable-access=shared --enable-auth=shared --enable-auth_dbm=shared --enable-auth_anon=shared --enable-auth_digest=shared --enable-alias=shared --enable-file-cache=shared --enable-echo=shared --enable-charset-lite=shared --enable-cache=shared --enable-disk-cache=shared --enable-mem-cache=shared --enable-ext-filter=shared --enable-case_filter=shared --enable-case-filter-in=shared --enable-deflate=shared --enable-mime-magic=shared --enable-cern-meta=shared --enable-expires=shared --enable-headers=shared --enable-usertrack=shared --enable-unique-id=shared --enable-proxy=shared --enable-proxy-connect=shared --enable-proxy-ftp=shared --enable-proxy-http=shared --enable-ssl=shared --disable-optional-hook-export --disable-optional-hook-import --disable-optional-fn-import --disable-optional-fn-export --disable-bucketeer --enable-info=shared --enable-include=shared --enable-cgi=shared --enable-cgid=shared --enable-dav=shared --enable-dav-fs=shared --enable-vhost-alias=shared --enable-speling=shared --enable-rewrite=shared --enable-log_config=shared --enable-logio=shared --enable-env=shared --enable-setenvif=shared --enable-mime=shared --enable-status=shared --enable-autoindex=shared --enable-asis=shared --enable-negotiation=shared --enable-dir=shared --enable-imap=shared --enable-actions=shared --enable-userdir=shared --enable-so=yes 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-r3/work/httpd-2.0.49/config.cache checking for chosen layout... Gentoo checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig updating cache /var/tmp/portage/apache-2.0.49-r3/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-r3/work/httpd-2.0.49/config.cache checking build system type... (cached) i686-pc-linux-gnu checking host system type... (cached) i686-pc-linux-gnu checking target system type... (cached) i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... (cached) yes APR Version: 0.9.5 checking for chosen layout... apr checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. configure failed for srclib/apr !!! ERROR: net-www/apache-2.0.49-r3 failed. !!! Function src_compile, Line 190, Exitcode 1 !!! bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout. Expected Results: A Successful emerge. emerge info: Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.25-gentoo-r2) ================================================================= System uname: 2.4.25-gentoo-r2 i686 Intel(R) Xeon(TM) CPU 1.70GHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -msse -mmmx -fomit-frame-pointer -fPIC -fstack-protector" 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/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -msse -mmmx -fomit-frame-pointer -fPIC -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ussg.indiana.edu/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://ftp.ussg.indiana.edu/gentoo-portage/" USE="X aim apache2 berkdb crypt cups doc e1000 emacs ethereal fam gd gif gnome gtk gtk2 icq innodb ipv6 jabber java jpeg kde kerberos licq mozilla mpeg msn mysql ncurses pam perl pic png python qt quicktime readline ruby ssl tcpd tiff truetype x8cat /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
Chuck, I suppose this is the result of what I mentioned in bug 52775, comment 8.
Could you please post your failed confi.log thanks
Have you tried with the minimmum CFLAGS?
Also your CFLAGS might look like it has a carriage return in it.
Created attachment 34053 [details] /var/tmp/portage/apache-2.0.49-r3/work/httpd-2.0.49/config.log
I uploaded the config.log file as an attachment. Changing the CFLAGS to 'CFLAGS="-march=pentium4 -O1"' doesn't help. However I manage to get it to compile by simply commenting out the LDFLAGS="-pie" line in my make.conf but it won't compile with a LDFLAGS="" line like other packages, ie: $ LDFLAGS="" emerge apache Just to be thurough I tryed LDFLAGS="${LDFLAGS} -pie" in the make.conf but it still fails nor will it compile if I change it to LDFLAGS="${LDFLAGS}", or LDFLAGS="$LDFLAGS". It seems that if LDFLAGS is set to anything it fails.
Chuck, vapier updated flag-o-matic.eclass to always export LDFLAGS when append-ldflags is used, so expect more bugs like this one.
*** Bug 55128 has been marked as a duplicate of this bug. ***
This is fixed in cvs. thanks for the bug report.