On Oct 21, 2008, at 3:44 AM, Martin Costabel wrote:

> Alexander Hansen wrote:
> []
>> /usr/include/secure/_string.h:52: error: syntax error before 'void'
>
> This is a strange one... Looking at the preprocessor output (to take  
> into account possible weird macros), the line in question remains  
> still the same, the first line of
>
> static inline void *
> __inline_memcpy_chk (void *__dest, const void *__src, size_t __len)
> {
>  return __builtin___memcpy_chk (__dest, __src, __len,  
> __builtin_object_size (__dest, 0));
> }
>
> I don't see why "static inline void *" should have a syntax error  
> before void.
>
> Is there a situation where "static inline" is forbidden? Any C gurus  
> out there?
>
> -- 
> Martin
>

There was a bit of discussion on IRC about this, and one notion was  
brought up, but not yet explored:

17:23 < dmacks> That secure/_string.h error is probably triggered by the
                 FORTIFY_SOURCE flag...adds some strict safety  
controls on
                 memory and other "likely mistakes", so unsetting the  
flag would
                 maybe fix the build but doesn't change the apparent  
fact that
                 the code itself is bad.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to