bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shortcoming in autoconf 2.52


From: Uwe Seimet
Subject: Shortcoming in autoconf 2.52
Date: Thu, 30 Aug 2001 16:36:33 +0200
User-agent: Mutt/1.3.12i

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:address@hidden
 IONA - Total Business Integration(tm)             http://www.orbacus.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]