Debian Bug report logs - #439859
/usr/include/sys/sysmacros.h defines "major", "minor" and "makedev" as macros

version graph

Package: libc6-dev; Maintainer for libc6-dev is GNU Libc Maintainers <debian-glibc@lists.debian.org>; Source for libc6-dev is src:glibc (PTS, buildd, popcon).

Reported by: Simon Richter <sjr@debian.org>

Date: Mon, 27 Aug 2007 23:06:01 UTC

Severity: normal

Tags: pending, wontfix

Found in versions glibc/2.6.1-5, glibc/2.6.1-1, glibc/2.6.1-3

Done: James Vega <jamessan@debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, sjr@debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#439859; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Simon Richter <sjr@debian.org>:
New Bug report received and forwarded. Copy sent to sjr@debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Simon Richter <sjr@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /usr/include/sys/sysmacros.h defines "major", "minor" and "makedev" as macros
Date: Tue, 28 Aug 2007 01:02:54 +0200
Package: libc6-dev
Version: 2.6.1-1+b1
Severity: normal

Hi,

these names are defined as macros, making software that uses one of them
as an identifier miscompile (if the definition is seen everywhere, the
list of exported symbols changes in an incompatible way) or break (if
the definition is not seen everywhere, for example because only the
implementation of a function needs them).

It is specifically a problem with orbit2cpp; CORBA::Exception has member
functions "major" and "minor" describing the exception; with these
definitions in effect, compilation of functions accessing these fails
with

error: `class CORBA::SystemException' has no member named
`gnu_dev_minor'

This can be worked around to some extent by undefining the macros,
however that breaks if some implementation of an interface needs them.

   Simon

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6-dev depends on:
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
ii  linux-libc-dev                2.6.22-3   Linux Kernel Headers for developme

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]              4:4.1.2-7  The GNU C compiler
ii  gcc-4.1 [c-compiler]          4.1.2-15   The GNU C compiler
ii  gcc-4.2 [c-compiler]          4.2.1-4    The GNU C compiler

-- no debconf information



Tags added: pending Request was from Aurelien Jarno <aurel32@alioth.debian.org> to control@bugs.debian.org. (Sun, 09 Sep 2007 18:12:02 GMT) (full text, mbox, link).


Reply sent to Aurelien Jarno <aurel32@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Simon Richter <sjr@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #12 received at 439859-close@bugs.debian.org (full text, mbox, reply):

From: Aurelien Jarno <aurel32@debian.org>
To: 439859-close@bugs.debian.org
Subject: Bug#439859: fixed in glibc 2.6.1-3
Date: Tue, 11 Sep 2007 05:03:23 +0000
Source: glibc
Source-Version: 2.6.1-3

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

glibc-doc_2.6.1-3_all.deb
  to pool/main/g/glibc/glibc-doc_2.6.1-3_all.deb
glibc_2.6.1-3.diff.gz
  to pool/main/g/glibc/glibc_2.6.1-3.diff.gz
glibc_2.6.1-3.dsc
  to pool/main/g/glibc/glibc_2.6.1-3.dsc
libc6-dbg_2.6.1-3_amd64.deb
  to pool/main/g/glibc/libc6-dbg_2.6.1-3_amd64.deb
libc6-dev-i386_2.6.1-3_amd64.deb
  to pool/main/g/glibc/libc6-dev-i386_2.6.1-3_amd64.deb
libc6-dev_2.6.1-3_amd64.deb
  to pool/main/g/glibc/libc6-dev_2.6.1-3_amd64.deb
libc6-i386_2.6.1-3_amd64.deb
  to pool/main/g/glibc/libc6-i386_2.6.1-3_amd64.deb
libc6-pic_2.6.1-3_amd64.deb
  to pool/main/g/glibc/libc6-pic_2.6.1-3_amd64.deb
libc6-prof_2.6.1-3_amd64.deb
  to pool/main/g/glibc/libc6-prof_2.6.1-3_amd64.deb
libc6-udeb_2.6.1-3_amd64.udeb
  to pool/main/g/glibc/libc6-udeb_2.6.1-3_amd64.udeb
libc6_2.6.1-3_amd64.deb
  to pool/main/g/glibc/libc6_2.6.1-3_amd64.deb
libnss-dns-udeb_2.6.1-3_amd64.udeb
  to pool/main/g/glibc/libnss-dns-udeb_2.6.1-3_amd64.udeb
libnss-files-udeb_2.6.1-3_amd64.udeb
  to pool/main/g/glibc/libnss-files-udeb_2.6.1-3_amd64.udeb
locales-all_2.6.1-3_amd64.deb
  to pool/main/g/glibc/locales-all_2.6.1-3_amd64.deb
locales_2.6.1-3_all.deb
  to pool/main/g/glibc/locales_2.6.1-3_all.deb
nscd_2.6.1-3_amd64.deb
  to pool/main/g/glibc/nscd_2.6.1-3_amd64.deb



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

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

Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated glibc 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)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 11 Sep 2007 04:42:20 +0200
Source: glibc
Binary: libc0.1-prof libc6-dev-amd64 locales-all libc6-i686 libc6-dev-ppc64 libc0.3-pic glibc-doc libc0.3 libc6-dev-mipsn32 libc0.1-i686 libc0.1-i386 libc6-mips64 libc6.1-dev libc6-s390x libnss-files-udeb libc0.1-dev-i386 libc6-dev-sparc64 libc6-i386 libc0.3-dev libc6-udeb libc6-dbg libc6.1-pic libc6-dev libc0.3-prof libc0.1-udeb libc6-dev-i386 libc6.1-prof libc6-mipsn32 libc0.1-dev locales libc6-pic libc0.3-udeb libc6-dev-powerpc libc0.1-pic libc6-ppc64 libc0.3-dbg libc0.1-dbg libc6-amd64 libc0.1 libc6-prof libc6-xen libc6-dev-mips64 libc6-powerpc libc6 libc6-sparcv9b libc6.1-udeb libc6.1-dbg nscd libc6-sparc64 libnss-dns-udeb libc6.1 libc6-dev-s390x
Architecture: source amd64 all
Version: 2.6.1-3
Distribution: unstable
Urgency: low
Maintainer: Aurelien Jarno <aurel32@debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description: 
 glibc-doc  - GNU C Library: Documentation
 libc6      - GNU C Library: Shared libraries
 libc6-dbg  - GNU C Library: Libraries with debugging symbols
 libc6-dev  - GNU C Library: Development Libraries and Header Files
 libc6-dev-i386 - GNU C Library: 32bit development libraries for AMD64
 libc6-i386 - GNU C Library: 32bit shared libraries for AMD64
 libc6-pic  - GNU C Library: PIC archive library
 libc6-prof - GNU C Library: Profiling Libraries
 libc6-udeb - GNU C Library: Shared libraries - udeb (udeb)
 libnss-dns-udeb - GNU C Library: NSS helper for DNS - udeb (udeb)
 libnss-files-udeb - GNU C Library: NSS helper for files - udeb (udeb)
 locales    - GNU C Library: National Language (locale) data [support]
 locales-all - GNU C Library: Precompiled locale data
 nscd       - GNU C Library: Name Service Cache Daemon
Closes: 338504 404433 433723 439859 440964 441026 441360
Changes: 
 glibc (2.6.1-3) unstable; urgency=low
 .
   * sysdeps/amd64.mk: uses x86_64 headers also for the i486 flavour now
     that they are compatible.
   * sysdeps/i386.mk: uses x86_64 headers also for the main flavour.
   * debian/local/etc_default/locale: remove.  Closes: bug#441360.
   * sysdeps/*.mk: don't provide include symlink for bi-arch, but only
     an empty directory.
   * debian/rules.d/debhelper.mk: modify nscd/DEBIAN/control during build
     to workaround a dpkg-shlibdeps bug.  Closes: bug#433723.
   * debian/local/manpages/nscd.conf.5: document the persistent and shared
     cache options.  Closes: bug#338504.
   * patches/all/local-alias-UTF-8.diff: encode locales.alias in UTF-8.
     Closes: bug#404433.
   * debhelper.in/locales.links, debhelper.in/locales.install: move
     locales.alias into /etc and provide a symlink in
     /usr/share/locale/locale.alias.
   * patches/localedata/tailor-iso14651_t1.diff: fix fi_FI locale.  Closes:
     bug#441026.
   * kfreebsd/local-sysdeps.diff: update to revision 1998 (from glibc-bsd).
   * sysdeps/kfreebsd-amd64.mk: uses x86_64 headers also for the i486 flavour
     now that they are compatible.
   * any/local-sysmacros.diff: new patch to declare "major", "minor" and
     "makedev" as inline function instead of macros.  Closes: #439859.
   * debhelper.in/libc.postinst, debhelper.in/libc.templates: prompt user
     with debconf if it is available.  Closes: #440964.
   * debian/control.in/libc: suggests debconf | debconf-2.0.
   * Update Brazilian Portuguese debconf translation, by Felipe Augusto van de
     Wiel.
   * Update Vietnamese debconf translation, by Clytie Siddall.
   * Update Basque debconf translation, by Piarres Beobide.
   * Update Swedish debconf translation, by Daniel Nylander.
   * Update Slovak debconf translation, by Ivan Masár.
   * Update Lithuanian debconf translation, by Gintautas Miliauskas.
   * Update Russian debconf translation, by Sergey Alyoshin.
Files: 
 462e7308f70b655a026e94778e91aff0 2059 libs required glibc_2.6.1-3.dsc
 9a2f0107658e28312902e4a52ca5a0fb 678025 libs required glibc_2.6.1-3.diff.gz
 0a18068bb1fd70ac80194e46feaf8883 1596494 doc optional glibc-doc_2.6.1-3_all.deb
 249eca6edbb926ce23d8cb45fc77860a 4399042 libs standard locales_2.6.1-3_all.deb
 6c8a026bfb5b8ff5eb3d5e14ec5fe1d3 4915416 libs required libc6_2.6.1-3_amd64.deb
 02939655f435da97506978eef14ae318 2494460 libdevel optional libc6-dev_2.6.1-3_amd64.deb
 2719f3169969331f4ff33f30c8c25107 1930950 libdevel extra libc6-prof_2.6.1-3_amd64.deb
 c3ff66938b418db4a955e5662ba057d4 1466032 libdevel optional libc6-pic_2.6.1-3_amd64.deb
 bf05d9437611917743d1d29cb880173a 2504930 libs extra locales-all_2.6.1-3_amd64.deb
 9902456286c4945149364841ae2d3610 3705866 libs optional libc6-i386_2.6.1-3_amd64.deb
 93dcb04abea24a9a8cfa1421dc6e2f83 1403656 libdevel optional libc6-dev-i386_2.6.1-3_amd64.deb
 ff90d606d01afaac8f944c5432b6e740 165038 admin optional nscd_2.6.1-3_amd64.deb
 d58395ee690ed20ee17f769cf7690947 5229436 libdevel extra libc6-dbg_2.6.1-3_amd64.deb
 5fd86a04367a6100b2840c27d19a1e19 1111784 debian-installer extra libc6-udeb_2.6.1-3_amd64.udeb
 b7e405b7287ac727c04ac49d1dc94064 9744 debian-installer extra libnss-dns-udeb_2.6.1-3_amd64.udeb
 e7b90d08af63434bec4ecba68f5f6f99 17870 debian-installer extra libnss-files-udeb_2.6.1-3_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG5hzaw3ao2vG823MRAhRrAJwJsy15bougx8u1a3WXd8aOHbIzsACfZt+N
sfTOqtzDVwNQMhTGuottB2c=
=PE4N
-----END PGP SIGNATURE-----





Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#439859; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Simon Richter <sjr@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #17 received at 439859@bugs.debian.org (full text, mbox, reply):

From: Simon Richter <sjr@debian.org>
To: 439859@bugs.debian.org
Subject: Re: Bug#439859 closed by Aurelien Jarno <aurel32@debian.org> (Bug#439859: fixed in glibc 2.6.1-3)
Date: Tue, 11 Sep 2007 16:01:05 +0200
Hi,

>    * any/local-sysmacros.diff: new patch to declare "major", "minor" and
>      "makedev" as inline function instead of macros.  Closes: #439859.

Cool, thanks a lot!

   Simon




Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#439859; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to "J.H.M. Dassen (Ray)" <fsmla@xinara.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #22 received at 439859@bugs.debian.org (full text, mbox, reply):

From: "J.H.M. Dassen (Ray)" <fsmla@xinara.org>
To: 439859@bugs.debian.org
Subject: Change to inline breaks existing code
Date: Wed, 12 Sep 2007 23:41:49 +0200
Consider the following case (simplified from a configure test of
experimental's goffice package):

conftest.c:
	#include <sys/types.h>
	#include <sys/stat.h>

Compile with
	gcc -c -ansi -D_BSD_SOURCE  conftest.c

Result with libc6-dev 2.6.1-3:
	In file included from /usr/include/sys/types.h:223,
			 from conftest.c:1:
	/usr/include/sys/sysmacros.h:65: error: expected '=', ',', ';', 'asm' or
	'__attribute__' before 'unsigned'
	/usr/include/sys/sysmacros.h:71: error: expected '=', ',', ';', 'asm' or
	'__attribute__' before 'unsigned'
	/usr/include/sys/sysmacros.h:77: error: expected '=', ',', ';', 'asm' or
	'__attribute__' before 'unsigned'

This can (and IMHO should) be fixed by declaring the functions "__inline__"
rather than plain "inline". (See gcc's documentation of the -ansi switch for
details).

Greetings,
Ray
-- 
Would you rather be root or reboot?




Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#439859; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to "Ari Pollak" <ari@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #27 received at 439859@bugs.debian.org (full text, mbox, reply):

From: "Ari Pollak" <ari@debian.org>
To: 439859@bugs.debian.org
Date: Sat, 15 Sep 2007 13:21:51 -0400 (EDT)
This still seems to be present with libc6-dev 2.6.1-3 when compiling gimp:

/usr/src/debian/work/build-area/gimp-2.4.0~rc2/./plug-ins/common/psp.c:316:
error: ‘major’ redeclared as different kind of symbol
/usr/include/sys/sysmacros.h:67: error: previous definition of ‘major’ was
here
/usr/src/debian/work/build-area/gimp-2.4.0~rc2/./plug-ins/common/psp.c:316:
error: ‘minor’ redeclared as different kind of symbol
/usr/include/sys/sysmacros.h:73: error: previous definition of ‘minor’ was
here


And the line that triggers the problem in psp.c:
static guint16 major, minor;






Bug reopened, originator not changed. Request was from Ari Pollak <ari@debian.org> to control@bugs.debian.org. (Sat, 15 Sep 2007 17:27:04 GMT) (full text, mbox, link).


Bug marked as found in version 2.6.1-3. Request was from Ari Pollak <ari@debian.org> to control@bugs.debian.org. (Sat, 15 Sep 2007 17:27:05 GMT) (full text, mbox, link).


Reply sent to Pierre Habouzit <madcoder@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Simon Richter <sjr@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #36 received at 439859-done@bugs.debian.org (full text, mbox, reply):

From: Pierre Habouzit <madcoder@debian.org>
To: 439859-done@bugs.debian.org
Cc: Ari Pollak <ari@debian.org>
Subject: Re: Processed: reopening 439859, found 439859 in 2.6.1-3
Date: Sat, 15 Sep 2007 20:25:17 +0200
[Message part 1 (text/plain, inline)]
Version: 2.6.1-4

  Sorry but in my version here, those are not macros ... And I'm pretty
sure it was fixed in -3 already

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
[Message part 2 (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 06 Dec 2007 07:27:29 GMT) (full text, mbox, link).


Bug unarchived. Request was from James Vega <jamessan@debian.org> to control@bugs.debian.org. (Tue, 16 Sep 2008 19:51:18 GMT) (full text, mbox, link).


Tags added: wontfix Request was from James Vega <jamessan@debian.org> to control@bugs.debian.org. (Tue, 16 Sep 2008 19:51:19 GMT) (full text, mbox, link).


Bug marked as found in version 2.6.1-5 and reopened. Request was from James Vega <jamessan@debian.org> to control@bugs.debian.org. (Tue, 16 Sep 2008 19:51:20 GMT) (full text, mbox, link).


Bug closed, send any further explanations to Simon Richter <sjr@debian.org> Request was from James Vega <jamessan@debian.org> to control@bugs.debian.org. (Tue, 16 Sep 2008 19:51:22 GMT) (full text, mbox, link).


Information stored:
Bug#439859; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to James Vega <jamessan@debian.org>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #51 received at 439859-quiet@bugs.debian.org (full text, mbox, reply):

From: James Vega <jamessan@debian.org>
To: 439859-quiet@bugs.debian.org
Subject: Providing a pointer to wontfix reasoning
Date: Tue, 16 Sep 2008 16:14:53 -0400
This bug was unfixed in 2.6.1-5 due to #442427




Tags added: pending Request was from Aurelien Jarno <aurel32@alioth.debian.org> to control@bugs.debian.org. (Tue, 05 May 2009 06:15:08 GMT) (full text, mbox, link).


No longer marked as fixed in versions 2.6.1-4. Request was from Andreas Beckmann <anbe@debian.org> to control@bugs.debian.org. (Sat, 02 Nov 2013 15:57:50 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 01 Dec 2013 07:38:24 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:33:45 2026; Machine Name: berlioz

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.