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

Bug#522773: linux-libc-dev: uses "__unused" as identifier, which is traditionally used by BSD as macro



Package: linux-libc-dev
Version: 2.6.29-2
Severity: wishlist

(mass filing with linux-libc-dev and libc6-dev)

/usr/include/asm/stat.h:        long            __unused[3];
/usr/include/linux/icmp.h:              __be16  __unused;
/usr/include/linux/sysctl.h:    unsigned long __unused[4];

These conflict with the traditional use of __unused by the BSDs, which
predates use of __unused as identifier by Linux and glibc headers.

For example, the Debian package libbsd-dev includes the following code:

#ifndef __unused
# ifdef __GNUC__
#  define __unused __attribute__((unused))
# else
#  define __unused
# endif
#endif

It however was ifdef’d out due to this problem. A personal package of
mine, mirmake, fails to build on more recent Debian systems because it
does _not_ ifdef it out, since otherwise, some BSD software cannot be
compiled (without extra patches).

Please file this bug with your respective upstreams *and* patch the
header files in question yourselves, to bridge over the response time
waiting for upstream to fix it.

Thanks!

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/mksh

-- no debconf information



Reply to: