Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385783 - www-servers/apache-2.2.21 cross-compilation fix (libtool related)
Summary: www-servers/apache-2.2.21 cross-compilation fix (libtool related)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 20:21 UTC by Bertrand Jacquin
Modified: 2014-01-31 08:33 UTC (History)
3 users (show)

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


Attachments
apache-2.2.21:20111005-192614.log (www-servers:apache-2.2.21:20111005-192614.log,9.99 KB, text/plain)
2011-10-05 20:22 UTC, Bertrand Jacquin
Details
eclass/apache-2.eclass diff (apache-2-BJA-cross.diff,1.59 KB, patch)
2011-10-05 20:22 UTC, Bertrand Jacquin
Details | Diff
config.log (config.log,16.26 KB, text/plain)
2011-10-16 13:47 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2011-10-05 20:21:58 UTC
Apache use libtool/APR for building but BUILD libtool/apr tools are used, so you get the following :


Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
checking for i586-alix-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/i586-alix-linux-gnu/portage/www-servers/apache-2.2.21/work/httpd-2.2.21':
configure: error: C compiler cannot create executables
See `config.log' for more details

Here is a fix that define HOST CC and use HOST libtool

Reproducible: Always

Steps to Reproduce:
1.i586-alix-linux-gnu-emerge -vat apache
2.
3.
Comment 1 Bertrand Jacquin 2011-10-05 20:22:29 UTC
Created attachment 288907 [details]
apache-2.2.21:20111005-192614.log

The build log
Comment 2 Bertrand Jacquin 2011-10-05 20:22:56 UTC
Created attachment 288909 [details, diff]
eclass/apache-2.eclass diff

The eclass fix
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2011-10-08 16:40:16 UTC
Please, attach config.log.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2011-10-08 18:37:41 UTC
Package managers are allowed to set ROOT to an invalid value in src_*() phases.
Comment 5 Bertrand Jacquin 2011-10-16 13:47:29 UTC
Created attachment 289947 [details]
config.log

As requested
Comment 6 SpanKY gentoo-dev 2014-01-31 08:31:04 UTC
should be all set now in the tree; thanks for the report!

Commit message: fix pcre-config/pkg-config/apr/apr-util handling when cross-compiling by leveraging SYSROOT
http://sources.gentoo.org/eclass/apache-2.eclass?r1=1.33&r2=1.34

Commit message: Add workaround for gen_test_char behavior when cross-compiling
http://sources.gentoo.org/www-servers/apache/apache-2.4.7.ebuild?r1=1.4&r2=1.5
Comment 7 SpanKY gentoo-dev 2014-01-31 08:33:54 UTC
Comment on attachment 288909 [details, diff]
eclass/apache-2.eclass diff

ROOT is not valid inside of any src_* funcs.  you cannot utilize it.