public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: Frysk Hackers <frysk@sourceware.org>
Cc: roland@redhat.com
Subject: libdw vs __extern_inline
Date: Fri, 05 Oct 2007 11:55:00 -0000	[thread overview]
Message-ID: <1191585305.3891.42.camel@dijkstra.wildebeest.org> (raw)

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.  */




             reply	other threads:[~2007-10-05 11:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 11:55 Mark Wielaard [this message]
2007-10-05 20:36 ` Roland McGrath

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1191585305.3891.42.camel@dijkstra.wildebeest.org \
    --to=mark@klomp.org \
    --cc=frysk@sourceware.org \
    --cc=roland@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).