I wanted to note that, given a working boehm-gc (the next release, 7.2d, should work on OpenBSD 5.1, but newer OpenBSD versions, having switched to rthreads, will break it again), and a set of build flags similar to the following (these are tied to my personal setup) should allow one to build guile 2.0 (i tested .6) without any problems:
PKG_CONFIG_PATH="$HOME/usr/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig" LD_LIBRARY_PATH="$HOME/usr/lib:/usr/lib:/usr/local/lib" CPPFLAGS="-I$HOME/usr/include -I/usr/include -I/usr/local/include" LDFLAGS="-L$HOME/usr/lib -L/usr/lib -L/usr/local/lib" LIBS="-lpthread -lffi" LIBFFI_CFLAGS="$CPPFLAGS" LIBFFI_LIBS="$LDFLAGS $LIBS" The main issue is the need to set LIBFFI_(CFLAGS|LIBS) separately. The others would perhaps seem natural to someone who's used to compiling their software by hand. (I'm bad at it.) The resulting build of 2.0.6, me being on OpenBSD 5.1 and using a development snapshot of boehm-gc, passes all tests. Regards, Taylan