binutils-2.20.1 fail to build on NetBSD for a few reasons. One of them is that fileno() is a macro and the iostream field of struct bfd (see bfd/bfd-in2.h) is a void *.
The two calls to fileno() in bfd/plugin.c lack the cast to FILE*. Grepping around shows such casts, so it looks like adding the casts in bfd/plugin.c is the right way to go. The two instances of fileno() are in function bfd_plugin_object_p(). -- Summary: Missing FILE * casts in bfd/plugin.c Product: binutils Version: 2.20 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: vincent at labri dot fr CC: bug-binutils at gnu dot org GCC build triplet: x86_64-unknown-netbsd5.0. GCC host triplet: x86_64-unknown-netbsd5.0. http://sourceware.org/bugzilla/show_bug.cgi?id=11382 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils