This would make it build... dunno why this was missed before :-/. IIRC libbfd plays games with arrays for ELF that cause warnings, probably easy enough to shut up in code if someone wants to look.
Index: Makefile =================================================================== RCS file: /cvs/ports/devel/gdb/Makefile,v retrieving revision 1.10 diff -u -p -r1.10 Makefile --- Makefile 27 Sep 2011 20:26:45 -0000 1.10 +++ Makefile 27 Sep 2011 22:36:14 -0000 @@ -26,7 +26,8 @@ CONFIGURE_ARGS= --program-transform-name --disable-nls \ --enable-target=all \ --without-expat \ - --without-python + --without-python \ + --disable-werror USE_GMAKE= Yes On Tue, Sep 27, 2011 at 11:15:14PM +0100, Stuart Henderson wrote: > On 2011/09/27 22:32, Stuart Henderson wrote: > > On 2011/09/27 13:01, Landry Breuil wrote: > > > CVSROOT: /cvs > > > Module name: ports > > > Changes by: lan...@cvs.openbsd.org 2011/09/27 13:01:25 > > > > > > Modified files: > > > lang/ocaml : Makefile > > > > > > Log message: > > > Switch ocaml to use the static libbfd.a from devel/gdb port now that > > > it's hooked up to the build on all archs. Tested on i386/amd64/sparc64. > > > > If the amd64 test worked, I'd like to know how you got gdb built :-) > > > > Ah, as oga pointed out (and espie did but I missed it), this built until > -Wbounded support was added recently.