Bug#355584: /usr/include/pthread.h: pthread_cleanup_push does not compile on intel
Package: libc6-dev
Version: 2.3.6-3
Severity: normal
File: /usr/include/pthread.h
Consider the following trivial simple.c file that does not compile:
#include <pthread.h>
void routine(void* ptr)
{
}
int main()
{
pthread_cleanup_push(routine, NULL);
}
Compiler says:
$ g++ -lpthread simple.c
simple.c: In function âint main()â:
simple.c:10: error: expected `}' at end of input
With gcc it's even worse (it simply says syntax error).
I looked at /usr/include/pthread.h and see that pthread_cleanup_push is a
macro with missing } character at the end.
I could not find a bugreport on that, any opinions?
I think it's a bug with trivial fix.
thanks
marius
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.4
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libc6-dev depends on:
hi libc6 2.3.6-3 GNU C Library: Shared libraries an
ii linux-kernel-headers 2.6.13+0rc3-2 Linux Kernel Headers for developme
Versions of packages libc6-dev recommends:
ii gcc [c-compiler] 4:4.0.2-2 The GNU C compiler
ii gcc-3.2 [c-compiler] 1:3.2.3-9 The GNU C compiler
ii gcc-3.3 [c-compiler] 1:3.3.6-12 The GNU C compiler
ii gcc-3.4 [c-compiler] 3.4.5-3 The GNU C compiler
ii gcc-4.0 [c-compiler] 4.0.2-10 The GNU C compiler
-- no debconf information
Reply to: