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

Bug#136962: marked as done (libc6-dev: mismatch between _POSIX_TZNAME_MAX and sysconf(_SC_TZNAME_MAX))



Your message dated Fri, 02 Jul 2004 20:38:10 +0900
with message-id <81y8m2iqql.wl@omega.webmasters.gr.jp>
and subject line libc6-dev: mismatch between _POSIX_TZNAME_MAX and sysconf(_SC_TZNAME_MAX)
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Mar 2002 16:56:32 +0000
>From joey@silk.kitenet.net Tue Mar 05 10:56:31 2002
Return-path: <joey@silk.kitenet.net>
Received: from as5800-82-75.access.naxs.com (silk.kitenet.net) [216.98.82.75] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16iIEp-0006O4-00; Tue, 05 Mar 2002 10:56:31 -0600
Received: from joey by silk.kitenet.net with local (Exim 3.34 #1 (Debian))
	id 16iIHY-0003My-00; Tue, 05 Mar 2002 11:59:20 -0500
From: Joey Hess <joeyh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libc6-dev: mismatch between _POSIX_TZNAME_MAX and sysconf(_SC_TZNAME_MAX)
X-Mailer: reportbug 1.44
Date: Tue, 05 Mar 2002 11:59:19 -0500
Message-Id: <E16iIHY-0003My-00@silk.kitenet.net>
Sender: Joey Hess <joey@silk.kitenet.net>
Delivered-To: submit@bugs.debian.org

Package: libc6-dev
Version: 2.2.5-3
Severity: normal

The LSB (well, POSIX) test suite gets its panties in a knot over the
differing values of _POSIX_TZNAME_MAX (6) and sysconf(_SC_TZNAME_MAX)
(which is 3 at least if you run it in a program that hasn't done
anything to cause glibc to change the max). It seems that posix requires
the the sysconf call return a value that is >= _POSIX_TZNAME_MAX.

Given the way glibc changes the later on the fly I can't tell what a
good fix would be, either changing the default value returned by the
sysconf to 6, or changing _POSIX_TZNAME_MAX to 3.

This problem is not debian specific.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux silk 2.4.18 #1 Tue Feb 26 00:23:37 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6-dev depends on:
ii  libc6                         2.2.5-3    GNU C Library: Shared libraries an


---------------------------------------
Received: (at 136962-done) by bugs.debian.org; 2 Jul 2004 11:38:12 +0000
>From gotom@debian.or.jp Fri Jul 02 04:38:12 2004
Return-path: <gotom@debian.or.jp>
Received: from omega.webmasters.gr.jp (webmasters.gr.jp) [218.44.239.78] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BgMMu-0007zB-00; Fri, 02 Jul 2004 04:38:12 -0700
Received: from omega.webmasters.gr.jp (localhost [127.0.0.1])
	by webmasters.gr.jp (Postfix) with ESMTP id 65629DEB80
	for <136962-done@bugs.debian.org>; Fri,  2 Jul 2004 20:38:10 +0900 (JST)
Date: Fri, 02 Jul 2004 20:38:10 +0900
Message-ID: <81y8m2iqql.wl@omega.webmasters.gr.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: 136962-done@bugs.debian.org
Subject: Re: libc6-dev: mismatch between _POSIX_TZNAME_MAX and sysconf(_SC_TZNAME_MAX)
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: 136962-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

This bug has been fixed in the latest glibc 2.3.2.ds-13.  I close this
bug.

	gotom@moog:~/debian/glibc/bugs/136962> cat test.c
	#include <unistd.h>
	#include <stdio.h>
	#include <bits/posix1_lim.h>
	
	int main(void)
	{
	        int ret;
	
	        ret = sysconf(_SC_TZNAME_MAX);
	        printf("%d %d\n", ret, _POSIX_TZNAME_MAX);
	        return 0;
	}
	
	gotom@moog:~/debian/glibc/bugs/136962> gcc -o test test.c
	gotom@moog:~/debian/glibc/bugs/136962> ./test
	6 6

Regards,
-- gotom



Reply to: