On Tue, 2014-08-12 at 20:51 +0200, Andreas Schwab wrote:
> Petr Machata <[email protected]> writes:
>
> > Andreas Schwab <[email protected]> writes:
> >
> >> proc.c: In function 'proc_add_library':
> >> proc.c:944:6: error: cast from pointer to integer of different size
> >> [-Werror=pointer-to-int-cast]
> >> (GElf_Addr) lib->base,
> >
> > Does this patch help?
>
> Only a little bit.
>
> https://build.opensuse.org/project/monitor/home:AndreasSchwab:f
>
> dwarf_prototypes.c: In function 'get_die_numeric':
> dwarf_prototypes.c:164:3: error: format '%lx' expects argument of type 'long
> unsigned int', but argument 7 has type 'Dwarf_Off' [-Werror=format=]
> complain(die, "Unknown numeric form %d for attr_name: %d",
> ^
Does this patch help?
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 9c36904..a39219e 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <elfutils/libdwfl.h>
#include <dwarf.h>
+#include <inttypes.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
@@ -27,7 +28,7 @@
#include "debug.h"
#define complain(die, format, ...) \
- debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%lx: " format, \
+ debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%" PRIx64 ": " format, \
__func__, dwarf_diename(die), dwarf_dieoffset(die), \
##__VA_ARGS__)
_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel