Hi:

With the new --external-symbols-table feature, I'm
experiencing the following compilation failure:

gcc -DHAVE_CONFIG_H -I. -I../../binutils-cvs/gprof -I. -DDEBUG
-I../bfd -I../../binutils-cvs/gprof/../include -I../../binutils
-cvs/gprof/../bfd  -I. -DLOCALEDIR="\"/opt/cross_win64/share/locale\""
  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -We
rror -g -O2 -c ../../binutils-cvs/gprof/corefile.c
cc1: warnings being treated as errors
../../binutils-cvs/gprof/corefile.c: In function 'core_create_syms_from':
../../binutils-cvs/gprof/corefile.c:512: error: format '%lx' expects
type 'long unsigned int *', but argument 3 has type 'bfd_
vma *'
make[4]: *** [corefile.o] Error 1

Do I need to add -Wno-error or should a change something
like the following needed?

--- corefile.c~ 2009-06-12 18:33:30.000000000 +0300
+++ corefile.c  2009-06-13 13:47:30.000000000 +0300
@@ -512 +512 @@ core_create_syms_from (const char * sym_
-      sscanf (address, "%lx", &(symtab.limit->addr) );
+      sscanf (address, "%p", &(symtab.limit->addr) );

--
Ozkan


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to