This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix build error on OSX


Hello maintainers,

I got sources via official git repository and tried to build on Snow Leopard.
Unfortunately it was failed.

Error message is like this:
cc1: warnings being treated as errors
../../binutils/binutils/strings.c: In function ‘strings_file’:
../../binutils/binutils/strings.c:419: warning: ‘stat64’ is deprecated (declared at /usr/include/sys/stat.h:465)

stat64 is defined as deprecated since Leopard (10.5). So the use of stat64 causes error on build stage.
I think it should be added -Werror to CFLAGS in configure.

My patch is attached. Could someone review this?

--
Masaki Muranaka
Monami software

Attachment: binutils-osx.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]