Source: ltrace Version: 0.7.3+git20240814-0.2 Severity: normal X-Debbugs-Cc: wuruil...@loongson.cn
Dear Maintainer, ltrace compiles incorrectly on loongarch platform, attachment patch resolves the issue. I have verified the patch on loongarch platform and it compiles successfully. Please merge the attached patch. wuruilong -- System Information: Debian Release: trixie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: loong64 (loongarch64) Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect
Description: <short summary of the patch> TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . ltrace (0.7.3+git20240814-0.2) unstable; urgency=medium . * Non-maintainer upload. * Upload to unstable. Closes: #1019505 * New release, Closes: #958369, #927149, #606026, #553189 * Enable build for arm64, mips64el, loong64, ppc64el, riscv64 Closes: #1042390, #871574, #744752, #1050320, #1027385 Author: Chris Hofstaedtler <z...@debian.org> Bug-Debian: https://bugs.debian.org/553189 Bug-Debian: https://bugs.debian.org/606026 Bug-Debian: https://bugs.debian.org/744752 Bug-Debian: https://bugs.debian.org/871574 Bug-Debian: https://bugs.debian.org/927149 Bug-Debian: https://bugs.debian.org/958369 Bug-Debian: https://bugs.debian.org/1019505 Bug-Debian: https://bugs.debian.org/1027385 Bug-Debian: https://bugs.debian.org/1042390 Bug-Debian: https://bugs.debian.org/1050320 --- The information above should follow the Patch Tagging Guidelines, please checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>) Bug: <upstream-bugtracker-url> Bug-Debian: https://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: (no|not-needed|<patch-forwarded-url>) Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>) Reviewed-By: <name and email of someone who approved/reviewed the patch> Last-Update: 2024-09-29 --- ltrace-0.7.3+git20240814.orig/sysdeps/linux-gnu/loongarch/fetch.c +++ ltrace-0.7.3+git20240814/sysdeps/linux-gnu/loongarch/fetch.c @@ -18,6 +18,7 @@ * 02110-1301 USA */ +#include <elf.h> #include <sys/ptrace.h> #include <asm/ptrace.h> #include <stdlib.h> --- ltrace-0.7.3+git20240814.orig/sysdeps/linux-gnu/loongarch/plt.c +++ ltrace-0.7.3+git20240814/sysdeps/linux-gnu/loongarch/plt.c @@ -18,6 +18,7 @@ * 02110-1301 USA */ +#include <stdio.h> #include <gelf.h> #include <stdbool.h> #include "backend.h" --- ltrace-0.7.3+git20240814.orig/sysdeps/linux-gnu/loongarch/regs.c +++ ltrace-0.7.3+git20240814/sysdeps/linux-gnu/loongarch/regs.c @@ -19,6 +19,8 @@ */ #include "config.h" +#include <errno.h> +#include <stdio.h> #include <stddef.h> #include <sys/types.h> #include <sys/ptrace.h> --- ltrace-0.7.3+git20240814.orig/sysdeps/linux-gnu/loongarch/trace.c +++ ltrace-0.7.3+git20240814/sysdeps/linux-gnu/loongarch/trace.c @@ -18,6 +18,7 @@ * 02110-1301 USA */ +#include <stdio.h> #include <sys/ptrace.h> #include <sys/types.h> #include <sys/wait.h>