public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/284] New: POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined
@ 2004-07-23 16:28 a dot josey at opengroup dot org
2004-07-23 16:31 ` [Bug libc/284] " a dot josey at opengroup dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: a dot josey at opengroup dot org @ 2004-07-23 16:28 UTC (permalink / raw)
To: glibc-bugs
The attached code does not compile when compiled with just
c99 -c -D_XOPEN_SOURCE=600
but does when you add -D_POSIX_C_SOURCE=200112L,
i.e.
$ c99 -c -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L ts.c
-sh-2.05b$ c99 -c -D_XOPEN_SOURCE=600 ts.c
In file included from ts.c:2:
/usr/include/pthread.h:651: error: syntax error before "clockid_t"
ts.c:28: error: syntax error before "siginfo_t"
ts.c: In function `dummy_rt_signal':
ts.c:36: error: structure has no member named `sa_sigaction'
POSIX 1003.1 volume System Interfaces Section 2.2.1 states:
Since this volume of IEEE Std 1003.1-2001 is aligned with the ISO C standard,
and since all functionality enabled by _POSIX_C_SOURCE set equal to 200112L is
enabled by _XOPEN_SOURCE set equal to 600, there should be no need to define
_POSIX_C_SOURCE if _XOPEN_SOURCE is so defined. Therefore, if _XOPEN_SOURCE is
set equal to 600 and _POSIX_C_SOURCE is set equal to 200112L, the behavior is
the same as if only _XOPEN_SOURCE is defined and set equal to 600. However,
should _POSIX_C_SOURCE be set to a value greater than 200112L, the behavior is
unspecified
--
Summary: POSIX.1-2001: code not compiling when -
D_XOPEN_SOURCE=600 only defined
Product: glibc
Version: 2.3.3
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: a dot josey at opengroup dot org
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=284
------- 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] 6+ messages in thread
* [Bug libc/284] POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined
2004-07-23 16:28 [Bug libc/284] New: POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined a dot josey at opengroup dot org
@ 2004-07-23 16:31 ` a dot josey at opengroup dot org
2004-07-24 16:44 ` gotom at debian dot or dot jp
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: a dot josey at opengroup dot org @ 2004-07-23 16:31 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From a dot josey at opengroup dot org 2004-07-23 16:30 -------
Created an attachment (id=141)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=141&action=view)
Test program
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=284
------- 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] 6+ messages in thread
* [Bug libc/284] POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined
2004-07-23 16:28 [Bug libc/284] New: POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined a dot josey at opengroup dot org
2004-07-23 16:31 ` [Bug libc/284] " a dot josey at opengroup dot org
@ 2004-07-24 16:44 ` gotom at debian dot or dot jp
2005-02-17 1:11 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: gotom at debian dot or dot jp @ 2004-07-24 16:44 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From gotom at debian dot or dot jp 2004-07-24 16:44 -------
Hi,
Andrew, I checked your program and it can be compiled with the latest cvs.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
http://sources.redhat.com/bugzilla/show_bug.cgi?id=284
------- 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] 6+ messages in thread
* [Bug libc/284] POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined
2004-07-23 16:28 [Bug libc/284] New: POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined a dot josey at opengroup dot org
2004-07-23 16:31 ` [Bug libc/284] " a dot josey at opengroup dot org
2004-07-24 16:44 ` gotom at debian dot or dot jp
@ 2005-02-17 1:11 ` cvs-commit at gcc dot gnu dot org
2005-02-18 0:06 ` roland at gnu dot org
2005-02-18 0:09 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-17 1:11 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-17 01:11 -------
Subject: Bug 284
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sources.redhat.com 2005-02-17 01:11:00
Modified files:
include : features.h
Log message:
2004-07-23 Jakub Jelinek <jakub@redhat.com>
[BZ #284]
* include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/include/features.h.diff?cvsroot=glibc&r1=1.37&r2=1.38
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=284
------- 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] 6+ messages in thread
* [Bug libc/284] POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined
2004-07-23 16:28 [Bug libc/284] New: POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined a dot josey at opengroup dot org
` (2 preceding siblings ...)
2005-02-17 1:11 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-18 0:06 ` roland at gnu dot org
2005-02-18 0:09 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: roland at gnu dot org @ 2005-02-18 0:06 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |724
nThis| |
http://sources.redhat.com/bugzilla/show_bug.cgi?id=284
------- 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] 6+ messages in thread
* [Bug libc/284] POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined
2004-07-23 16:28 [Bug libc/284] New: POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined a dot josey at opengroup dot org
` (3 preceding siblings ...)
2005-02-18 0:06 ` roland at gnu dot org
@ 2005-02-18 0:09 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-18 0:09 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-02-18 00:09 -------
Subject: Bug 284
CVSROOT: /cvs/glibc
Module name: libc
Branch: glibc-2_3-branch
Changes by: roland@sources.redhat.com 2005-02-18 00:08:58
Modified files:
include : features.h
Log message:
2004-07-23 Jakub Jelinek <jakub@redhat.com>
[BZ #284]
* include/features.h (_POSIX_SOURCE, _POSIX_C_SOURCE): Define
if _XOPEN_SOURCE >= 500 even if __STRICT_ANSI__ is defined.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/include/features.h.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.36&r2=1.36.2.1
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=284
------- 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] 6+ messages in thread
end of thread, other threads:[~2005-02-18 0:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-23 16:28 [Bug libc/284] New: POSIX.1-2001: code not compiling when -D_XOPEN_SOURCE=600 only defined a dot josey at opengroup dot org
2004-07-23 16:31 ` [Bug libc/284] " a dot josey at opengroup dot org
2004-07-24 16:44 ` gotom at debian dot or dot jp
2005-02-17 1:11 ` cvs-commit at gcc dot gnu dot org
2005-02-18 0:06 ` roland at gnu dot org
2005-02-18 0:09 ` cvs-commit at gcc dot gnu dot org
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).