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

Bug#348896: marked as done (libc6-dev: implicit declaration of function swab)



Your message dated Wed, 7 Jan 2009 11:33:19 +0100
with message-id <20090107103319.GA2455@volta.aurel32.net>
and subject line Re: libc6-dev: implicit declaration of function swab
has caused the Debian Bug report #348896,
regarding libc6-dev: implicit declaration of function swab
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
348896: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=348896
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
On Thu, Jan 19, 2006 at 12:00:02PM -0500, Mathieu Malaterre wrote:
> 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

I don't know if this page has changed or not, but the fact is that swab
is now defined as an XSI extension. It is then normal that this function
is defined between __USE_XOPEN ifdef.

> 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'
> 

Those problems are gone. I am therefore closing the bug.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net


--- End Message ---

Reply to: