Bug#583433: libc6-dev: bassackwards tests for ARG_MAX in sys/param.h
Package: libc6-dev
Version: 2.10.2-9
Severity: normal
Tags: squeeze upstream
Here's the beginning of /usr/include/sys/param.h:
#ifndef ARG_MAX
# define __undef_ARG_MAX
#endif
#include <limits.h>
#include <linux/limits.h>
#include <linux/param.h>
/* The kernel headers defines ARG_MAX. The value is wrong, though. */
#ifndef __undef_ARG_MAX
# undef ARG_MAX
# undef __undef_ARG_MAX
#endif
The line just below the comment should be #ifdef and not #ifndef. See also
/usr/include/bits/local_lim.h where the same mechanism is used (correctly).
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.33.5-core2-i (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc6-dev depends on:
ii libc-dev-bin 2.10.2-9 Embedded GNU C Library: Developmen
ii libc6 2.10.2-9 Embedded GNU C Library: Shared lib
ii linux-libc-dev 2.6.32-9 Linux support headers for userspac
Versions of packages libc6-dev recommends:
ii gcc [c-compiler] 4:4.4.3-1 The GNU C compiler
ii gcc-4.4 [c-compiler] 4.4.4-1 The GNU C compiler
Versions of packages libc6-dev suggests:
ii glibc-doc 2.10.2-9 Embedded GNU C Library: Documentat
ii manpages-dev 3.24-1 Manual pages about using GNU/Linux
-- no debconf information
Reply to: