Bug 81719

Summary: AC_CHECK_SIZEOF fails with GCC 3.0.4 (Red Hat 7.2)
Product: [Retired] Red Hat Linux Reporter: Pascal Haakmat <groomed>
Component: autoconfAssignee: Jens Petersen <petersen>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:51:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pascal Haakmat 2003-01-13 11:49:42 UTC
Description of problem:
autoconf 2.53 (as distributed with Red Hat 8) may have a bug.

Running autoconf on the following two-line configure.in:

AC_INIT(test, 0)
AC_CHECK_SIZEOF(int, 4)

generates a configure script that fails on gcc 3.0.4 (as distributed
with Red Hat 7.2). config.log has been attached.

Version-Release number of selected component (if applicable):
2.53

How reproducible:
Always

Steps to Reproduce:
1. Create two-line configure.in as described above on a Red Hat 8 system.
2. Run 'autoconf'.
3. Move generated 'configure' script to a Red Hat 7.2 system.
4. Run './configure'.
    
Actual results:
checking size of int... configure: error: cannot compute sizeof (int), 77

Expected results:
checking size of int... 4

Additional info:
--- Example:
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1)
$ ./configure
<output deleted>
checking size of int... configure: error: cannot compute sizeof (int), 77
$ export CC=kgcc
$ kgcc -v
[p@awacs autoconf-bug]$ kgcc -v
Reading specs from
/usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
<output deleted>
checking size of int... 4
$

Comment 1 Pascal Haakmat 2003-01-13 11:55:07 UTC

*** This bug has been marked as a duplicate of 81721 ***

Comment 2 Red Hat Bugzilla 2006-02-21 18:51:09 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.