As thttpd use autoconf 2.1, CC should be exported to configure script to let this capable to test CC : >>> Preparing source in /usr/i586-geode-linux-gnu/tmp/portage/www-servers/thttpd-2.25b-r8/work/thttpd-2.25b ... * Applying additional-input-validation-httpd.c.diff ... [ ok ] * Applying fix-buffer-overflow.diff ... [ ok ] * Applying fix-insecure-tmp-creation-CVE-2005-3124.diff ... [ ok ] * Applying thttpd-2.25b-glibc-2.10.patch ... [ ok ] * Applying thttpd-2.25b-fix-illegal-path-info.patch ... [ ok ] * Applying thttpd-2.25b-monolithic-timer.patch ... [ ok ] * Applying thttpd-2.25b-use-Status-header.patch ... [ ok ] * Applying thttpd-2.25b-use-X-Forwarded-For-header.patch ... [ ok ] * Applying thttpd-2.25b-respect-CFLAGS--dont-link-static.patch ... [ ok ] * Running eautoreconf in '/usr/i586-geode-linux-gnu/tmp/portage/www-servers/thttpd-2.25b-r8/work/thttpd-2.25b' ... * Running autoconf ... [ ok ] >>> Source prepared. >>> Configuring source in /usr/i586-geode-linux-gnu/tmp/portage/www-servers/thttpd-2.25b-r8/work/thttpd-2.25b ... * econf: updating thttpd-2.25b/config.guess with /usr/share/gnuconfig/config.guess * econf: updating thttpd-2.25b/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=i586-geode-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib loading site script /usr/share/config.site configure: loading site script /usr/share/crossdev/include/site/linux creating cache ./config.cache checking host system type... i586-geode-linux-gnu checking target system type... i586-geode-linux-gnu checking build system type... x86_64-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc -Os -pipe -march=k6-2 -fomit-frame-pointer -I/usr/i586-geode-linux-gnu/usr/include/ -I/usr/i586-geode-linux-gnu/include/ -L/usr/i586-geode-linux-gnu/lib -L/usr/i586-geode-linux-gnu/usr/lib) works... no configure: error: installation or configuration problem: C compiler cannot create executables. !!! Please attach the following file when seeking support: !!! /usr/i586-geode-linux-gnu/tmp/portage/www-servers/thttpd-2.25b-r8/work/thttpd-2.25b/config.log Attached a fix to this Reproducible: Always Steps to Reproduce: 1. i586-geode-linux-gnu-emerge -vat thttpd 2. 3.
Created attachment 278729 [details, diff] thttpd-2.25b-r8-BJA-CC-configure.diff
the "|| die" is not needed with econf, and the patch should be: tc-export CC econf
(In reply to comment #2) > the "|| die" is not needed with econf, and the patch should be: > tc-export CC > econf I agree with your remark, but 'tc-export CC' make CC exported to others functions as src_compile where it's not a bad but not needed as define in configure script.
(In reply to comment #2) > the "|| die" is not needed with econf, and the patch should be: > tc-export CC > econf This is in thttpd-2.25b-r9. Please test and reopen if this is still a problem.