Please could you try the patch below which *might* work. I have not tested it very much. You ought to regenerate the configure files after applying this patch but in case this is a problem for you I am attaching a compressed diff for them as well.
Results of testting:
checking for an known getopt prototype in unistd.h... yes .... But terminated with message:
In file included from /usr/home/wanderer/pkg/build/binutils/src/src/binutils/addr2line.c:35:
/usr/home/wanderer/pkg/build/binutils/src/src/binutils/../include/getopt.h:116: warning: function declaration isn't a prototype
gmake[3]: *** [addr2line.o] Error 1
gmake[3]: Leaving directory `/usr/home/wanderer/pkg/build/binutils/obj/binutils'
obj/binutils/config.h have:
/* Is the prototype for getopt in <unistd.h> in the expected format? */ #define HAVE_DECL_GETOPT 1
And then configure part work fine at FreeBSD but binutils/config.h not #included in addr2line.c
Vladimir
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils