http://sourceware.org/bugzilla/show_bug.cgi?id=12265
Summary: Compiling ld/ldmisc.c fails on Solaris 8 Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: r...@techfak.uni-bielefeld.de Host: *-*-solaris2.[89] Target: *-*-solaris2.[89] Build: *-*-solaris2.[89] Compiling ld/ldmisc.c fails on Solaris 8 like this: In file included from /vol/src/gnu/binutils/binutils/ld/../bfd/elf-bfd.h:27, from /vol/src/gnu/binutils/binutils/ld/ldmisc.c:38: /vol/src/gnu/binutils/binutils/ld/../include/elf/common.h:911:1: error: "AT_DCACHEBSIZE" redefined In file included from /usr/include/dlfcn.h:18, from /vol/src/gnu/binutils/binutils/ld/sysdep.h:94, from /vol/src/gnu/binutils/binutils/ld/ldmisc.c:24: /usr/include/sys/auxv.h:62:1: error: this is the location of the previous definition In file included from /vol/src/gnu/binutils/binutils/ld/../bfd/elf-bfd.h:27, from /vol/src/gnu/binutils/binutils/ld/ldmisc.c:38: /vol/src/gnu/binutils/binutils/ld/../include/elf/common.h:912:1: error: "AT_ICACHEBSIZE" redefined In file included from /usr/include/dlfcn.h:18, from /vol/src/gnu/binutils/binutils/ld/sysdep.h:94, from /vol/src/gnu/binutils/binutils/ld/ldmisc.c:24: /usr/include/sys/auxv.h:63:1: error: this is the location of the previous definition In file included from /vol/src/gnu/binutils/binutils/ld/../bfd/elf-bfd.h:27, from /vol/src/gnu/binutils/binutils/ld/ldmisc.c:38: /vol/src/gnu/binutils/binutils/ld/../include/elf/common.h:913:1: error: "AT_UCACHEBSIZE" redefined In file included from /usr/include/dlfcn.h:18, from /vol/src/gnu/binutils/binutils/ld/sysdep.h:94, from /vol/src/gnu/binutils/binutils/ld/ldmisc.c:24: /usr/include/sys/auxv.h:64:1: error: this is the location of the previous definition The problem can be reproduced with the following testcase: $ cat auxv.c #include <dlfcn.h> #include <elf/common.h> $ gcc -Ibinutils/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -c auxv.c For the moment, I've removed the -Werror from ld/Makefile as a workaround. The problem also occurs on Solaris 9, but Solaris 10 and 11 are fine. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils