From owner-freebsd-standards@FreeBSD.ORG Mon Jul 31 11:03:55 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DFA616A655 for ; Mon, 31 Jul 2006 11:03:55 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 231AA43D7B for ; Mon, 31 Jul 2006 11:03:19 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6VB3J9M051975 for ; Mon, 31 Jul 2006 11:03:19 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6VB3E1s051966 for freebsd-standards@freebsd.org; Mon, 31 Jul 2006 11:03:14 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 31 Jul 2006 11:03:14 GMT Message-Id: <200607311103.k6VB3E1s051966@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2006 11:03:55 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/03/05] bin/25542 standards /bin/sh: null char in quoted string o [2002/12/13] kern/46239 standards posix semaphore implementation errors o [2003/07/12] standards/54410standards one-true-awk not POSIX compliant (no exte o [2005/06/25] standards/82654standards C99 long double math functions are missin o [2006/03/20] standards/94729standards fcntl() throws undocumented ENOTTY 5 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/24] bin/21519 standards sys/dir.h should be deprecated some more o [2001/01/16] bin/24390 standards Replacing old dir-symlinks when using /bi s [2001/01/24] standards/24590standards timezone function not compatible witn Sin s [2001/06/18] kern/28260 standards UIO_MAXIOV needs to be made public s [2002/03/19] standards/36076standards Implementation of POSIX fuser command s [2002/05/07] standards/37843standards manual for pthread_setschedparam(3) is wr o [2002/06/14] standards/39256standards snprintf/vsnprintf aren't POSIX-conforman p [2002/08/12] standards/41576standards POSIX compliance of ln(1) o [2002/10/23] standards/44425standards getcwd() succeeds even if current dir has o [2002/12/09] standards/46119standards Priority problems for SCHED_OTHER using p o [2003/07/25] standards/54833standards [pcvt] more pcvt deficits o [2003/07/25] standards/54839standards [pcvt] pcvt deficits p [2003/07/31] standards/55112standards glob.h, glob_t's gl_pathc should be "size o [2003/09/05] standards/56476standards cd9660 unicode support simple hack o [2003/10/29] standards/58676standards grantpt(3) alters storage used by ptsname s [2004/02/14] standards/62858standards malloc(0) not C99 compliant s [2004/03/29] kern/64875 standards [libc] [patch] [feature request] add a sy o [2004/05/07] standards/66357standards make POSIX conformance problem ('sh -e' & o [2004/05/11] standards/66531standards _gettemp uses a far smaller set of filena o [2004/08/22] standards/70813standards [PATCH] ls(1) not Posix compliant o [2004/09/22] standards/72006standards floating point formating in non-C locales o [2005/03/20] standards/79056standards regex(3) regression tests a [2005/04/23] standards/80293standards sysconf() does not support well-defined u o [2005/05/20] standards/81287standards [PATCH]: fingerd(8) might send a line not o [2005/07/21] standards/83845standards [libm] [patch] add log2() and log2f() sup o [2005/08/18] standards/85080standards output of long double subnormals (with pr o [2006/01/26] standards/92360standards [headers] [patch] Missing TAB3 in kernel o [2006/01/26] standards/92362standards [headers] [patch] Missing SIGPOLL in kern o [2006/02/22] kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS ( o [2006/04/18] standards/96016standards clock_getres et al should be in o [2006/04/23] standards/96236standards [PATCH] [POSIX] sed.1 incorrectly describ o [2006/06/27] standards/99517standards Missing SIGRTMIN and SIGRTMAX signals o [2006/07/08] standards/99926standards [Patch] [sh(1)'s jobs] POSIX compliancy b o [2006/07/09] standards/99960standards [Patch] [make] Add -p flag o [2006/07/10] standards/100017standards [Patch] Add fuser(1) functionality to fst 35 problems total. From owner-freebsd-standards@FreeBSD.ORG Thu Aug 3 19:47:56 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F17116A4DF; Thu, 3 Aug 2006 19:47:56 +0000 (UTC) (envelope-from mi+mx@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF42343D5C; Thu, 3 Aug 2006 19:47:47 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.7/8.13.7) with ESMTP id k73Jljnc001429 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 3 Aug 2006 15:47:47 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from [172.21.130.86] (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k73Jld5V067833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Aug 2006 15:47:40 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: standards@freebsd.org Date: Thu, 3 Aug 2006 15:47:34 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608031547.34386.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88/1634/Wed Aug 2 18:32:49 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: questions@freebsd.org Subject: conundrum: _C99_SOURCE vs. sigset X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 19:47:56 -0000 Hello! I'm trying to compile a program, which uses threads and has its own daemon global variable. The variable's declaration results in an error: recsnap.C:50: error: `RTRString daemon' redeclared as different kind of symbol /usr/include/stdlib.h:252: error: previous declaration of `int daemon(int, int)' The daemon()'s declaration in stdlib.h can be turned off by declaring either _C99_SOURCE or _ANSI_SOURCE. Unfortunately, both of these defines also turn off the declaration of sigset_t and fd_set: /usr/include/pthread.h:233: error: expected `,' or `...' before '*' token .../include/rtr/selectni.h:129: error: `fd_set' does not name a type Can this be solved -- without modifying the vendor's code? Thanks! -mi From owner-freebsd-standards@FreeBSD.ORG Thu Aug 3 22:18:08 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CDE516A4DE; Thu, 3 Aug 2006 22:18:08 +0000 (UTC) (envelope-from mi+mx@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43F2E43DC5; Thu, 3 Aug 2006 22:17:40 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.7/8.13.7) with ESMTP id k73MHY8s001818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 3 Aug 2006 18:17:35 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from [172.21.130.86] (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k73MHTaG069768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Aug 2006 18:17:29 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: Stefan Farfeleder Date: Thu, 3 Aug 2006 18:17:23 -0400 User-Agent: KMail/1.9.1 References: <200608031547.34386.mi+mx@aldan.algebra.com> <20060803213839.GH33267@wombat.fafoe.narf.at> In-Reply-To: <20060803213839.GH33267@wombat.fafoe.narf.at> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200608031817.23847.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88/1634/Wed Aug 2 18:32:49 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Cc: standards@freebsd.org, questions@freebsd.org Subject: Re: conundrum: _C99_SOURCE vs. sigset X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 22:18:08 -0000 03 2006 17:38, Stefan Farfeleder : > Try -D_POSIX_C_SOURCE=200112. Thanks, I will. > The macro _C99_SOURCE is for pure C99 code and _ANSI_SOURCE for C90 > code. Both don't include the header. They do -- it gets included from iostream, even when I define one of those. Thanks! -mi From owner-freebsd-standards@FreeBSD.ORG Fri Aug 4 06:38:34 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72C6816A4DA; Fri, 4 Aug 2006 06:38:34 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep13-int.chello.at (viefep13-int.chello.at [213.46.255.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA88F43D46; Fri, 4 Aug 2006 06:38:32 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at ([213.47.85.26]) by viefep13-int.chello.at (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060804063830.EYGM6897.viefep13-int.chello.at@wombat.fafoe.narf.at>; Fri, 4 Aug 2006 08:38:30 +0200 Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id DD063BC7E; Thu, 3 Aug 2006 23:38:39 +0200 (CEST) Date: Thu, 3 Aug 2006 23:38:39 +0200 From: Stefan Farfeleder To: Mikhail Teterin Message-ID: <20060803213839.GH33267@wombat.fafoe.narf.at> Mail-Followup-To: Mikhail Teterin , standards@freebsd.org, questions@freebsd.org References: <200608031547.34386.mi+mx@aldan.algebra.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608031547.34386.mi+mx@aldan.algebra.com> User-Agent: Mutt/1.5.12-2006-07-14 Cc: standards@freebsd.org, questions@freebsd.org Subject: Re: conundrum: _C99_SOURCE vs. sigset X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 06:38:34 -0000 On Thu, Aug 03, 2006 at 03:47:34PM -0400, Mikhail Teterin wrote: > Hello! > > I'm trying to compile a program, which uses threads and has its own daemon > global variable. > > The variable's declaration results in an error: > > recsnap.C:50: error: `RTRString daemon' redeclared as different kind of symbol > /usr/include/stdlib.h:252: error: previous declaration of `int daemon(int, > int)' > > The daemon()'s declaration in stdlib.h can be turned off by declaring either > _C99_SOURCE or _ANSI_SOURCE. Unfortunately, both of these defines also turn > off the declaration of sigset_t and fd_set: > > /usr/include/pthread.h:233: error: expected `,' or `...' before '*' token > .../include/rtr/selectni.h:129: error: `fd_set' does not name a type > > Can this be solved -- without modifying the vendor's code? Thanks! Try -D_POSIX_C_SOURCE=200112. The macro _C99_SOURCE is for pure C99 code and _ANSI_SOURCE for C90 code. Both don't include the header. Stefan From owner-freebsd-standards@FreeBSD.ORG Fri Aug 4 06:56:34 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AECEE16A4E5 for ; Fri, 4 Aug 2006 06:56:34 +0000 (UTC) (envelope-from stefan@fafoe.narf.at) Received: from viefep17-int.chello.at (viefep13-int.chello.at [213.46.255.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80DE843D49 for ; Fri, 4 Aug 2006 06:56:33 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at ([213.47.85.26]) by viefep17-int.chello.at (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060804065632.XQLX706.viefep17-int.chello.at@wombat.fafoe.narf.at>; Fri, 4 Aug 2006 08:56:32 +0200 Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 65906BC7E; Fri, 4 Aug 2006 08:56:30 +0200 (CEST) Date: Fri, 4 Aug 2006 08:56:30 +0200 From: Stefan Farfeleder To: Mikhail Teterin Message-ID: <20060804065629.GB89735@wombat.fafoe.narf.at> Mail-Followup-To: Mikhail Teterin , standards@freebsd.org References: <200608031547.34386.mi+mx@aldan.algebra.com> <20060803213839.GH33267@wombat.fafoe.narf.at> <200608031817.23847.mi+mx@aldan.algebra.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200608031817.23847.mi+mx@aldan.algebra.com> User-Agent: Mutt/1.5.12-2006-07-14 Cc: standards@freebsd.org Subject: Re: conundrum: _C99_SOURCE vs. sigset X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 06:56:34 -0000 On Thu, Aug 03, 2006 at 06:17:23PM -0400, Mikhail Teterin wrote: > четвер 03 серпень 2006 17:38, Stefan Farfeleder написав: > > Try -D_POSIX_C_SOURCE=200112. > > Thanks, I will. > > > The macro _C99_SOURCE is for pure C99 code and _ANSI_SOURCE for C90 > > code.  Both don't include the header. > > They do -- it gets included from iostream, even when I define one of those. No, what I meant was that isn't defined by neither C90 nor C99 but by POSIX. Defining _C99_SOURCE or _ANSI_SOURCE hides additional POSIX/BSD identifiers in shared headers which is a bad idea if you want to include ; as you've seen it leads to errors. Stefan From owner-freebsd-standards@FreeBSD.ORG Fri Aug 4 13:05:47 2006 Return-Path: X-Original-To: standards@freebsd.org Delivered-To: freebsd-standards@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6051F16A4DA for ; Fri, 4 Aug 2006 13:05:47 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0AD443D49 for ; Fri, 4 Aug 2006 13:05:46 +0000 (GMT) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan [127.0.0.1]) by aldan.algebra.com (8.13.7/8.13.7) with ESMTP id k74D5hBS005949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Aug 2006 09:05:43 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.13.7/8.13.7/Submit) id k74D5hpG005948; Fri, 4 Aug 2006 09:05:43 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: Stefan Farfeleder Date: Fri, 4 Aug 2006 09:05:42 -0400 User-Agent: KMail/1.9.1 References: <200608031547.34386.mi+mx@aldan.algebra.com> <200608031817.23847.mi+mx@aldan.algebra.com> <20060804065629.GB89735@wombat.fafoe.narf.at> In-Reply-To: <20060804065629.GB89735@wombat.fafoe.narf.at> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: standards@freebsd.org Subject: Re: conundrum: _C99_SOURCE vs. sigset X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 13:05:47 -0000 On Friday 04 August 2006 02:56, Stefan Farfeleder wrote: = > > The macro _C99_SOURCE is for pure C99 code and _ANSI_SOURCE for C90 = > > code. Both don't include the header. = > = > They do -- it gets included from iostream, even when I define one of = > those. = = No, what I meant was that isn't defined by neither C90 nor = C99 but by POSIX. Defining _C99_SOURCE or _ANSI_SOURCE hides additional = POSIX/BSD identifiers in shared headers which is a bad idea if you want = to include ; as you've seen it leads to errors. I don't, actually, include pthread.h. iostream does -- that's the problem :-( Thanks! -mi