[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#678721: ltrace FTBFS on alpha: header file included twice leads to compilation error



Source: ltrace
Version: 0.5.3-2.1
Severity: normal
Tags: patch
User: debian-alpha@lists.debian.org
Usertags: alpha
X-Debbugs-CC: debian-alpha@lists.debian.org

ltrace FTBFS on alpha with the following error:

gcc -Wall -g -O2 -iquote /«PKGBUILDDIR» -iquote
/«PKGBUILDDIR»/sysdeps/linux-gnu -DSYSCONFDIR=\"/etc\"  -I
/usr/include/libelf -I/«PKGBUILDDIR»/sysdeps/linux-gnu/alpha  -c -o
trace.o trace.c
In file included from trace.c:10:0:
/«PKGBUILDDIR»/debug.h:6:2: error: redeclaration of enumerator 'DEBUG_EVENT'
/«PKGBUILDDIR»/debug.h:6:2: note: previous definition of 'DEBUG_EVENT'
was here

Full build log at:
http://buildd.debian-ports.org/status/fetch.php?pkg=ltrace&arch=alpha&ver=0.5.3-2.1&stamp=1333340950

The error arises because the include file "debug.h" gets included twice
by sysdeps/linux-gnu/alpha/trace.c leading to the above quoted error.

Patch fixing the problem attached.

Cheers
Michael.


--- ltrace-0.5.3/sysdeps/linux-gnu/alpha/trace.c	2009-07-26 03:13:02.000000000 +1200
+++ ltrace-0.5.3-new/sysdeps/linux-gnu/alpha/trace.c	2012-06-24 13:05:28.000000000 +1200
@@ -7,7 +7,6 @@
 #include <asm/ptrace.h>
 
 #include "common.h"
-#include "debug.h"
 
 #if (!defined(PTRACE_PEEKUSER) && defined(PTRACE_PEEKUSR))
 # define PTRACE_PEEKUSER PTRACE_PEEKUSR

Reply to: