Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373631 - www-servers/thttpd cross compilation configure fail
Summary: www-servers/thttpd cross compilation configure fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-06-30 18:58 UTC by Bertrand Jacquin
Modified: 2012-03-24 03:02 UTC (History)
0 users

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


Attachments
thttpd-2.25b-r8-BJA-CC-configure.diff (thttpd-2.25b-r8-BJA-CC-configure.diff,343 bytes, patch)
2011-06-30 18:58 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2011-06-30 18:58:24 UTC
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.
Comment 1 Bertrand Jacquin 2011-06-30 18:58:49 UTC
Created attachment 278729 [details, diff]
thttpd-2.25b-r8-BJA-CC-configure.diff
Comment 2 SpanKY gentoo-dev 2011-07-01 01:40:12 UTC
the "|| die" is not needed with econf, and the patch should be:
    tc-export CC
    econf
Comment 3 Bertrand Jacquin 2011-07-01 08:14:52 UTC
(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.
Comment 4 Anthony Basile gentoo-dev 2012-03-24 03:02:00 UTC
(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.