Build failure on OSX
Masaki Muranaka
monaka@monami-software.com
Mon Oct 1 07:55:00 GMT 2007
Hello,
I tried to build readelf.o on my OSX box. But it was failed by a warning like this:
- - - - - - - - - -
gcc -DHAVE_CONFIG_H -I. -I../../src/binutils -I. -I. -I../../src/binutils -I../bfd -I../../src/binutils/../bfd -I../../src/binutils/../include -I./../intl -DLOCALEDIR="\"/pizza/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../src/binutils/readelf.c
cc1: warnings being treated as errors
../../src/binutils/readelf.c: In function 'dump_section_as_strings':
../../src/binutils/readelf.c:7781: warning: format '%6zx' expects type 'size_t', but argument 2 has type 'int'
make[4]: *** [readelf.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] Error 2
make: *** [all] Error 2
- - - - - - - - - -
The attachment is tiny patch to fix it.
2007-10-01 Masaki Muranaka <monaka@monami-software.com>
* readelf.c (dump_section_as_strings): Add a cast to size_t.
--
Masaki Muranaka
Monami software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-readelf.diff
Type: application/octet-stream
Size: 564 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20071001/60e985fd/attachment.obj>
-------------- next part --------------
More information about the Binutils
mailing list