Bug 24443

Summary: Use of __USE_GNU is not allowed, causes failure to build
Product: Telepathy Reporter: Kees Cook <kees>
Component: idleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED DUPLICATE QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: replace __USE_GNU with _GNU_SOURCE

Description Kees Cook 2009-10-10 08:35:13 UTC
In file included from idle-connection.c:27:
/usr/include/string.h:546: error: expected declaration specifiers or '...' before '__locale_t'
/usr/include/string.h:547: error: nonnull argument with out-of-range operand number (argument 1, operand 3)
/usr/include/string.h:550: error: expected declaration specifiers or '...' before '__locale_t'
/usr/include/string.h:551: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
make[4]: *** [idle-connection.lo] Error 1

This appears to be due to the use of __USE_GNU, which should not be used directly:
http://gcc.gnu.org/ml/fortran/2005-10/msg00365.html

_GNU_SOURCE should be used instead (see attached patch).
Comment 1 Kees Cook 2009-10-10 08:36:22 UTC
Created attachment 30252 [details] [review]
replace __USE_GNU with _GNU_SOURCE
Comment 2 Kees Cook 2009-10-10 10:29:29 UTC

*** This bug has been marked as a duplicate of bug 22291 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.