public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/359] New: PTHREAD_*_
@ 2004-08-31 7:52 schnake at composition dot de
2004-08-31 8:02 ` [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation schnake at composition dot de
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: schnake at composition dot de @ 2004-08-31 7:52 UTC (permalink / raw)
To: glibc-bugs
--
Summary: PTHREAD_*_
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: schnake at composition dot de
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation
2004-08-31 7:52 [Bug libc/359] New: PTHREAD_*_ schnake at composition dot de
@ 2004-08-31 8:02 ` schnake at composition dot de
2004-08-31 8:08 ` schnake at composition dot de
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: schnake at composition dot de @ 2004-08-31 8:02 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From schnake at composition dot de 2004-08-31 08:02 -------
Description:
============
g++ refuses to compile C++ code that uses one of the pthread.h declared macros
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP, PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
or PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
Reproducible:
=============
Always
Steps to Reproduce:
===================
Try to compile following with g++:
#include <pthread.h>
pthread_mutex_t mymutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
Actual Results:
===============
error: parse error before `.' token
Expected Results:
=================
AFAIK this *is* the expected result, as GNU C++ does not support the designated
initializer extension that is used in pthread.h to declare the macros mentioned
above.
Possible solution:
==================
Change pthread.h to use non-designated initializers instead.
My configuration (Gentoo ebuilds):
==================================
sys-libs/glibc-2.3.4.20040808 + NTPL
sys-devel/gcc-3.3.4-r1
More info:
==========
http://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|PTHREAD_*_ |PTHREAD_[...]_INITIALIZER_NP
| |macros from pthread.h break
| |GNU C++ compilation
http://sources.redhat.com/bugzilla/show_bug.cgi?id=359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation
2004-08-31 7:52 [Bug libc/359] New: PTHREAD_*_ schnake at composition dot de
2004-08-31 8:02 ` [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation schnake at composition dot de
@ 2004-08-31 8:08 ` schnake at composition dot de
2004-09-06 14:17 ` ed at catmur dot co dot uk
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: schnake at composition dot de @ 2004-08-31 8:08 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From schnake at composition dot de 2004-08-31 08:08 -------
Created an attachment (id=180)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=180&action=view)
Changes the PTHREAD_[...]_INITITALIZER_NP macros to use no designated
initializer
This patch applies only a formal change to pthread.h to make it useable with
current GCC specs (that simply and explicitly do not support that initalizer
style, see URL in comment #1). I dont know about implications with other
compilers, but I think the patched initializer style should be the common one
(as the GCC refers to the current one as "designated initializer *extension*"
;-)
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation
2004-08-31 7:52 [Bug libc/359] New: PTHREAD_*_ schnake at composition dot de
2004-08-31 8:02 ` [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation schnake at composition dot de
2004-08-31 8:08 ` schnake at composition dot de
@ 2004-09-06 14:17 ` ed at catmur dot co dot uk
2004-09-06 14:40 ` schnake at composition dot de
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ed at catmur dot co dot uk @ 2004-09-06 14:17 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ed at catmur dot co dot uk
http://sources.redhat.com/bugzilla/show_bug.cgi?id=359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation
2004-08-31 7:52 [Bug libc/359] New: PTHREAD_*_ schnake at composition dot de
` (2 preceding siblings ...)
2004-09-06 14:17 ` ed at catmur dot co dot uk
@ 2004-09-06 14:40 ` schnake at composition dot de
2004-09-08 7:31 ` solar at gentoo dot org
2004-09-12 5:50 ` drepper at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: schnake at composition dot de @ 2004-09-06 14:40 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From schnake at composition dot de 2004-09-06 14:40 -------
FYI there is an corresponding bug report at
http://bugs.gentoo.org/show_bug.cgi?id=45115
I reported it there first.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation
2004-08-31 7:52 [Bug libc/359] New: PTHREAD_*_ schnake at composition dot de
` (3 preceding siblings ...)
2004-09-06 14:40 ` schnake at composition dot de
@ 2004-09-08 7:31 ` solar at gentoo dot org
2004-09-12 5:50 ` drepper at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: solar at gentoo dot org @ 2004-09-08 7:31 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |solar at gentoo dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation
2004-08-31 7:52 [Bug libc/359] New: PTHREAD_*_ schnake at composition dot de
` (4 preceding siblings ...)
2004-09-08 7:31 ` solar at gentoo dot org
@ 2004-09-12 5:50 ` drepper at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: drepper at redhat dot com @ 2004-09-12 5:50 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2004-09-12 05:50 -------
Fixed upstream.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://sources.redhat.com/bugzilla/show_bug.cgi?id=359
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-12 5:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31 7:52 [Bug libc/359] New: PTHREAD_*_ schnake at composition dot de
2004-08-31 8:02 ` [Bug libc/359] PTHREAD_[...]_INITIALIZER_NP macros from pthread.h break GNU C++ compilation schnake at composition dot de
2004-08-31 8:08 ` schnake at composition dot de
2004-09-06 14:17 ` ed at catmur dot co dot uk
2004-09-06 14:40 ` schnake at composition dot de
2004-09-08 7:31 ` solar at gentoo dot org
2004-09-12 5:50 ` drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).