Re: CrossCompile

From: <kromonos_at_user-helfen-usern.de>
Date: Sun, 29 Aug 2010 14:04:36 +0200

Thank you for this nice patch. It works very nice.
But now, I got following error:

ı/cf_gen cf.data ../../src/cf.data.depend
make[1]: ./cf_gen: Command not found
make[1]: *** [cf_parser.cci] Error 127
make[1]: Leaving directory
`/home/kromonos/buildroot/build/squid-3.1.6/build/src'
make: *** [all-recursive] Error 1

normaly, I create a new directory named build and execute there
../configure. I've attached config.log and my script, I use for cross
compiling

Am Sun, 29 Aug 2010 schrieb Amos Jeffries:

> Amos Jeffries wrote:
> >Henrik Nordström wrote:
> >>How I have done it in the past is to use a configure cache presetting
> >>the runtime test appropriately for the target.
> >>
> >>But this requires that all AC_TRY_RUN checks are made cacheable.
> >>
> >
> >The ./configure raw code shows that the autoconf people use [:] in
> >their own run-time test macros. Our ones with just [] expand into
> >that error message. But changing ours to [:], or in some cases a
> >nice local message seems to remove the auto-warnings.
> >
> >I *think* this will remove the need for such pre-seeding.
> >
> >The cf_gen remains a problem though. I really think we should go
> >back to having that as a perl script. All its doing is
> >text-manipulation or arrays during build and the code needed to
> >switch build-hosts underneath automake so it can run is not
> >trivial.
> >
> >Amos
>
> Here is the patch that makes those ./configure changes.
>
> kromonos:
> This is a patch -p1 on top of either the 3.1.6 or 3.1.7 bundle.
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE9 or 3.1.7
> Beta testers wanted for 3.2.0.1

> --- squid-3.1.6/configure 2010-08-01 08:03:14.000000000 -0600
> +++ squid-3.1/configure 2010-08-29 01:22:43.000000000 -0600
> @@ -19451,11 +19451,7 @@
>
>
> if test "$cross_compiling" = yes; then
> - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&5
> -$as_echo "$as_me: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&2;}
> - { (exit 1); exit 1; }; }
> + :
> else
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h. */
> @@ -22760,11 +22756,7 @@
> $as_echo_n "(cached) " >&6
> else
> if test "$cross_compiling" = yes; then
> - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&5
> -$as_echo "$as_me: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&2;}
> - { (exit 1); exit 1; }; }
> + :
> else
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h. */
> @@ -46229,11 +46221,7 @@
> $as_echo_n "(cached) " >&6
> else
> if test "$cross_compiling" = yes; then
> - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&5
> -$as_echo "$as_me: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&2;}
> - { (exit 1); exit 1; }; }
> + :
> else
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h. */
> @@ -46306,11 +46294,7 @@
> $as_echo_n "(cached) " >&6
> else
> if test "$cross_compiling" = yes; then
> - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&5
> -$as_echo "$as_me: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&2;}
> - { (exit 1); exit 1; }; }
> + :
> else
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h. */
> @@ -46394,11 +46378,7 @@
> $as_echo_n "(cached) " >&6
> else
> if test "$cross_compiling" = yes; then
> - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&5
> -$as_echo "$as_me: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&2;}
> - { (exit 1); exit 1; }; }
> + :
> else
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h. */
> @@ -46475,11 +46455,7 @@
> $as_echo_n "(cached) " >&6
> else
> if test "$cross_compiling" = yes; then
> - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&5
> -$as_echo "$as_me: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&2;}
> - { (exit 1); exit 1; }; }
> + :
> else
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h. */
> --- squid-3.1.6/helpers/negotiate_auth/squid_kerb_auth/configure 2010-08-01 08:03:13.000000000 -0600
> +++ squid-3.1/helpers/negotiate_auth/squid_kerb_auth/configure 2010-08-29 01:22:43.000000000 -0600
> @@ -6920,11 +6920,7 @@
> else
>
> if test "$cross_compiling" = yes; then
> - { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&5
> -$as_echo "$as_me: error: cannot run test program while cross compiling
> -See \`config.log' for more details." >&2;}
> - { (exit 1); exit 1; }; }
> + ac_cv_have_squid=yes
> else
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h. */

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s-: a- C++++ UL+++ P L++++ E- W+++ N++ o++ K- w--- 
O- M- V- PS+++ PE- Y PGP++ t+++ 5+++ X+ R++ tv++ b- DI- D- 
G+++ e h-- r+++ y+++ 
------END GEEK CODE BLOCK------


Received on Sun Aug 29 2010 - 12:08:45 MDT

This archive was generated by hypermail 2.2.0 : Sun Aug 29 2010 - 12:00:13 MDT