[Home]

Summary:ASTERISK-23184: [patch] Cosmetic error when cross-compiling as ./configure calls ./menuselect/configure
Reporter:abelbeck (abelbeck)Labels:patch
Date Opened:2014-01-24 18:01:05.000-0600Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:General
Versions:1.8.25.0 11.7.0 12.0.0 13.18.4 Frequency of
Occurrence
Related
Issues:
Environment:Building AstLinux 1.x (via Buildroot)Attachments:( 0) asterisk-1.8-configure-cross-fix.patch
( 1) asterisk-11-configure-cross-fix.patch
Description:For 3+ years revision 290102:
http://svnview.digium.com/svn/asterisk?view=revision&revision=290102

adds configure.ac logic to run ./menuselect/configure .

The problem is while cross-compiling CC is not properly set for the "host" compilation of menuselect when called via the main ./configure script.

The error is of this form, near the very end, just before the Asterisk logo...
--
checking for gcc... /home/user/astlinux/1.0/output/host/usr/bin/i586-unknown-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/home/user/astlinux/1.0/output/build/asterisk-1.8.25.0/menuselect':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
--

Fortunately the above error is not fatal and menuselect/Makefile will again call ./menuselect/configure when called using the "host" make.

The offered 'cleanup' is to skip this configure.ac section when cross-compiling.
Comments:By: abelbeck (abelbeck) 2014-01-24 18:04:36.708-0600

configure.ac patch

By: abelbeck (abelbeck) 2014-01-24 18:04:58.293-0600

configure.ac patch

By: Rusty Newton (rnewton) 2014-01-28 18:36:30.571-0600

Thanks. Patches clean against trunk as well.