[MacPorts] #35148: gegl 0.2.0_0 Syntax error before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'

MacPorts noreply at macports.org
Mon Sep 3 14:14:45 PDT 2012


#35148: gegl 0.2.0_0 Syntax error before
'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
-----------------------------+----------------------------------------------
 Reporter:  jovo@…           |       Owner:  snc@…           
     Type:  defect           |      Status:  new             
 Priority:  Normal           |   Milestone:                  
Component:  ports            |     Version:  2.1.1           
 Keywords:  tiger leopard    |        Port:  gegl            
-----------------------------+----------------------------------------------

Comment(by michael.klein@…):

 Replying to [comment:21 jeremyhu@…]:
 > I wonder if "pixel" is #defined to something else... Try changing those
 occurrences of pixel to "pixelp" to see if it fixed the issue...

 yup, the preprocessor output for the offending code is:

 {{{
 # 108 "../../gegl/property-types/gegl-color.h"
 void gegl_color_set_pixel (GeglColor *color,
                                                 const Babl *format,
                                                 const void
 *__attribute__((altivec(pixel__))) unsigned short);
 # 119 "../../gegl/property-types/gegl-color.h"
 void gegl_color_get_pixel (GeglColor *color,
                                                 const Babl *format,
                                                 void
 *__attribute__((altivec(pixel__))) unsigned short);
 }}}

 The closest source for the redefinition I could find comes from
 {{{/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/include/altivec.h}}}:

 {{{
 #if defined(__APPLE_ALTIVEC__)
 #warning Ignoring <altivec.h> because "-faltivec" specified
 #else
 /* You are allowed to undef these for C++ compatibility.  */
 #define vector __vector
 #define pixel __pixel
 #define bool __bool
 /* APPLE LOCAL end AltiVec */
 }}}

 I'm trying to build with -faltivec now...

-- 
Ticket URL: <https://trac.macports.org/ticket/35148#comment:25>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list