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

Bug#34690: marked as done (glibc2.1 header bug)



Your message dated Tue, 21 Sep 1999 21:29:24 -0700
with message-id <v04205517b40e0b78103a@[206.163.71.146]>
and subject line Bug#34690: glibc2.1 header bug
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.)

Darren Benham
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Mar 1999 01:57:37 +0000
Received: (qmail 994 invoked from network); 17 Mar 1999 01:57:36 -0000
Received: from bambuca.cs.wustl.edu (128.252.165.209)
  by master.debian.org with SMTP; 17 Mar 1999 01:57:36 -0000
Received: from othman by bambuca.cs.wustl.edu with local (Exim 2.11 #1 (Debian))
	id 10N5aF-0001Mq-00; Tue, 16 Mar 1999 19:57:23 -0600
From: Ossama Othman <othman@cs.wustl.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date: Tue, 16 Mar 1999 19:57:22 -0600 (CST)
To: submit@bugs.debian.org
Subject: glibc2.1 header bug
X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs  Lucid
Message-ID: <14063.2199.926087.18231@bambuca.cs.wustl.edu>

Package: libc6-dev
Version: 2.1.1-0pre1.3

Hi,

Yet another glibc2.1 problem/bug. :)

The macro "NGREG" (the number of general registers) is defined in both 
`/usr/include/sys/ucontext.h' and `/usr/include/sys/elf.h'.  Also, a
bunch of related "greg" typedefs are also defined in both headers.
Including both of these headers causes "previously defined here"
compile time errors.  For example, I #included <sys/ucontext.h> and
<sys/procfs.h> (which #includes <sys/elf.h>) in the same source file
and got several "previously defined" errors for the NGREG macro.

I tend to think that the NGREG in <sys/elf.h> is the more "correct"
#define since it actually uses sizeof on the general register
structure rather than some "magic" number, 19 in this case.  I'd
suggest placing "#ifndef NGREG" guards around each of #define NGREG
declarations.  Contacting the upstream authors is also in order.  I'm
not sure about the typedefs.

Error Output:
c++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -Wall -Wpointer-arith -fno-implicit-templates -I/usr/X11R6/include -g -O2 -pthread -pipe -O3 -I. -I. -I. -I. -Wp,-MD,.deps/ACE.pp -c  -fPIC -DPIC ACE.cpp -o ACE.lo
In file included from /usr/include/ucontext.h:27,
                 from ../ace/OS.h:3410,
                 from ../ace/ACE.h:18,
                 from ACE.cpp:4:
/usr/include/sys/ucontext.h:34: warning: `NGREG' redefined
/usr/include/sys/procfs.h:46: warning: this is the location of the previous definition
In file included from /usr/include/ucontext.h:27,
                 from ../ace/OS.h:3410,
                 from ../ace/ACE.h:18,
                 from ACE.cpp:4:
/usr/include/sys/ucontext.h:31: conflicting types for `typedef int greg_t'
/usr/include/sys/procfs.h:43: previous declaration as `typedef elf_greg_t greg_t'
/usr/include/sys/ucontext.h:37: conflicting types for `typedef int gregset_t[19]'
/usr/include/sys/procfs.h:44: previous declaration as `typedef long unsigned int gregset_t[17]'
/usr/include/sys/ucontext.h:83: conflicting types for `typedef struct _fpstate * fpregset_t'
/usr/include/sys/procfs.h:45: previous declaration as `typedef struct elf_fpregset_t fpregset_t'



Thanks,
-Ossama
______________________________________________________________________
Ossama Othman <othman@cs.wustl.edu>
58 60 1A E8 7A 66 F4 44  74 9F 3C D4 EF BF 35 88  1024/8A04D15D 1998/08/26
---------------------------------------
Received: (at 34690-done) by bugs.debian.org; 23 Sep 1999 02:47:15 +0000
Received: (qmail 30791 invoked from network); 23 Sep 1999 02:47:15 -0000
Received: from cerberus.espy.org (mail@206.163.71.145)
  by master.debian.org with SMTP; 23 Sep 1999 02:47:15 -0000
Received: from hercules.espy.org [206.163.71.146] 
	by cerberus.espy.org with esmtp (Exim 3.03 #1 (Debian GNU/Linux))
	id 11Tynr-00081S-01; Wed, 22 Sep 1999 19:40:11 -0700
Mime-Version: 1.0
X-Sender: jk@mail.espy.org
Message-Id: <v04205517b40e0b78103a@[206.163.71.146]>
Date: Tue, 21 Sep 1999 21:29:24 -0700
To: 34690-done@bugs.debian.org
From: Joel Klecker <jk@espy.org>
Subject: Re: Bug#34690: glibc2.1 header bug
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

This was fixed upstream.
-- 
Joel Klecker (aka Espy)       <URL:mailto:espy@debian.org>
Debian Package Maintainer for the GNU C Library.


Reply to: