http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52785
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-30 02:18:18 UTC --- strndup is a macro in glibc header files. Use (strndup) to disable the macro function. This is not a GCC bug or a glibc bug (since you supply _GNU_SOURCE which says define this macro) as the header is using something in the GNU_SOURCE namespace.