[prev in list] [next in list] [prev in thread] [next in thread]
List: autoconf-bug
Subject: Shortcoming in autoconf 2.52
From: Uwe Seimet <us () orbacus ! com>
Date: 2001-08-30 14:36:33
Message-ID: 20010830163633.A10143 () duplo ! ooc ! de
[Download RAW message or body]
Hi,
I have a problem with autoconf 2.52 that is caused by a shortcoming in
AC_CHECK_SIZEOF() when cross-compiling. If CCFLAGS="-Wall -Werror". What
happens is that "warning: unused variable `_array_" is evaluated as an error
during the check, effectively resulting in an endless loop. This is what
config.log says:
configure:5286: powerpc-wrs-vxworks-gcc -c -Wall -Dmain=vx_main
-msoft-float -DHAVE_NO_STD_GETHOSTBYNAME -DCPU=PPCEC603 -DVXWORKS
-DRW_MULTI_THREAD -D_REENTRANT -I/opt/vxworks/target/h conftest.c >&5
configure: In function `vx_main':
configure:5313: size of array `_array_' is negative
configure:5313: warning: unused variable `_array_'
...
int
main ()
{
int _array_ [1 - 2 * !((sizeof (wchar_t)) <= 0)]
;
return 0;
}
Note that this can only be reproduced if CFLAGS contains both -Wall and
-Werror. I suggest that the code generated by autoconf is changed in a way
that _array_ is used for something, so that "warning: unused variable
`_array_" does not appear anymore.
Best regards, Uwe
--
----------------------------------------------------------------------------
Dr. Uwe Seimet mailto:us@iona.com
IONA - Total Business Integration(tm) http://www.orbacus.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic