Bug#889796: ltrace: FTBFS on ia64

Jason Duerstock <[email protected]>
Newsgroups gmane.linux.debian.ports.ia64
Message-ID <151796870630.12616.6928765848654625686.reportbug__42206.8848311484$1517968741$gmane$org@deb-ia64.gallaudet.edu>
Package: ltrace
Version: 0.5.3-2.1
Severity: normal
Tags: patch
User: [email protected]
Usertags: ia64

Dear Maintainer,

Due to some outdated glibc headers, ltrace does not build for ia64.  The attached patch corrects this.

-- System Information:
Debian Release: buster/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: ia64

Kernel: Linux 3.14-0.bpo.2-mckinley (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages ltrace depends on:
ii  libc6.1   2.26-1
ii  libelfg0  0.8.13-3

ltrace recommends no packages.

ltrace suggests no packages.

-- no debconf information
ltrace.diff.1 (text/plain, 954 B)
--- sysdeps/linux-gnu/ia64/breakpoint.c	2012-11-10 07:43:55.000000000 -0500
+++ sysdeps/linux-gnu/ia64/breakpoint.c	2018-02-05 13:26:00.229259936 -0500
@@ -24,6 +24,7 @@
  */
 
 #include <sys/ptrace.h>
+#include <sys/types.h>
 #include <string.h>
 #include <assert.h>
 
--- sysdeps/linux-gnu/ia64/fetch.c	2012-11-10 07:43:55.000000000 -0500
+++ sysdeps/linux-gnu/ia64/fetch.c	2018-02-06 20:24:31.888749905 -0500
@@ -36,7 +37,7 @@
 
 struct fetch_context {
 	arch_addr_t stack_pointer;
-	struct pt_all_user_regs regs;
+	struct __pt_all_user_regs regs;
 	enum param_pack_flavor ppflavor;
 
 	/* Return values larger than 256 bits (except HFAs of up to 8
@@ -206,7 +207,7 @@
    the GPL
    (http://www.gelato.unsw.edu.au/archives/linux-ia64/0104/1405.html) */
 static inline double
-fpreg_to_double (struct ia64_fpreg *fp) {
+fpreg_to_double (struct __ia64_fpreg *fp) {
 	double result;
 	asm ("ldf.fill %0=%1" : "=f"(result) : "m"(*fp));
 	return result;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.