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

Bug#348896: libc6-dev: implicit declaration of function swab



Package: libc6-dev
Version: 2.3.5-8
Severity: normal

One cannot use the swab function without producing a warning. Indeed
unistd.h defines it within a __USE_XOPEN ifdef, whereas this should 
not be needed according to:

http://www.opengroup.org/onlinepubs/009695399/functions/swab.html

But then if one do:
#define __USE_XOPEN
#include <unistd.h>

one get:
/usr/include/sys/wait.h:115: error: syntax error before '__stat_loc'
/usr/include/sys/wait.h:168: error: syntax error before '__stat_loc'
/usr/include/sys/wait.h:178: error: syntax error before '__WAIT_STATUS'



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (989, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages libc6-dev depends on:
ii  libc6                      2.3.5-8       GNU C Library: Shared libraries an
ii  linux-kernel-headers       2.6.13+0rc3-2 Linux Kernel Headers for developme

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]             4:4.0.2-2   The GNU C compiler
ii  gcc-2.95 [c-compiler]        1:2.95.4-22 The GNU C compiler
ii  gcc-3.2 [c-compiler]         1:3.2.3-9   The GNU C compiler
ii  gcc-3.3 [c-compiler]         1:3.3.6-10  The GNU C compiler
ii  gcc-3.4 [c-compiler]         3.4.5-1     The GNU C compiler
ii  gcc-4.0 [c-compiler]         4.0.2-5     The GNU C compiler

-- no debconf information



Reply to: