Launchpad has imported 3 comments from the remote bug at http://sourceware.org/bugzilla/show_bug.cgi?id=9720.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2009-01-08T03:24:53+00:00 Kees Cook wrote: #include <stdlib.h> #include <sys/wait.h> int main(){ return EXIT_SUCCESS; } cc test.c -o test -pedantic-errors In file included from /usr/include/sys/resource.h:25, from /usr/include/sys/wait.h:32, from test.c:2: /usr/include/bits/resource.h:161: error: comma at end of enumerator list ... RUSAGE_CHILDREN = -1, #define RUSAGE_CHILDREN RUSAGE_CHILDREN #ifdef __USE_GNU /* The calling thread. */ RUSAGE_THREAD = 1 ... The change to sysdeps/unix/sysv/linux/bits/resource.h was: revision 1.20 date: 2008/05/01 05:37:45; author: drepper; state: Exp; lines: +9 -1 Define RUSAGE_THREAD and RUSAGE_LWP. Reply at: https://bugs.launchpad.net/glibc/+bug/302087/comments/4 ------------------------------------------------------------------------ On 2009-01-08T10:16:28+00:00 Cvs-commit wrote: Subject: Bug 9720 CVSROOT: /cvs/glibc Module name: libc Changes by: [email protected] 2009-01-08 10:16:12 Modified files: . : ChangeLog sysdeps/unix/sysv/linux/bits: resource.h sysdeps/unix/sysv/linux/sparc/bits: resource.h Log message: [BZ #9720] * sysdeps/unix/sysv/linux/bits/resource.h (enum __rusage_who): Avoid comma after RUSAGE_CHILDREN if not -D_GNU_SOURCE. * sysdeps/unix/sysv/linux/sparc/bits/resource.h (enum __rusage_who): Likewise. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&r1=1.11439&r2=1.11440 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/bits/resource.h.diff?cvsroot=glibc&r1=1.20&r2=1.21 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/sparc/bits/resource.h.diff?cvsroot=glibc&r1=1.10&r2=1.11 Reply at: https://bugs.launchpad.net/glibc/+bug/302087/comments/6 ------------------------------------------------------------------------ On 2009-01-09T03:48:55+00:00 Drepper-fsp wrote: Jakub checked in a patch. Reply at: https://bugs.launchpad.net/glibc/+bug/302087/comments/8 ** Changed in: glibc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/302087 Title: c program does not compile because of bug in /usr/include/bits/resource.h:161 -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
