Bug 24443 - Use of __USE_GNU is not allowed, causes failure to build
Summary: Use of __USE_GNU is not allowed, causes failure to build
Status: RESOLVED DUPLICATE of bug 22291
Alias: None
Product: Telepathy
Classification: Unclassified
Component: idle (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-10 08:35 UTC by Kees Cook
Modified: 2009-10-10 10:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
replace __USE_GNU with _GNU_SOURCE (1.40 KB, patch)
2009-10-10 08:36 UTC, Kees Cook
Details | Splinter Review

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.