c program does not compile because of bug in /usr/include/bits/resource.h:161
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GLibC |
Fix Released
|
Medium
|
|||
glibc (Ubuntu) |
Fix Released
|
Low
|
Kees Cook | ||
Jaunty |
Fix Released
|
Low
|
Kees Cook |
Bug Description
first: sorry about this message but its my first bugreport and maybe you find it awful but i done it in a good faith!
os: ubuntu ibex. package: glibc
tried to compile a program. compilerflags are:
gcc -Wall -Werror -pedantic-errors -g -c test.c
the source in test.c:
<qoute>
#include <stdlib.h>
#include <sys/wait.h>
int main(){
return EXIT_SUCCESS;
}
</qoute>
error was:
<quote>
In file included from /usr/include/
/usr/include/
</quote>
the error is in german and deals with the comma. i think its about the #ifdef in resource.h:161. i repleaced with:
<qoute>
/* Whose usage statistics do you want? */
enum __rusage_who
{
/* The calling process. */
RUSAGE_SELF = 0,
#define RUSAGE_SELF RUSAGE_SELF
#ifndef __USE_GNU
/* All of its terminated child processes. */
RUSAGE_CHILDREN = -1
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
#endif
#ifdef __USE_GNU
/* All of its terminated child processes. */
RUSAGE_CHILDREN = -1,
#define RUSAGE_CHILDREN RUSAGE_CHILDREN
/* The calling thread. */
RUSAGE_THREAD = 1
# define RUSAGE_THREAD RUSAGE_THREAD
/* Name for the same functionality on Solaris. */
# define RUSAGE_LWP RUSAGE_THREAD
#endif
};
</qoute>
maybe this can help.
thanks for all your work!!!!
best regards,
martin grewe
Related branches
Changed in glibc: | |
status: | New → Confirmed |
Changed in glibc: | |
status: | Unknown → Confirmed |
Changed in glibc: | |
assignee: | nobody → kees |
importance: | Undecided → Low |
Changed in glibc: | |
status: | Confirmed → Fix Released |
Changed in glibc: | |
importance: | Unknown → Medium |
Here is the same bug in English. Please fix or report upstream to glibc people. Thanks a million.
gcc -I. -Ilib/private -Ilib/public -Ilib/private/ plugin/ gzip -Ilib/private/ plugin/ cunit -Ilib/private/ plugin/ tiger -Ilib/private/ plugin/ event -Ilib/private/ plugin/ event/compat -Ilib/private/ plugin/ regex -Ilib/private/ plugin/ python -Ilib/private/ plugin/ ruby -Ilib/private/os -Ilib/private/ plugin/ event/os/ linux -Ilib/private/ plugin/ cunit/os/ linux -Wall -W -Wunused -ansi -pedantic -Werror -Wno-long-long -Wunused-function -std=gnu89 -D_LARGEFILE_SOURCE -D_FILE_ OFFSET_ BITS=64 -D_LARGE_FILES -g -pedantic-errors -Wextra -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ALLOCA_H=1 -DEBUG=1 -o lib/private/ plugin/ event/http. o -c lib/private/ plugin/ event/http. c sys/resource. h:25,
from lib/private/ plugin/ event/http. c:49: bits/resource. h:161: error: comma at end of enumerator list
In file included from /usr/include/
/usr/include/