Public bug reported:

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/sys/resource.h:25,
                 from /usr/include/sys/wait.h:32,
                 from test.c:2:
/usr/include/bits/resource.h:161: Fehler: Komma am Ende der Aufzählungsliste
</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

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
c program does not compile because of bug in /usr/include/bits/resource.h:161
https://bugs.launchpad.net/bugs/302087
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to