On 2/1/2010 10:30 AM, Kevin Cowtan wrote:
> I'm trying to set up a Fedora 12 build machine, and running into
> problems.
>
> I keep running into the c preprocessor problem when building guile
> listed here:
> [log in to unmask]" target="_blank">http:[log in to unmask]
>
> It seems to be specific to Fedora's gcc 4.2.2, not to the upstream
> version. I tried using mcpp ( with ln -s /usr/bin/mccp
> /usr/local/bin/cpp ), but got the same result.
>
> Is there any way to downgrade to a pre-F12 gcc?
>
> Kevin
>
The patch in the thread did the trick:
diff -Nur guile-1.8.7.orig/libguile/guile-snarf-docs.in
guile-1.8.7/libguile/guile-snarf-docs.in
--- guile-1.8.7.orig/libguile/guile-snarf-docs.in 2009-07-03
18:19:00.000000000 -0400
+++ guile-1.8.7/libguile/guile-snarf-docs.in 2009-11-19 12:55:32.487266268
-0500
@@ -23,4 +23,4 @@
## Let the user override the preprocessor autoconf found.
test -n "${CPP+set}" || CPP="@CPP@"
-${CPP} -DSCM_MAGIC_SNARF_DOCS "$@"
+${CPP} -P -DSCM_MAGIC_SNARF_DOCS "$@"
|