[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/10105] New: gold compilation fail ure on F11 x86±64 b/c of con
From: |
peter dot kovar at gmail dot com |
Subject: |
[Bug gold/10105] New: gold compilation fail ure on F11 x86±64 b/c of conflicting basename( ) declaration |
Date: |
24 Apr 2009 23:13:41 -0000 |
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.
- [Bug gold/10105] New: gold compilation fail ure on F11 x86±64 b/c of conflicting basename( ) declaration,
peter dot kovar at gmail dot com <=