Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179728 - dev-scheme/guile-1.8.1-r3 fails to build on FreeBSD (strings.h conflict & other)
Summary: dev-scheme/guile-1.8.1-r3 fails to build on FreeBSD (strings.h conflict & other)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Scheme Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 09:08 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2007-05-25 13:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
guile-1.8.1-defaultincludes.patch (guile-1.8.1-defaultincludes.patch,439 bytes, patch)
2007-05-25 09:09 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
guile-1.8.1-clog-cexp.patch (guile-1.8.1-clog-cexp.patch,2.66 KB, patch)
2007-05-25 09:30 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff
Build/test log (dev-scheme:guile-1.8.1-r3:20070525-103416.log,189.97 KB, text/plain)
2007-05-25 09:48 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-25 09:08:50 UTC
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.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-25 09:09:52 UTC
Created attachment 120254 [details, diff]
guile-1.8.1-defaultincludes.patch
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-25 09:30:50 UTC
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.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-25 09:48:38 UTC
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.
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2007-05-25 10:06:18 UTC
(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.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-25 10:25:55 UTC
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).
Comment 6 Marijn Schouten (RETIRED) gentoo-dev 2007-05-25 13:03:38 UTC
I've added your patches to 1.8.1-r3.