Bug#442427: Changes to sysmacros.h cause FTBFS in previously good software
Package: libc6-dev
Version: 2.6.1-4
Severity: grave
After the changes in -3 to sysmacros.h to fix #439859, software that
defined a major or minor variable now breaks, whereas it used to compile
fine. I have not heard a valid rationale for breaking things resulting
from that patch. gimp currently fails to build with the following:
cc -DHAVE_CONFIG_H -I. -I/usr/src/debian/work/build-area/gimp-2.4.0~rc2/./plug-ins/common -I../.. -I/usr/src/debian/work/build-area/gimp-2.4.0~rc2/. -DPNG_NO_MMX_CODE -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include -DGIMP_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -Wall -O2 -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -c /usr/src/debian/work/build-area/gimp-2.4.0~rc2/./plug-ins/common/psp.c
/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
make: *** [psp.o] Error 1
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libc6-dev depends on:
ii libc6 2.6.1-4 GNU C Library: Shared libraries
ii linux-libc-dev 2.6.22-4 Linux Kernel Headers for developme
Versions of packages libc6-dev recommends:
ii gcc [c-compiler] 4:4.2.1-6 The GNU C compiler
ii gcc-3.4 [c-compiler] 3.4.6-6 The GNU C compiler
ii gcc-4.1 [c-compiler] 4.1.2-16 The GNU C compiler
ii gcc-4.2 [c-compiler] 4.2.1-5 The GNU C compiler
-- no debconf information
Reply to: