On 6/07/14 01:21, Charles Lepple wrote:
> On Jul 5, 2014, at 6:39 PM, Kevin Horton <khorto...@gmail.com
[]
>> In file included from scheme_object.c:2175:
>> ./scheme_object.x:80:84: error: expected ')'
>>  scm_c_define_gsubr (s_translate_object_x, 3, 0, 0, (SCM (*)())
>> translate_object_x); ;
>>
>>              ^
>> ./scheme_object.x:79:21: note: to match this '('
>>  scm_c_define_gsubr (s_set_picture_data_vector_x,
>>                     ^
>> 1 error generated.
>
> Kevin,
>
> That's the same error I was getting. That C file is generated from
> guile-1.8-snarf.
>
> David,
>
> Do you have any insight on this? I was thinking it was a C preprocessor
> error, but then I asked Peter Clifton, one of the gEDA developers,
> whether he saw this, and he sent me the guile-snarf script that worked
> for him. It's from Ubuntu's guile-2.0.9, so on a whim, I tried copying
> Fink's guile-2.0-snarf script from guile20 to /sw/bin/guile-1.8-snarf,
> and it magically worked.
>
> The differences mostly seem to be deep inside the sed expression, as the
> stuff for setting $cpp from the $CPP environment variable seem to be
> equivalent.

The problem comes from a difference in the new clang preprocessor where 
it writes comments at unexpected places.
This has been fixed at one place in libguile18, but apparently not 
completely.

A hack that works is to change the file 
geda-gaf-1.8.1/libgeda/src/scheme_object.c by displacing a carriage 
return as follows:

--- scheme_object.c.ori 2012-11-23 17:04:18.000000000 +0100
+++ scheme_object.c     2014-07-07 01:30:17.000000000 +0200
@@ -1989,2 +1989,2 @@
-SCM_DEFINE (set_picture_data_vector_x, "%set-picture-data/vector!",
-            3, 0, 0, (SCM obj_s, SCM data_s, SCM filename_s),
+SCM_DEFINE (set_picture_data_vector_x, "%set-picture-data/vector!", 3, 
0, 0,
+           (SCM obj_s, SCM data_s, SCM filename_s),

A better fix would, of course, be to patch guile-1.8-snarf so that it 
works the same as guile-2.0-snarf.

-- 
Martin


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to