coot  

Re: [COOT] Anyone got Coot to build on Fedora 12?

Ezra Peisach
Mon, 01 Feb 2010 07:57:56 -0800

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:
http://www.mail-archive.com/guile-de...@gnu.org/msg04783.html

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 "$@"