# New Ticket Created by  Christoph Otto 
# Please include the string:  [perl #58670]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58670 >


make cover is broken, apparently because of the use of Dl_info and a couple 
other GNU-specific functions in Parrot_print_backtrace() in src/exceptions.c .

On my system __USE_GNU needs to be defined when the Dl_info struct is used, 
which happens during make cover.  The attached patch makes src/exceptions.c 
compile again under make cover, but it's probably not a long-term fix.  All it 
does is #define __USE_GNU in the same #ifdef where Dl_info is used.  I don't 
propose that this patch be committed.

The revision that exposes this problem is r30173, but I suspect that the 
offending code was added earlier.
Index: src/exceptions.c
===================================================================
--- src/exceptions.c	(revision 30881)
+++ src/exceptions.c	(working copy)
@@ -23,6 +23,7 @@
 #include "exceptions.str"
 
 #ifdef PARROT_HAS_BACKTRACE
+#  define __USE_GNU
 #  include <execinfo.h>
 #  include <dlfcn.h>
 #endif

Reply via email to