From efe3b675aae3b1c398db1f5f42d1f59c1a372e71 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 9 Jan 2015 01:58:13 +0100 Subject: [PATCH] Fix a compilation error caused by the previous patch --- ltrace-0.7.91-unwind-elfutils.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ltrace-0.7.91-unwind-elfutils.patch b/ltrace-0.7.91-unwind-elfutils.patch index 1e18eb4..6a855a8 100644 --- a/ltrace-0.7.91-unwind-elfutils.patch +++ b/ltrace-0.7.91-unwind-elfutils.patch @@ -425,3 +425,16 @@ diff -u ltrace-0.7.91/proc.h ltrace-0.7.91-pm/proc.h Only in ltrace-0.7.91-pm/: proc.h.orig Common subdirectories: ltrace-0.7.91/sysdeps and ltrace-0.7.91-pm/sysdeps Common subdirectories: ltrace-0.7.91/testsuite and ltrace-0.7.91-pm/testsuite +diff -up ltrace-0.7.91/proc.c\~ ltrace-0.7.91/proc.c +--- ltrace-0.7.91/proc.c~ 2015-01-09 01:55:38.289864078 +0100 ++++ ltrace-0.7.91/proc.c 2015-01-09 01:56:29.818881935 +0100 +@@ -918,7 +918,8 @@ proc_add_library(struct process *proc, s + dwfl_report_begin_add(dwfl); + if (dwfl_report_elf(dwfl, lib->soname, + lib->pathname, -1, +- (GElf_Addr) lib->base, ++ /* XXX double cast */ ++ (GElf_Addr) (uintptr_t) lib->base, + false) == NULL) + fprintf(stderr, + "dwfl_report_elf %s@%p (%s) %d: %s\n",