From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26256 invoked by alias); 2 Nov 2009 11:48:03 -0000 Received: (qmail 26168 invoked by uid 48); 2 Nov 2009 11:47:52 -0000 Date: Mon, 02 Nov 2009 11:48:00 -0000 Message-ID: <20091102114752.26167.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug lto/41902] Compile error in gcc/lto/lto-elf.c (SHN_XINDEX undeclared) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bruck dot michael at googlemail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00046.txt.bz2 ------- Comment #2 from bruck dot michael at googlemail dot com 2009-11-02 11:47 ------- (In reply to comment #1) > Works for me with both recent libelf and elfutils. The code didn't really > change recently, so what libelf do you have installed? > libelf-0.8.12 I think I understand what is happening now. libelf's configure finds a valid elf.h in /usr/include that was installed by cygwin. The sys_elf.h switch mechnism is then configured to include that file from cygwin rather than the elf_repl.h provided by libelf. But cygwin's elf.h lacks the SHN_XINDEX macro. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41902