[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#355584: marked as done (/usr/include/pthread.h: pthread_cleanup_push does not compile on intel)



Your message dated Mon, 6 Mar 2006 20:55:14 +0100
with message-id <20060306195514.GA5079@linuxfr.org>
and subject line Bug#355584: libc6-dev: oops, with pthread_cleanup_pop it compiles
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
On Mon, Mar 06, 2006 at 05:13:09PM +0100, Marius Mikucionis wrote:
> Package: libc6-dev
> Version: 2.3.6-3
> Followup-For: Bug #355584
> 
> oops, with pthread_cleanup_pop it compiles
> sorry

No problem.  Please note that you can close your own bugs by sending a mail
to <bug_number>-done@bugs.debian.org like this one when you realize that
your bug report is invalid.  Anyway, it is closed now.

Denis

--- End Message ---

Reply to: