* libdw vs __extern_inline
@ 2007-10-05 11:55 Mark Wielaard
2007-10-05 20:36 ` Roland McGrath
0 siblings, 1 reply; 2+ messages in thread
From: Mark Wielaard @ 2007-10-05 11:55 UTC (permalink / raw)
To: Frysk Hackers; +Cc: roland
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. */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libdw vs __extern_inline
2007-10-05 11:55 libdw vs __extern_inline Mark Wielaard
@ 2007-10-05 20:36 ` Roland McGrath
0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2007-10-05 20:36 UTC (permalink / raw)
To: Mark Wielaard; +Cc: Frysk Hackers
Fixed upstream.
Thanks,
Roland
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-05 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-05 11:55 libdw vs __extern_inline Mark Wielaard
2007-10-05 20:36 ` Roland McGrath
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).