This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/9710] New: libc_cv_gnu89_inline goes invalid if read from config.cache
- From: "glen at delfi dot ee" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Jan 2009 16:22:55 -0000
- Subject: [Bug libc/9710] New: libc_cv_gnu89_inline goes invalid if read from config.cache
- Reply-to: sourceware-bugzilla at sourceware dot org
stat.c:50: error: redefinition of '__stat'
../include/sys/stat.h:23: error: previous definition of '__stat' was here
make[2]: ***
[/home/users/glen/rpm/BUILD.i686-linux/glibc-2.9/builddir/io/stat.op] Error 1
this happens because if config.cache is used (for the second time), the value
which is detected as "yes" is written as "-fgnu89-inline" into cache, and
fetched with that value later, thus remaining not set.
configure:6632: checking for -fgnu89-inline
configure:6659: result: -fgnu89-inline
it's because such fragment from configure.in:
if test $libc_cv_gnu89_inline = yes; then
libc_cv_gnu89_inline=-fgnu89-inline
else
libc_cv_gnu89_inline=
fi
AC_SUBST(libc_cv_gnu89_inline)
likely proper fix is to use different variable in configure and in cache, but i
wrote such one which will work too:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/glibc-cv_gnu89_inline.patch
i checked this code is present in HEAD too as of now:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/configure.in?annotate=1.480&cvsroot=glibc&only_with_tag=MAIN
--
Summary: libc_cv_gnu89_inline goes invalid if read from
config.cache
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: glen at delfi dot ee
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9710
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.