[Bug 507930] New: glibc(?): missing include in <string.h>
http://bugzilla.novell.com/show_bug.cgi?id=507930 Summary: glibc(?): missing include in <string.h> Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: vuntz@novell.com QAContact: qa@suse.de Found By: --- The new telepathy-idle has this code: /* strnlen */ #define __USE_GNU #include <string.h> Compilation fails with: /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) Apparently, __locale_t is defined in /usr/include/xlocale.h. This file gets included in string.h if __USE_XOPEN2K8 is defined. Howevern, it's also used inside a "#if __USE_GNU", so it should be included in this case too. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=507930 User pbaudis@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=507930#c1 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |pbaudis@novell.com AssignedTo|bnc-team-screening@forge.pr |pbaudis@novell.com |ovo.novell.com | --- Comment #1 from Petr Baudis <pbaudis@novell.com> 2009-06-14 17:05:25 MDT --- Thank you, I will submit new glibc on Monday. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=507930 User pbaudis@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=507930#c2 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID --- Comment #2 from Petr Baudis <pbaudis@novell.com> 2009-06-15 02:10:25 MDT --- Actually, I won't. This is invalid code, user applications must never use the glibc-internal __USE_* macros, but _*_SOURCE macros instead (see <features.h> for details on these). #define _GNU_SOURCE should work all right. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com