[prev in list] [next in list] [prev in thread] [next in thread]
List: binutils-bugs
Subject: =?iso-8859-1?q?=5BBug_gold/10105=5D_New=3A_gold_compilation_fail?= =?iso-8859-1?q?ure_on_F11_x86=B16
From: "peter dot kovar at gmail dot com" <sourceware-bugzilla () sourceware ! org>
Date: 2009-04-24 23:13:41
Message-ID: 20090424231340.10105.peter.kovar () gmail ! com
[Download RAW message or body]
binutils checked out from CVS right now
../../configure --enable-gold
make[4]: Entering directory `/usr/src/GNU/binutils/Linux/x86-64/gold'
if g++ -DHAVE_CONFIG_H -I. -I../../../gold -I. -I../../../gold
-I../../../gold/../include -I../../../gold/../elfcpp
-DLOCALEDIR="\"/usr/local/share/locale\"" -DBINDIR="\"/usr/local/bin\""
-DTOOLBINDIR="\"/usr/local/x86_64-unknown-linux-gnu/bin\"" -W -Wall -Werror
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=archive.o -g -O2 -MT
archive.o -MD -MP -MF ".deps/archive.Tpo" -c -o archive.o
../../../gold/archive.cc; \
then mv -f ".deps/archive.Tpo" ".deps/archive.Po"; else rm -f
".deps/archive.Tpo"; exit 1; fi
In file included from ../../../gold/archive.cc:30:
../../../gold/../include/libiberty.h:105: error: new declaration ‘char*
basename(const char*)’
/usr/include/string.h:601: error: ambiguates old declaration ‘const char*
basename(const char*)’
make[4]: *** [archive.o] Error 1
gcc-4.4.0-0.34.x86_64
gcc-c++-4.4.0-0.34.x86_64
rpm -qf /usr/include/string.h
glibc-headers-2.9.90-19.x86_64
# ifndef basename
/* Return the file name within directory of FILENAME. We don't
declare the function if the `basename' macro is available (defined
in <libgen.h>) which makes the XPG version of this function
available. */
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
extern "C++" char *basename (char *__filename)
__THROW __asm ("basename") __nonnull ((1));
extern "C++" __const char *basename (__const char *__filename)
__THROW __asm ("basename") __nonnull ((1));
# else
extern char *basename (__const char *__filename) __THROW __nonnull ((1));
# endif
# endif
#endif
--
Summary: gold compilation failure on F11 x86±64 b/c of
conflicting basename() declaration
Product: binutils
Version: 2.20 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: ian at airs dot com
ReportedBy: peter dot kovar at gmail dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10105
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic