From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19594 invoked by alias); 5 Oct 2007 11:55:17 -0000 Received: (qmail 19579 invoked by uid 22791); 5 Oct 2007 11:55:17 -0000 X-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO X-Spam-Check-By: sourceware.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (83.160.170.119) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 05 Oct 2007 11:55:12 +0000 Received: from dijkstra.wildebeest.org ([192.168.1.29]) by gnu.wildebeest.org with esmtp (Exim 4.63) (envelope-from ) id 1Idllp-0004dh-Hx; Fri, 05 Oct 2007 13:55:09 +0200 Subject: libdw vs __extern_inline From: Mark Wielaard To: Frysk Hackers Cc: roland@redhat.com Content-Type: text/plain Date: Fri, 05 Oct 2007 11:55:00 -0000 Message-Id: <1191585305.3891.42.camel@dijkstra.wildebeest.org> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00016.txt.bz2 Hi Roland, I tried compiling frysk and the embedded elfutils/libdw on Fedora 8 Test 3 and got the following error: In file included from ../../frysk/frysk-sys/lib/dwfl/cni/Dwarf.cxx:43: ../../frysk/frysk-sys/../frysk-imports/elfutils/libdw/libdw.h:67:1: error: "__extern_inline" redefined In file included from /usr/include/features.h:336, from /usr/include/alloca.h:22, from ../../frysk/frysk-sys/lib/dwfl/cni/Dwarf.cxx:39: /usr/include/sys/cdefs.h:299:1: error: this is the location of the previous definition I worked around it by checking whether or not __extern_inline is already defined as shown below. Does that makes sense? And could that, or some other workaround, be added upstream? Thanks, Mark --- frysk-imports/elfutils/libdw/libdw.h 30 Aug 2007 19:53:47 -0000 1.9 +++ frysk-imports/elfutils/libdw/libdw.h 5 Oct 2007 11:50:55 -0000 @@ -61,11 +61,13 @@ # define __nonnull_attribute__(args...) #endif +#ifndef __extern_inline #ifdef __GNUC_STDC_INLINE__ # define __extern_inline extern __inline __attribute__ ((__gnu_inline__)) #else # define __extern_inline extern __inline #endif +#endif /* Mode for the session. */