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

Bug#639213: Uses #if on an undefined preprocessor symbol, should use defined()



Package: libc6-dev
Version: 2.13-18
Severity: normal
File: /usr/include/glob.h

glob.h has the line:

#if __USE_FILE_OFFSET64 && __GNUC__ < 2

Without __USE_FILE_OFFSET64 defined, this will use an undefined
preprocessor symbol in an #if (rather than an #ifdef or an #if
defined()).  A few lines later, glob.h does the same test correctly:

#if !defined __USE_FILE_OFFSET64 || __GNUC__ < 2


- Josh Triplett

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

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6-dev depends on:
ii  libc-dev-bin                  2.13-18    Embedded GNU C Library: Developmen
ii  libc6                         2.13-18    Embedded GNU C Library: Shared lib
ii  linux-libc-dev                3.0.0-2    Linux support headers for userspac

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]              4:4.6.1-2  GNU C compiler
ii  gcc-4.5 [c-compiler]          4.5.3-8    The GNU C compiler
ii  gcc-4.6 [c-compiler]          4.6.1-8    GNU C compiler

Versions of packages libc6-dev suggests:
ii  glibc-doc                     2.13-18    Embedded GNU C Library: Documentat
ii  manpages-dev                  3.32-0.2   Manual pages about using GNU/Linux

-- no debconf information



Reply to: