Debian Bug report logs - #203303
linux/byteorder/swab.h: ISO C++ forbids braced-groups within expressions

version graph

Package: libc6-dev; Maintainer for libc6-dev is GNU Libc Maintainers <debian-glibc@lists.debian.org>; Source for libc6-dev is src:glibc (PTS, buildd, popcon).

Reported by: Stephen Gran <sgran@debian.org>

Date: Tue, 29 Jul 2003 09:33:02 UTC

Severity: normal

Tags: sarge, sid

Found in version 2.3.2.ds1-10

Fixed in version linux-kernel-headers/2.5.999-test7-bk-10

Done: Daniel Jacobowitz <dan@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Christopher L Cheney <ccheney@debian.org>:
Bug#203303; Package kdemultimedia. (full text, mbox, link).


Acknowledgement sent to Aurelien Jarno <aurel32@debian.org>:
New Bug report received and forwarded. Copy sent to Christopher L Cheney <ccheney@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Aurelien Jarno <aurel32@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: FTBFS: does not build with gcc-3.3 on i386
Date: Tue, 29 Jul 2003 11:31:57 +0200
Package: kdemultimedia
Version: 3.1.2-1 (not installed)
Severity: serious
Tags: sid

Hello,

I tried to build kdemultimedia on a fresh updated pbuilder (i386). It 
fails with the following errors:

/usr/share/qt3/bin/moc ../../kaudiocreator/cdconfigimp.h -o cdconfigimp.moc
/usr/share/qt3/bin/moc ../../kaudiocreator/encoderconfigimp.h -o encoderconfigimp.moc
/usr/share/qt3/bin/moc ../../kaudiocreator/kaudiocreator.h -o kaudiocreator.moc
/usr/share/qt3/bin/moc ../../kaudiocreator/tracksconfigimp.h -o tracksconfigimp.moc
/usr/share/qt3/bin/moc ../../kaudiocreator/queconfigimp.h -o queconfigimp.moc
/usr/share/qt3/bin/moc ../../kaudiocreator/ripconfigimp.h -o ripconfigimp.moc
creating kaudiocreator.all_cpp.cpp ...
if g++ -DHAVE_CONFIG_H -I. -I../../kaudiocreator -I..   -I/usr/include/kde -I/usr/include/qt3 -I.  -static -Wall -DDATADIR=\"/usr/share/apps/kaudiocreator\" -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST  -MT kaudiocreator.all_cpp.o -MD -MP -MF ".deps/kaudiocreator.all_cpp.Tpo" \
  -c -o kaudiocreator.all_cpp.o `test -f 'kaudiocreator.all_cpp.cpp' || echo '../../kaudiocreator/'`kaudiocreator.all_cpp.cpp; \
then mv -f ".deps/kaudiocreator.all_cpp.Tpo" ".deps/kaudiocreator.all_cpp.Po"; \
else rm -f ".deps/kaudiocreator.all_cpp.Tpo"; exit 1; \
fi
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:45,
                 from /usr/include/linux/cdrom.h:14,
                 from ../../kaudiocreator/cdconfigimp.cpp:78,
                 from kaudiocreator.all_cpp.cpp:6:
/usr/include/linux/byteorder/swab.h: In function `const __u32 
   __fswab24(unsigned int)':
/usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u32 __swab24p(__u32*)':
/usr/include/linux/byteorder/swab.h:178: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:178: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab24s(__u32*)':
/usr/include/linux/byteorder/swab.h:182: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:182: error: ISO C++ forbids braced-groups 
   within expressions
In file included from kaudiocreator.all_cpp.cpp:9:
../../kaudiocreator/queconfigimp.cpp: In member function `void 
   QueConfigImp::addJob(Job*, QString)':
../../kaudiocreator/queconfigimp.cpp:59: warning: unused variable `
   QueListViewItem*newItem'
In file included from kaudiocreator.all_cpp.cpp:11:
../../kaudiocreator/tracksconfigimp.cpp: In member function `void 
   TracksConfigImp::newSong(int, QString, int)':
../../kaudiocreator/tracksconfigimp.cpp:390: warning: unused variable `
   QListViewItem*newItem'
make[4]: *** [kaudiocreator.all_cpp.o] Error 1
make[4]: Leaving directory `/tmp/buildd/kdemultimedia-3.1.2/obj-i386-linux/kaudiocreator'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/buildd/kdemultimedia-3.1.2/obj-i386-linux/kaudiocreator'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/kdemultimedia-3.1.2/obj-i386-linux'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/kdemultimedia-3.1.2/obj-i386-linux'
make: *** [build-arch-stamp] Error 2
pbuilder: Failed autobuilding of package
 -> unmounting /proc filesystem
 -> cleaning the build env 


A full build log can be fetch on
http://people.debian.org/~aurel32/kdemultimedia/kdemultimedia_3.1.2-1.log

Aurelien



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux pc.aurel32 2.4.21 #1 dim jui 20 20:35:42 CEST 2003 i686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (ignored: LC_ALL set)




Changed Bug title. Request was from Chris Cheney <ccheney@cheney.cx> to control@bugs.debian.org. (full text, mbox, link).


Changed Bug submitter from Aurelien Jarno <aurel32@debian.org> to Chris Cheney <ccheney@cheney.cx>. Request was from Chris Cheney <ccheney@cheney.cx> to control@bugs.debian.org. (full text, mbox, link).


Message sent on to Chris Cheney <ccheney@cheney.cx>:
Bug#203303. (full text, mbox, link).


Message #12 received at 203303-submitter@bugs.debian.org (full text, mbox, reply):

From: Chris Cheney <ccheney@cheney.cx>
To: 203303-submitter@bugs.debian.org
Subject: FTBFS: does not build with gcc-3.3 on i386
Date: Sat, 2 Aug 2003 17:57:57 -0500
retitle 203303 glibc: gcc3.3 complains swab.h fails to conform to ISO standard
submitter 203303 !
stop

This appears to be a problem with the kernel headers included with
glibc. I am changing submitter to myself and reassigning this bug
to glibc.

Thanks,
Chris Cheney



Bug reassigned from package `kdemultimedia' to `libc6-dev'. Request was from Chris Cheney <ccheney@cheney.cx> to control@bugs.debian.org. (full text, mbox, link).


Severity set to `critical'. Request was from Chris Cheney <ccheney@cheney.cx> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #21 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: 203303@bugs.debian.org
Subject: Re: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Mon, 4 Aug 2003 19:31:31 -0400
[Message part 1 (text/plain, inline)]
FWIW, I'm getting exactly the same behavior here, trying to build a new
version of one of my packages that #include's <linux/cdrom.h>

ii  libc6-dev      2.3.1-17       GNU C Library: Development Libraries and Hea

Thanks for the good work,
-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to GOTO Masanori <gotom@debian.or.jp>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #26 received at 203303@bugs.debian.org (full text, mbox, reply):

From: GOTO Masanori <gotom@debian.or.jp>
To: Stephen Gran <sgran@debian.org>, Chris Cheney <ccheney@cheney.cx>, Aurelien Jarno <aurel32@debian.org>, 203303@bugs.debian.org
Subject: Re: Bug#203303: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Sat, 09 Aug 2003 15:13:36 +0900
At Mon, 4 Aug 2003 19:31:31 -0400,
Stephen Gran wrote:
> FWIW, I'm getting exactly the same behavior here, trying to build a new
> version of one of my packages that #include's <linux/cdrom.h>
> 
> ii  libc6-dev      2.3.1-17       GNU C Library: Development Libraries and Hea

Could you try new glibc 2.3.2-2?  And I think it's not glibc problem.
If you still get errors with 2.3.2-2, please reassign it to
kernel-headers-2.4.21-3.

Regards,
-- gotom



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Aurelien Jarno <aurel32@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #31 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Aurelien Jarno <aurel32@debian.org>
To: GOTO Masanori <gotom@debian.or.jp>
Cc: Stephen Gran <sgran@debian.org>, Chris Cheney <ccheney@cheney.cx>, 203303@bugs.debian.org
Subject: Re: Bug#203303: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Sat, 9 Aug 2003 08:54:12 +0200
Hello,

On Sat, Aug 09, 2003 at 03:13:36PM +0900, GOTO Masanori wrote:
> Could you try new glibc 2.3.2-2?  And I think it's not glibc problem.
> If you still get errors with 2.3.2-2, please reassign it to
> kernel-headers-2.4.21-3.

I haven't try to build kdemultimedia yet, but there was also the same
problem on what of my package, lineakd. It now build correctly, at least
on i386. I'll try to upload a new version later to see if it works on
all architectures.

Cheers,
Aurelien



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Herbert Xu <herbert@gondor.apana.org.au>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #36 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Herbert Xu <herbert@gondor.apana.org.au>
To: GOTO Masanori <gotom@debian.or.jp>, 203303@bugs.debian.org
Subject: Re: Bug#203303: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Sat, 09 Aug 2003 18:08:49 +1000
GOTO Masanori <gotom@debian.or.jp> wrote:
> 
> Could you try new glibc 2.3.2-2?  And I think it's not glibc problem.
> If you still get errors with 2.3.2-2, please reassign it to
> kernel-headers-2.4.21-3.

No please don't.  User space should never include kernel header files.

glibc has been violating this rule since day one.  That's OK except
that when it breaks you get to keep both pieces.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #41 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: GOTO Masanori <gotom@debian.or.jp>
Cc: Chris Cheney <ccheney@cheney.cx>, Aurelien Jarno <aurel32@debian.org>, 203303@bugs.debian.org
Subject: Re: Bug#203303: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Sat, 9 Aug 2003 11:01:29 -0400
[Message part 1 (text/plain, inline)]
This one time, at band camp, GOTO Masanori said:
> At Mon, 4 Aug 2003 19:31:31 -0400, Stephen Gran wrote:
> > FWIW, I'm getting exactly the same behavior here, trying to build a
> > new version of one of my packages that #include's <linux/cdrom.h>
> > 
> > ii  libc6-dev      2.3.1-17       GNU C Library: Development
> > Libraries and Hea
> 
> Could you try new glibc 2.3.2-2?  

Still fails.  -fpermissive downgrades it to a warning, allowing the
build to complete, though, so at least there's a workaround.  

> And I think it's not glibc problem.  If you still get errors with
> 2.3.2-2, please reassign it to kernel-headers-2.4.21-3.

I see  why you say that - it is a kernel header, but it's getting
installed by libc6-dev.

steve:~$ dpkg -S /usr/include/linux/cdrom.h
libc6-dev: /usr/include/linux/cdrom.h

I am building in a pbuilder chroot, no kernel headers installed there.
However, if you think that because the header originally comes from the
kernel, that's where it belongs, you can reassign.

Thanks,
-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #46 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: GOTO Masanori <gotom@debian.or.jp>
Cc: Chris Cheney <ccheney@cheney.cx>, Aurelien Jarno <aurel32@debian.org>, 203303@bugs.debian.org
Subject: Re: Bug#203303: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Sat, 9 Aug 2003 14:03:07 -0400
[Message part 1 (text/plain, inline)]
This one time, at band camp, Stephen Gran said:
> > Could you try new glibc 2.3.2-2?  
> 
> Still fails.  -fpermissive downgrades it to a warning, allowing the
> build to complete, though, so at least there's a workaround.  

Scratch that.  -fpermissive no longer allows it to build - I just didn't
wait long enough to get to the part that fails.  It seems that the ISO
C++ issue has been resolved, only to be replaced by a new one.  Some 
change in this version gives me a new error:

In file included from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10:
/usr/include/asm/byteorder.h:38: error: syntax error before `(' token
/usr/include/asm/byteorder.h:42: error: '__u64' is used as a type, but is not
   defined as a type.
/usr/include/asm/byteorder.h:43: error: syntax error before `}' token
/usr/include/asm/byteorder.h:44: error: syntax error before `.' token
/usr/include/asm/byteorder.h:50: error: syntax error before `.' token
/usr/include/asm/byteorder.h:51: error: syntax error before `.' token
/usr/include/asm/byteorder.h:52: error: syntax error before `:' token
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:65,
                 from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10:
/usr/include/linux/byteorder/swab.h:199: error: syntax error before `(' token
/usr/include/linux/byteorder/swab.h:209: error: syntax error before `(' token
/usr/include/linux/byteorder/swab.h:213: error: `__u64' was not declared in
   this scope
/usr/include/linux/byteorder/swab.h:213: error: `addr' was not declared in this
   scope
/usr/include/linux/byteorder/swab.h:214: error: variable or field `__swab64s'
   declared void
/usr/include/linux/byteorder/swab.h:214: error: `__swab64s' declared as an
   `inline' variable
/usr/include/linux/byteorder/swab.h:214: error: syntax error before `{' token

The relevant lines from byteorder.h are (lines 38-53):

static inline __u64 ___arch__swab64(__u64 val)
{
  union {
    struct { __u32 a,b; } s;
    __u64 u;
  } v;
  v.u = val;
#ifdef CONFIG_X86_BSWAP
  asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1"
      : "=r" (v.s.a), "=r" (v.s.b)
      : "0" (v.s.a), "1" (v.s.b));
#else
   v.s.a = ___arch__swab32(v.s.a);
  v.s.b = ___arch__swab32(v.s.b);
  asm("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
#endif

and swab.h (lines 198-216):

#ifdef __BYTEORDER_HAS_U64__
static __inline__ __const__ __u64 __fswab64(__u64 x)
{
#  ifdef __SWAB_64_THRU_32__
  __u32 h = x >> 32;
        __u32 l = x & ((1ULL<<32)-1);
        return (((__u64)__swab32(l)) << 32) | ((__u64)(__swab32(h)));
#  else
  return __arch__swab64(x);
#  endif
}
static __inline__ __u64 __swab64p(__u64 *x)
{
  return __arch__swab64p(x);
}
static __inline__ void __swab64s(__u64 *addr)
{
  __arch__swab64s(addr);
}

I must say I don't immediately see the problem there.  Perhaps we're
barking up the wrong tree here, and this is a problem with g{cc,++}
barfing on perfectly good code?
-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to André Wöbbeking <Woebbeking@onlinehome.de>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #51 received at 203303@bugs.debian.org (full text, mbox, reply):

From: André Wöbbeking <Woebbeking@onlinehome.de>
To: 203303@bugs.debian.org
Subject: Re: Bug#203303: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Mon, 18 Aug 2003 16:40:09 +0200
Hi,

> static inline __u64 ___arch__swab64(__u64 val)
> {
>   union {
>     struct { __u32 a,b; } s;
>     __u64 u;
>   } v;
> ...

could the following code from asm/types.h be the problem:

#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif



Cheers,
André



Severity set to `grave'. Request was from Philip Blundell <pb@nexus.co.uk> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Matthew Wilcox <willy@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #58 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Matthew Wilcox <willy@debian.org>
To: 203303@bugs.debian.org
Subject: How can this be fixed?
Date: Thu, 11 Sep 2003 22:51:38 +0100
So, the problem is that

kaudiocreator/cdconfigimp.cpp includes
linux/cdrom.h

OK, let's try creating an *entirely userspace* linux/cdrom.h.
Oops, can't do that:

struct request_sense {
#if defined(__BIG_ENDIAN_BITFIELD)
        __u8 valid              : 1;
        __u8 error_code         : 7;
#elif defined(__LITTLE_ENDIAN_BITFIELD)
        __u8 error_code         : 7;
        __u8 valid              : 1;
#endif

glibc does not define an equivalent symbol, afaict.  bits/endian.h defines
__BYTE_ORDER but says nothing about bitfields.  I can't find a machine
which has them different, but I doubt you'll receive sympathy from
linux-kernel if you want to replace them.

Seems to me a good start would be to add __BIG_ENDIAN_BITFIELD or
__LITTLE_ENDIAN_BITFIELD defines to <bits/endian.h> or even add to
<endian.h>:

#if !defined(__BIG_ENDIAN_BITFIELD) && !defined(__LITTLE_ENDIAN_BITFIELD)
# if __BYTE_ORDER == __LITTLE_ENDIAN
#  define __LITTLE_ENDIAN_BITFIELD
# elif __BYTE_ORDER == __BIG_ENDIAN
#  define __BIG_ENDIAN_BITFIELD
# endif
#endif

Then we have to change <linux/cdrom.h>, but that'll be easier.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Jeff Bailey <jbailey@nisa.net>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #63 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Jeff Bailey <jbailey@nisa.net>
To: Matthew Wilcox <willy@debian.org>, 203303@bugs.debian.org
Subject: Re: Bug#203303: How can this be fixed?
Date: Thu, 11 Sep 2003 17:15:41 -0700
On Thu, Sep 11, 2003 at 10:51:38PM +0100, Matthew Wilcox wrote:

> Then we have to change <linux/cdrom.h>, but that'll be easier.

We were chatting in #debian-glibc yesterday about the idea of not using
stock kernel-headers.  I need to check with gotom, but I think we've
finally agreed on doing that.  I've been looking at the email you sent
me with suggestions on how to handle them.

Thanks for being willing to offer advice through all of this!

Tks,
Jeff BAiley




Changed Bug title. Request was from Josip Rodin <joy@srce.hr> to control@bugs.debian.org. (full text, mbox, link).


Tags added: sarge Request was from Josip Rodin <joy@srce.hr> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Chris Cheney <ccheney@cheney.cx>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #72 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Chris Cheney <ccheney@cheney.cx>
To: 203303@bugs.debian.org
Subject: linux/byteorder/swab.h: ISO C++ forbids braced-groups within expressions
Date: Fri, 17 Oct 2003 23:05:23 -0500
[Message part 1 (text/plain, inline)]
I thought that upstream had worked around this issue but I just tried
recompiling kdemultimedia and it still fails the same way. Is anyone
planning to upload a fixed libc6-dev anytime soon? I even tried using
-fpermissive as someone had said could work around the issue but it did
not help.

Chris
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to neroden@twcny.rr.com:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #77 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Nathanael Nerode <neroden@twcny.rr.com>
To: 203303@bugs.debian.org
Subject: Status report on bug #203303 vs. experimental glibc?
Date: Thu, 30 Oct 2003 09:35:24 -0500
So, in the new glibc in 'experimental', there's a separate glibc (non-stock) 
kernel-headers package.  Has this bug been fixed in that version of glibc?  
Could someone please test, as this is important to kde?

Thanks.

--Nathanael



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Antonio Fiol Bonnín <fiol.bonnin@terra.es>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #82 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Antonio Fiol Bonnín <fiol.bonnin@terra.es>
To: 203303@bugs.debian.org
Subject: Does not work
Date: Fri, 31 Oct 2003 19:13:07 +0100
Hello,

I have just done this:
apt-get update && apt-get upgrade

And I still get:
In file included from /usr/include/linux/cdrom.h:14,
                from ../../kaudiocreator/cdconfigimp.cpp:78,
                from kaudiocreator.all_cpp.cpp:6:
/usr/include/asm/byteorder.h:38: error: syntax error before `(' token
/usr/include/asm/byteorder.h:42: error: '__u64' is used as a type, but 
is not
  defined as a type.
/usr/include/asm/byteorder.h:43: error: parse error before `}' token
/usr/include/asm/byteorder.h:44: error: syntax error before `.' token
/usr/include/asm/byteorder.h:50: error: syntax error before `.' token
/usr/include/asm/byteorder.h:51: error: syntax error before `.' token
/usr/include/asm/byteorder.h:52: error: parse error before `:' token
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                from /usr/include/asm/byteorder.h:65,
                from /usr/include/linux/cdrom.h:14,
                from ../../kaudiocreator/cdconfigimp.cpp:78,
                from kaudiocreator.all_cpp.cpp:6:
/usr/include/linux/byteorder/swab.h:158: error: syntax error before `(' 
token
/usr/include/linux/byteorder/swab.h:168: error: syntax error before `(' 
token
/usr/include/linux/byteorder/swab.h:172: error: `__u64' was not declared in
  this scope
/usr/include/linux/byteorder/swab.h:172: error: `addr' was not declared 
in this
  scope
/usr/include/linux/byteorder/swab.h:173: error: variable or field 
`__swab64s'
  declared void
/usr/include/linux/byteorder/swab.h:173: error: `__swab64s' declared as an
  `inline' variable
/usr/include/linux/byteorder/swab.h:173: error: syntax error before `{' 
token
In file included from kaudiocreator.all_cpp.cpp:6:
../../kaudiocreator/cdconfigimp.cpp:81: error: parse error before `}' token
In file included from kaudiocreator.all_cpp.cpp:9:
../../kaudiocreator/queconfigimp.cpp: In member function `void
  QueConfigImp::addJob(Job*, QString)':
../../kaudiocreator/queconfigimp.cpp:59: warning: unused variable `
  QueListViewItem*newItem'
In file included from kaudiocreator.all_cpp.cpp:11:
../../kaudiocreator/tracksconfigimp.cpp: In member function `void
  TracksConfigImp::newSong(int, QString, int)':
../../kaudiocreator/tracksconfigimp.cpp:390: warning: unused variable `
  QListViewItem*newItem'





Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Daniel Jacobowitz <dan@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #87 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Daniel Jacobowitz <dan@debian.org>
To: Chris Cheney <ccheney@cheney.cx>, 203303@bugs.debian.org
Subject: Re: Bug#203303: linux/byteorder/swab.h: ISO C++ forbids braced-groups within expressions
Date: Sat, 1 Nov 2003 17:56:44 -0500
On Fri, Oct 17, 2003 at 11:05:23PM -0500, Chris Cheney wrote:
> I thought that upstream had worked around this issue but I just tried
> recompiling kdemultimedia and it still fails the same way. Is anyone
> planning to upload a fixed libc6-dev anytime soon? I even tried using
> -fpermissive as someone had said could work around the issue but it did
> not help.
> 
> Chris

The next upload of linux-kernel-headers should fix it.  It doesn't let
kdemultimedia build though.  I still get:

../../kmidi/kmidi.cpp: In member function `void KMidi::redoplaybox()':
../../kmidi/kmidi.cpp:1215: error: call of overloaded `insert(char, int)' is
   ambiguous
/usr/include/qt3/qstring.h:515: error: candidates are: QString&
   QString::insert(unsigned int, const QString&)
/usr/include/qt3/qstring.h:896: error:                 QString&
   QString::insert(unsigned int, const QByteArray&)
/usr/include/qt3/qstring.h:893: error:                 QString&
   QString::insert(unsigned int, const char*)
/usr/include/qt3/qstring.h:521: error:                 QString&
   QString::insert(unsigned int, QChar)
/usr/include/qt3/qstring.h:522: error:                 QString&
   QString::insert(unsigned int, char)
make[4]: *** [kmidi.o] Error 1



-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Chris Cheney <ccheney@cheney.cx>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #92 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Chris Cheney <ccheney@cheney.cx>
To: Daniel Jacobowitz <dan@debian.org>
Cc: 203303@bugs.debian.org
Subject: Re: Bug#203303: linux/byteorder/swab.h: ISO C++ forbids braced-groups within expressions
Date: Sat, 1 Nov 2003 19:26:01 -0600
[Message part 1 (text/plain, inline)]
On Sat, Nov 01, 2003 at 05:56:44PM -0500, Daniel Jacobowitz wrote:
> On Fri, Oct 17, 2003 at 11:05:23PM -0500, Chris Cheney wrote:
> > I thought that upstream had worked around this issue but I just tried
> > recompiling kdemultimedia and it still fails the same way. Is anyone
> > planning to upload a fixed libc6-dev anytime soon? I even tried using
> > -fpermissive as someone had said could work around the issue but it did
> > not help.
> > 
> > Chris
> 
> The next upload of linux-kernel-headers should fix it.  It doesn't let
> kdemultimedia build though.  I still get:
> 
> ../../kmidi/kmidi.cpp: In member function `void KMidi::redoplaybox()':
> ../../kmidi/kmidi.cpp:1215: error: call of overloaded `insert(char, int)' is
>    ambiguous
> /usr/include/qt3/qstring.h:515: error: candidates are: QString&
>    QString::insert(unsigned int, const QString&)
> /usr/include/qt3/qstring.h:896: error:                 QString&
>    QString::insert(unsigned int, const QByteArray&)
> /usr/include/qt3/qstring.h:893: error:                 QString&
>    QString::insert(unsigned int, const char*)
> /usr/include/qt3/qstring.h:521: error:                 QString&
>    QString::insert(unsigned int, QChar)
> /usr/include/qt3/qstring.h:522: error:                 QString&
>    QString::insert(unsigned int, char)
> make[4]: *** [kmidi.o] Error 1

This may have been fixed with KDE 3.1.4, the version of kdemultimedia in
the archive is from KDE 3.1.2. I will take a look at it further once the
new linux-kernel-headers are in the archive.

Thanks,
Chris
[signature.asc (application/pgp-signature, inline)]

Reply sent to GOTO Masanori <gotom@debian.or.jp>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Chris Cheney <ccheney@cheney.cx>:
Bug acknowledged by developer. (full text, mbox, link).


Message #97 received at 203303-done@bugs.debian.org (full text, mbox, reply):

From: GOTO Masanori <gotom@debian.or.jp>
To: 203303-done@bugs.debian.org, dan@debian.org
Subject: Re: Bug#203303: glibc: gcc3.3 complains swab.h fails to conform to ISO standard
Date: Mon, 03 Nov 2003 17:56:20 +0900
This bug is fixed with Dan's patch which is put in
linux-kernel-headers 2.5.999-test7-bk-6.

Regards,
-- gotom



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #102 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: Debian Bug Tracking System <203303@bugs.debian.org>
Cc: control@bugs.debian.org, Chris Cheney <ccheney@cheney.cx>
Subject: Reopening - not fixed for many non-i386 arches
Date: Thu, 6 Nov 2003 22:33:33 -0500
[Message part 1 (text/plain, inline)]
reopen 203303 !
thanks

ccing original submitter as well - he's probably going to get bitten by
this as well.

Package: libc6-dev
Version: 2.3.2.ds1-10
Severity: normal
Followup-For: Bug #203303

This bug is fixed on i386, and it looks like hppa as well.  However it
is still broken on ia64, alpha and powerpc

ia64:
In file included from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10,
                 from kcdlabel.all_cpp.cpp:6:
/usr/include/asm/byteorder.h: In function `const __u64 __ia64_swab64(long 
   unsigned int)':
/usr/include/asm/byteorder.h:17: error: ISO C++ forbids braced-groups within 
   expressions

alpha:
In file included from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10,
                 from kcdlabel.all_cpp.cpp:6:
/usr/include/asm/byteorder.h: In function `__u32 __arch__swab32(unsigned int)':
/usr/include/asm/byteorder.h:27: error: ISO C++ forbids braced-groups within 
   expressions
/usr/include/asm/byteorder.h:28: error: ISO C++ forbids braced-groups within 
   expressions
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:44,
                 from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10,
                 from kcdlabel.all_cpp.cpp:6:
/usr/include/linux/byteorder/swab.h: In function `const __u16 __fswab16(short 
   unsigned int)':
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u16 __swab16p(__u16*)':
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab16s(__u16*)':
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `const __u64 __fswab64(long 
   unsigned int)':
/usr/include/linux/byteorder/swab.h:165: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:165: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u64 __swab64p(__u64*)':
/usr/include/linux/byteorder/swab.h:170: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:170: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab64s(__u64*)':
/usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
   within expressions

powerpc:
In file included from /usr/include/linux/byteorder/big_endian.h:11,
                 from /usr/include/asm/byteorder.h:73,
                 from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10,
                 from kcdlabel.all_cpp.cpp:6:
/usr/include/linux/byteorder/swab.h: In function `const __u16 __fswab16(short 
   unsigned int)':
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u16 __swab16p(__u16*)':
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab16s(__u16*)':
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `const __u32 
   __fswab32(unsigned int)':
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u32 __swab32p(__u32*)':
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab32s(__u32*)':
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions

Thanks so much for working on this,

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux busybox 2.4.22-1-686 #6 Sat Oct 4 14:09:08 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to en_US.ISO-8859-1)

Versions of packages libc6-dev depends on:
ii  libc6                 2.3.2.ds1-10       GNU C Library: Shared libraries an
ii  linux-kernel-headers  2.5.999-test7-bk-8 Linux Kernel Headers for developme

-- no debconf information


-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------
[signature.asc (application/pgp-signature, inline)]

Bug reopened, originator set to Stephen Gran <sgran@debian.org>. Request was from Stephen Gran <sgran@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #109 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: Debian Bug Tracking System <203303@bugs.debian.org>
Subject: More architectures
Date: Fri, 7 Nov 2003 09:20:05 -0500
[Message part 1 (text/plain, inline)]
Package: libc6-dev
Version: 2.3.2.ds1-10
Severity: normal
Followup-For: Bug #203303

It looks like it is also a problem on mipsel, arm and sparc.

arm:
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:29,
                 from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10,
                 from kcdlabel.all_cpp.cpp:6:
/usr/include/linux/byteorder/swab.h: In function `const __u16 __fswab16(short 
   unsigned int)':
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u16 __swab16p(__u16*)':
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab16s(__u16*)':
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `const __u32 
   __fswab32(unsigned int)':
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u32 __swab32p(__u32*)':
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab32s(__u32*)':
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions

mipsel:
In file included from /usr/include/linux/byteorder/little_endian.h:11,
                 from /usr/include/asm/byteorder.h:25,
                 from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10,
                 from kcdlabel.all_cpp.cpp:6:
/usr/include/linux/byteorder/swab.h: In function `const __u16 __fswab16(short 
   unsigned int)':
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u16 __swab16p(__u16*)':
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab16s(__u16*)':
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `const __u32 
   __fswab32(unsigned int)':
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u32 __swab32p(__u32*)':
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab32s(__u32*)':
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions

sparc:
In file included from /usr/include/linux/byteorder/big_endian.h:11,
                 from /usr/include/asm-sparc/byteorder.h:12,
                 from /usr/include/asm/byteorder.h:11,
                 from /usr/include/linux/cdrom.h:14,
                 from audiocd.h:33,
                 from cddbaccessdialog.h:31,
                 from cddbaccessdialogdata.cpp:10,
                 from kcdlabel.all_cpp.cpp:6:
/usr/include/linux/byteorder/swab.h: In function `const __u16 __fswab16(short 
   unsigned int)':
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:133: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u16 __swab16p(__u16*)':
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:137: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab16s(__u16*)':
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:141: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `const __u32 
   __fswab32(unsigned int)':
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:146: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `__u32 __swab32p(__u32*)':
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:150: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h: In function `void __swab32s(__u32*)':
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions
/usr/include/linux/byteorder/swab.h:154: error: ISO C++ forbids braced-groups 
   within expressions

Thanks again,

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux busybox 2.4.22-1-686 #6 Sat Oct 4 14:09:08 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to en_US.ISO-8859-1)

Versions of packages libc6-dev depends on:
ii  libc6                 2.3.2.ds1-10       GNU C Library: Shared libraries an
ii  linux-kernel-headers  2.5.999-test7-bk-8 Linux Kernel Headers for developme

-- no debconf information


-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to GOTO Masanori <gotom@debian.or.jp>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #114 received at 203303@bugs.debian.org (full text, mbox, reply):

From: GOTO Masanori <gotom@debian.or.jp>
To: Stephen Gran <sgran@debian.org>, 203303@bugs.debian.org
Cc: Chris Cheney <ccheney@cheney.cx>, 203303-submitter@bugs.debian.org
Subject: Re: Bug#203303: Reopening - not fixed for many non-i386 arches
Date: Tue, 11 Nov 2003 23:28:47 +0900
Hi,

At Thu, 6 Nov 2003 22:33:33 -0500,
Stephen Gran wrote:
> This bug is fixed on i386, and it looks like hppa as well.  However it
> is still broken on ia64, alpha and powerpc
At Fri, 7 Nov 2003 09:20:05 -0500,
Stephen Gran wrote:
> It looks like it is also a problem on mipsel, arm and sparc.

This bug is caused by kdemultimedia compilation flag "-pedantic" +
"-ansi".  If I removed these flags from all configure settings on
alpha, then the compilation becomed ok.  (But it failed at kmidi.cpp
on alpha if I removed "-pedantic" - it's another bug of
kdemultimedia?):

	../../kmidi/kmidi.cpp: In member function `void KMidi::redoplaybox()':
	../../kmidi/kmidi.cpp:1215: error: call of overloaded `insert(char, int)' is 
	   ambiguous
	/usr/include/qt3/qstring.h:515: error: candidates are: QString& 
	   QString::insert(unsigned int, const QString&)
	/usr/include/qt3/qstring.h:896: error:                 QString& 
	   QString::insert(unsigned int, const QByteArray&)
	/usr/include/qt3/qstring.h:893: error:                 QString& 
	   QString::insert(unsigned int, const char*)
	/usr/include/qt3/qstring.h:521: error:                 QString& 
	   QString::insert(unsigned int, QChar)
	/usr/include/qt3/qstring.h:522: error:                 QString& 
	   QString::insert(unsigned int, char)
	make[4]: *** [kmidi.o] Error 1

Kdemultimedia needs to use linux kernel headers, and some linux kernel
headers are not ready for strict ANSI.  Well it's good idea to fix all
linux kernel headers as "GCC -pedantic -ansi ready" but it's minor
issue.  If you compile all sources with -pedantic, then you encounter
a lot of compilation problems.

I recommend you not to use -pedantic for kdemultimedia.  Is there any
reason to add this -pedantic flag for this software?  Could you remove
such flags and recompile?  I also think it's good idea to check and
update a lot of warnings and configure.

And then, I saw this URI that SuSE guys encountered this problem; it
seemed they also suggested the answer which I found at last.

	http://lists.suse.com/archive/suse-programming-e/2003-Aug/0030.html


BTW, I would like to know why ISO C++ forbits braced-groups.

Regards,
-- gotom



Message sent on to Stephen Gran <sgran@debian.org>:
Bug#203303. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #122 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: GOTO Masanori <gotom@debian.or.jp>
Cc: 203303@bugs.debian.org, Chris Cheney <ccheney@cheney.cx>
Subject: Re: Bug#203303: Reopening - not fixed for many non-i386 arches
Date: Tue, 11 Nov 2003 10:05:55 -0500
[Message part 1 (text/plain, inline)]
This one time, at band camp, GOTO Masanori said:
> Hi,
> 
> At Thu, 6 Nov 2003 22:33:33 -0500,
> Stephen Gran wrote:
> > This bug is fixed on i386, and it looks like hppa as well.  However it
> > is still broken on ia64, alpha and powerpc
> At Fri, 7 Nov 2003 09:20:05 -0500,
> Stephen Gran wrote:
> > It looks like it is also a problem on mipsel, arm and sparc.
> 
> This bug is caused by kdemultimedia compilation flag "-pedantic" +
> "-ansi".  If I removed these flags from all configure settings on
> alpha, then the compilation becomed ok.  (But it failed at kmidi.cpp
> on alpha if I removed "-pedantic" - it's another bug of
> kdemultimedia?):

Actually, I maintain kcdlabel, a KDE program that #includes linux/cdrom.h 
and so gets bitten by the same bugs as kdemultimedia.  I will try
without -pedantic and see if that helps.  

> BTW, I would like to know why ISO C++ forbits braced-groups.

The thing is, they managed to fix this for at least i386 by making sure
that some pieces of asm/byteorder.h (IIRC) weren't pulled in in
userspace apps, but were reserved for kernel level things - I think this
is ultimately the smart way to go for all arches.

-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#203303; Package libc6-dev. (full text, mbox, link).


Acknowledgement sent to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (full text, mbox, link).


Message #127 received at 203303@bugs.debian.org (full text, mbox, reply):

From: Stephen Gran <sgran@debian.org>
To: Debian Bug Tracking System <203303@bugs.debian.org>
Cc: Chris Cheney <ccheney@cheney.cx>
Subject: This is not grave
Date: Wed, 12 Nov 2003 14:29:58 -0500
[Message part 1 (text/plain, inline)]
Package: libc6-dev
Version: 2.3.2.ds1-10
Severity: normal
Followup-For: Bug #203303

It looks like the problem is that these various KDE programs are using
-ansi, and -ansi implies -fno-asm.  This in itself wouldn't be the
problem, but:
           The -ansi option does not cause non-ISO programs to be
           rejected gratuitously.  For that, -pedantic is required 
           in addition to -ansi.
- taken from the FM.

It appears that at least my program is building fine on many arches that
it previously failed on once I removed the -ansi and -pedantic lines.  I
have not yet tested kdemultimedia.

So, I would say that while it would be great if the linux-kernel-headers
package could provide ansi compliant headers, I realize that that will
not be trivial to implement, and as there appears to be a functional
workaround, I suggest downgrading to important or normal.  If you agree,
please do so.  I will cc: Chris on this as well, so he knows that there
are wokrarounds at least.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux busybox 2.4.22-1-686 #6 Sat Oct 4 14:09:08 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to en_US.ISO-8859-1)

Versions of packages libc6-dev depends on:
ii  libc6                 2.3.2.ds1-10       GNU C Library: Shared libraries an
ii  linux-kernel-headers  2.5.999-test7-bk-9 Linux Kernel Headers for developme

-- no debconf information


-- 
 -----------------------------------------------------------------
|   ,''`.					     Stephen Gran |
|  : :' :					 sgran@debian.org |
|  `. `'			Debian user, admin, and developer |
|    `-					    http://www.debian.org |
 -----------------------------------------------------------------
[signature.asc (application/pgp-signature, inline)]

Severity set to `normal'. Request was from Stephen Gran <sgran@debian.org> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Daniel Jacobowitz <dan@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Stephen Gran <sgran@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #134 received at 203303-close@bugs.debian.org (full text, mbox, reply):

From: Daniel Jacobowitz <dan@debian.org>
To: 203303-close@bugs.debian.org
Subject: Bug#203303: fixed in linux-kernel-headers 2.5.999-test7-bk-10
Date: Sun, 14 Dec 2003 14:02:29 -0500
Source: linux-kernel-headers
Source-Version: 2.5.999-test7-bk-10

We believe that the bug you reported is fixed in the latest version of
linux-kernel-headers, which is due to be installed in the Debian FTP archive:

linux-kernel-headers_2.5.999-test7-bk-10.diff.gz
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-10.diff.gz
linux-kernel-headers_2.5.999-test7-bk-10.dsc
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-10.dsc
linux-kernel-headers_2.5.999-test7-bk-10_i386.deb
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-10_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 203303@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Jacobowitz <dan@debian.org> (supplier of updated linux-kernel-headers package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 13 Dec 2003 16:13:20 -0500
Source: linux-kernel-headers
Binary: linux-kernel-headers
Architecture: source i386
Version: 2.5.999-test7-bk-10
Distribution: unstable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Daniel Jacobowitz <dan@debian.org>
Description: 
 linux-kernel-headers - Linux Kernel Headers for development
Closes: 203303 215337 215937 216921 218438 219664 219940 220138 220232 220331 220953 220991 221438 221543
Changes: 
 linux-kernel-headers (2.5.999-test7-bk-10) unstable; urgency=low
 .
   * Daniel Jacobowitz <dan@debian.org>
 .
     - Add a testsuite.
 .
     - Resolve a conflict between <linux/compiler.h> and <sys/cdefs.h>
       (Closes: #215337, #219664).
       - debian/patches/no-linux-compiler-h.patch
     - Let <linux/netlink.h> compile by moving some of <linux/uio.h> into
       __KERNEL__ (Closes: #215937).
       - debian/patches/linux-netlink-compilation.patch
     - Fix a -W (-Wextra) warning with the ioctl type checking macros
       (Closes: #219940, #220953).
       - debian/patches/ioctl-signedness.patch
     - Quiet #warning from <linux/list.h> for now.
       - debian/patches/linux-list-quiet-warning.patch
     - Fix conflict between <linux/time.h> and <time.h>, and other C++
       namespace cleanliness problems
       (Closes: #218438, #220232, #216921, #221438).
       - debian/patches/linux-types-and-time.patch
       - debian/patches/linux-types-ustat.h removed.
     - Also export __kernel_dev_t for util-linux/cryptoloop (Closes: 220991).
       - debian/patches/linux-types-and-time.patch
     - Remove some useless __const__ markers from byteorder headers.
       - debian/patches/byteorder-const.patch
     - Add __extension__ to several ({ }) constructs to allow them with -ansi
       (Closes: #203303).
       - debian/patches/byteorder.patch
     - Disable the contents of <asm-ia64/pal.h> in userspace (Closes: #220138).
       - debian/patches/ia64-pal.patch
     - Don't include unneeded mod_devicetable.h from linux/pci.h (Closes: #221543).
       - debian/patches/linux-pci.patch
     - Don't include buffer_head.h from linux/msdos_fs.h (Closes: #220331).
       - debian/patches/msdos-fs.patch
     - Suppress pedantic long long warnings for <linux/types.h>.
       - debian/patches/linux-types-long-long.patch
 .
   * Jeff Bailey <jbailey@nisa.net>
 .
    - debian/control: Bump standards version to 3.6.1.
      No changes required.
Files: 
 bc66113e31ae75aee3781ac6d647a1d2 858 devel standard linux-kernel-headers_2.5.999-test7-bk-10.dsc
 ec12b4d434e942e7b99e94a9423ff482 52489 devel standard linux-kernel-headers_2.5.999-test7-bk-10.diff.gz
 a31486ee73e3c528c066abb1ba351fbb 1375424 devel standard linux-kernel-headers_2.5.999-test7-bk-10_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/3LDAbgOPXuCjg3cRAiCmAJ4iPq2MylFNzkoqT5OQA6+k22GJ+wCffxmk
jjI+8OpG2MSCcf1FT9ecfOs=
=CUdw
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jul 16 01:29:49 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.