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

Bug#61149: marked as done (Conflict in L_* macros between sfio and stdio)

Your message dated Thu, 11 Apr 2002 14:01:00 -0400
with message-id <E16visW-0005mu-00@auric.debian.org>
and subject line Bug#61149: fixed in sfio 2000-1
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; 27 Mar 2000 07:21:47 +0000
Received: (qmail 16302 invoked from network); 27 Mar 2000 07:21:47 -0000
Received: from c454468-a.frmt1.sfba.home.com (HELO tytlal.z.streaker.org) (mail@
  by master.debian.org with SMTP; 27 Mar 2000 07:21:47 -0000
Received: from chip by tytlal.z.streaker.org with local (Exim 3.12 #1 (Debian))
	id 12ZTqN-0000oB-00
	for <submit@bugs.debian.org>; Sun, 26 Mar 2000 23:21:47 -0800
Date: Sun, 26 Mar 2000 23:21:47 -0800
From: Chip Salzenberg <chip@valinux.com>
To: submit@bugs.debian.org
Subject: Conflict in L_* macros between sfio and stdio
Message-ID: <20000326232147.A12197@perlsupport.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.1.9i
Sender: Chip Salzenberg <chip@perlsupport.com>

Package: sfio-dev
Version: 1999-3

Among other useful things, /usr/include/sfio/stdio.h defines some
limit macros: L_cuserid, L_ctermid, and L_tmpnam.  However, if a
program that has included <sfio/stdio.h> later includes <limits.h>,
that leads to inclusion of <bits/xopen_lim.h>, which then includes
<bits/stdio_lim.h>, which redefines L_tmpnam differently from sfio.

In any case, since sfio as built for Debian doesn't have its own
tmpnam function, it shouldn't be using a different L_tmpnam definition
from the one in <bits/stdio_lim.h>.

Suggested solution:

Since we know that Debian is using glibc, portability to non-glibc
targets isn't our concern.  I suggest the following patch:

--- stdio.h.distrib	Mon Dec 13 23:34:16 1999
+++ stdio.h	Sun Mar 26 23:18:48 2000
@@ -11,11 +11,23 @@
 #include		<sfio.h>
+#if defined __USE_SVID || defined __USE_XOPEN
+/* Default path prefix for `tempnam' and `tmpnam'.  */
+# define P_tmpdir	"/tmp"
+/* Get the values:
+   L_tmpnam	How long an array of chars must be to be passed to `tmpnam'.
+   TMP_MAX	The minimum number of unique filenames generated by tmpnam
+   		(and tempnam when it uses tmpnam's name space),
+		or tempnam (the two are separate).
+   L_ctermid	How long an array to pass to `ctermid'.
+   L_cuserid	How long an array to pass to `cuserid'.
+   FOPEN_MAX	Minimum number of files that can be open at once.
+   FILENAME_MAX	Maximum length of a filename.  */
+#include <bits/stdio_lim.h>
 #define _IOFBF		0
 #define _IONBF		1
 #define _IOLBF		2
-#define L_ctermid	32
-#define L_cuserid	32
-#define P_tmpdir	"/tmp/"
-#define L_tmpnam	(sizeof(P_tmpdir)+32)
 #define fpos_t		Sfoff_t

Chip Salzenberg              - a.k.a. -              <chip@valinux.com>
"I wanted to play hopscotch with the impenetrable mystery of existence,
    but he stepped in a wormhole and had to go in early."  // MST3K
Received: (at 61149-close) by bugs.debian.org; 11 Apr 2002 18:09:31 +0000
>From katie@auric.debian.org Thu Apr 11 13:09:31 2002
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16vj0l-0007jI-00; Thu, 11 Apr 2002 13:09:31 -0500
Received: from katie by auric.debian.org with local (Exim 3.12 1 (Debian))
	id 16visW-0005mu-00; Thu, 11 Apr 2002 14:01:00 -0400
From: Stephen Zander <gibreel@debian.org>
To: 61149-close@bugs.debian.org
X-Katie: $Revision: 1.5 $
Subject: Bug#61149: fixed in sfio 2000-1
Message-Id: <E16visW-0005mu-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Thu, 11 Apr 2002 14:01:00 -0400
Delivered-To: 61149-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
sfio, which is due to be installed in the Debian FTP archive:

  to pool/main/s/sfio/sfio-dev_2000-1_i386.deb
  to pool/main/s/sfio/sfio1999_2000-1_i386.deb
  to pool/main/s/sfio/sfio2000_2000-1_i386.deb
  to pool/main/s/sfio/sfio_2000-1.diff.gz
  to pool/main/s/sfio/sfio_2000-1.dsc
  to pool/main/s/sfio/sfio_2000.orig.tar.gz

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 61149@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Stephen Zander <gibreel@debian.org> (supplier of updated sfio package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


Format: 1.7
Date: Sun, 31 Mar 2002 21:12:36 -0800
Source: sfio
Binary: sfio1999 sfio-dev sfio2000
Architecture: source i386
Version: 2000-1
Distribution: unstable
Urgency: low
Maintainer: Stephen Zander <gibreel@debian.org>
Changed-By: Stephen Zander <gibreel@debian.org>
 sfio-dev   - Enhanced library for managing I/O streams (development).
 sfio1999   - Enhanced library for managing I/O streams.
 sfio2000   - Enhanced library for managing I/O streams.
Closes: 61149 123521
 sfio (2000-1) unstable; urgency=low
   * New upstream source.
   * Include bits/stdio_lim.h in sfio/stdio.h to prevent conflicts between
     various L_* macros,
   Closes: #61149
   * New maintainer,
   Closes: 123521
 9680b8e9d9c62ecc846c209c7eb04bdb 723 - optional sfio_2000-1.dsc
 947763fbba34cc2de16e226f6be0eda6 377458 - optional sfio_2000.orig.tar.gz
 95de261b78f94e25efd3887736b4beeb 21835 - optional sfio_2000-1.diff.gz
 06114e92f132a5d177ae5be6eaf95bdb 115528 libs optional sfio2000_2000-1_i386.deb
 e2e9e60fdc25847d63ae9622330bef79 172998 devel optional sfio-dev_2000-1_i386.deb
 d66bc6e6827e3f2ed14c57bd0fe226f1 56784 oldlibs optional sfio1999_2000-1_i386.deb

Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org


To UNSUBSCRIBE, email to debian-qa-packages-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: