This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
RE: Error when re-compiling libc
- From: Fred Fish <fnf at specifix dot com>
- To: glibc-bugs at sourceware dot org
- Cc: fnf at specifix dot com
- Date: Sat, 2 Dec 2006 09:10:32 -0700
- Subject: RE: Error when re-compiling libc
- Organization: Specifix Inc.
- Reply-to: fnf at specifix dot com
This problem can easily be reproduced with a stripped down copy of the preprocessed source:
$ cat bug.i
extern int __signbit (double __value) __attribute__ ((__nothrow__))
__attribute__ ((__const__));
extern __inline int
__attribute__ ((__nothrow__)) __signbit (double __x)
{
__extension__ union { double __d; int __i[2]; } __u = { __d: __x };
return __u.__i[1] < 0;
}
int
__signbit (double x)
{
}
$ gcc -c bug.i
$ gcc -std=gnu99 -c bug.i
bug.i:13: error: redefinition of â__signbitâ
bug.i:6: error: previous definition of â__signbitâ was here
$
Note that the trigger is the -std=gnu99 option. Not sure if this error is a bug
in glibc sources or in support for gnu99.
-Fred