When building guile on FreeBSD the build fails almost immediately because the gen-scmconfig tool cannot be built, as it includes string.h that in FreeBSD includes strings.h, which is a system header, but due to the presence of -I. in the commandline, libguile/strings.h is used instead. Upstream seems to know about that particular problem, as they do have a comment that resets DEFS= to avoid adding default includes from automake, but that does not work as they intend, at least with the latest versions of automake. The attached patch fixes the problem by rewriting DEFAULT_INCLUDES variable so that -I. is skipped over (and gen-scmconfig finally builds and works). HTH, Diego P.S.: tell me where to submit this upstream, as I don't really know.
Created attachment 120254 [details, diff] guile-1.8.1-defaultincludes.patch
Created attachment 120256 [details, diff] guile-1.8.1-clog-cexp.patch This patch is also needed, as clog and cexp functions are not present in FreeBSD, so they need to be replaced with their fallback counterparts.
Created attachment 120260 [details] Build/test log And even with regex and networking enabled, test fail. I suppose the two failure in regular expressions are for GNU-style regular expressions while FreeBSD provides a different support.
(In reply to comment #0) > P.S.: tell me where to submit this upstream, as I don't really know. You can use bug-guile@gnu.org for that.
Okay the clog-cexp thing is already fixed in their CVS, the other I'll report asap (I was suspecting the usual bug-$foo address.. and that already has me knowing that I won't receive any reply for a few æons :P).
I've added your patches to 1.8.1-r3.