[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12265] New: Compiling ld/ldmisc.c fails on Solaris 8
From: |
ro at TechFak dot Uni-Bielefeld.DE |
Subject: |
[Bug ld/12265] New: Compiling ld/ldmisc.c fails on Solaris 8 |
Date: |
Wed, 24 Nov 2010 18:40:21 +0000 |
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: address@hidden
ReportedBy: address@hidden
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/12265] New: Compiling ld/ldmisc.c fails on Solaris 8,
ro at TechFak dot Uni-Bielefeld.DE <=