bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling


From: Vladimir Merzliakov
Subject: Re: Binutils build broken at FreeBSD 5.3 after -Werror enabling
Date: Tue, 29 Mar 2005 20:24:07 +0400

And then configure part work fine at FreeBSD but
binutils/config.h not #included in addr2line.c

Hmm, but it does #include "bucomm.h" which then #include's "config.h".
It turns out however that it incldues it too late (ie after "bfd.h").
So please try the attached patch (in addition to my previous patch).

addr2line.c compile with addition patch

But terminated at:

In file included from /usr/home/wanderer/pkg/build/binutils/src/src/gas/as.h:93, from /usr/home/wanderer/pkg/build/binutils/src/src/gas/app.c:30: /usr/home/wanderer/pkg/build/binutils/src/src/gas/../include/getopt.h:116: warning: function declaration isn't a prototype
gmake[3]: *** [app.o] Error 1

I rebuild binutils with --disable-werror flag and found in build log more warnings at gas/as.h:93 line in gas/*.c files

Also 4 warning in another *.c files:

In file included from /usr/home/wanderer/pkg/build/binutils/src/src/ld/lexsup.c:29: /usr/home/wanderer/pkg/build/binutils/src/src/ld/../include/getopt.h:116: warning: function declaration isn't a prototype

In file included from /usr/home/wanderer/pkg/build/binutils/src/src/ld/ldemul.c:25: /usr/home/wanderer/pkg/build/binutils/src/src/ld/../include/getopt.h:116: warning: function declaration isn't a prototype

In file included from eelf_i386_fbsd.c:31:
/usr/home/wanderer/pkg/build/binutils/src/src/ld/../include/getopt.h:116: warning: function declaration isn't a prototype

In file included from eelf_i386.c:31:
/usr/home/wanderer/pkg/build/binutils/src/src/ld/../include/getopt.h:116: warning: function declaration isn't a prototype

I think after fixing this warnings binutils must buld at FreeBSD without --disable-werror option

Vladimir





reply via email to

[Prev in Thread] Current Thread [Next in Thread]