Your message dated Tue, 9 Mar 2004 03:13:46 -0600
with message-id <[EMAIL PROTECTED]>
and subject line kdemultimedia_4:3.1.2-1(hppa/unstable): FTBFS: variable-size 
array forbdden by C++
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Nov 2003 10:00:43 +0000
>From [EMAIL PROTECTED] Tue Nov 11 04:00:41 2003
Return-path: <[EMAIL PROTECTED]>
Received: from pat.uio.no [129.240.130.16] 
        by master.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1AJVKD-0007FZ-00; Tue, 11 Nov 2003 04:00:41 -0600
Received: from mail-mx6.uio.no ([129.240.10.47])
        by pat.uio.no with esmtp (Exim 4.20)
        id 1AJVKD-00024M-26
        for [EMAIL PROTECTED]; Tue, 11 Nov 2003 11:00:41 +0100
Received: from saruman.uio.no ([129.240.201.202])
        by mail-mx6.uio.no with esmtp (Exim 4.14)
        id 1AJVK8-0007ri-J6; Tue, 11 Nov 2003 11:00:36 +0100
Received: from pre by saruman.uio.no with local (Exim 2.12 #7)
        id 1AJVK8-0003sk-00; Tue, 11 Nov 2003 11:00:36 +0100
To: [EMAIL PROTECTED]
Subject: kmidi: FTBFS on gcc 3.3.2 (asm with braced-groups within expressions)
From: Petter Reinholdtsen <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
Sender: Petter Reinholdtsen <[EMAIL PROTECTED]>
Date: Tue, 11 Nov 2003 11:00:36 +0100
X-MailScanner-Information: This message has been scanned for viruses/spam. 
Contact [EMAIL PROTECTED] if you have questions about this scanning.
X-UiO-MailScanner: No virus found
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=-8.9 required=4.0
        tests=BAYES_30,HAS_PACKAGE,PATCH_UNIFIED_DIFF
        autolearn=ham version=2.53-bugs.debian.org_2003_11_9
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_9 
(1.174.2.15-2003-03-30-exp)


Package:  kmidi
Version:  4:3.1.2-1.1
Severity: serious
Tags:     patch

This is the error message:

  if g++ -DHAVE_CONFIG_H -I. -I../../kmidi
    -I.. `/usr/bin/artsc-config --cflags` -I/usr/include/kde
    -I/usr/include/qt3 -I.
    -DDEFAULT_PATH=\"/usr/share/apps/kmidi/config\" -DKMIDI -DAU_OSS
    -DQT_THREAD_SUPPORT -D_REENTRANT -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 -O3 -fomit-frame-pointer -ffast-math -MT
    readmidi.o -MD -MP -MF ".deps/readmidi.Tpo" \
  -c -o readmidi.o `test -f '../../kmidi/readmidi.cpp' || echo
     '../../kmidi/'`../../kmidi/readmidi.cpp; \
  then mv -f ".deps/readmidi.Tpo" ".deps/readmidi.Po"; \
  else rm -f ".deps/readmidi.Tpo"; exit 1; \
  fi
  ../../kmidi/readmidi.cpp: In function `int read_track(int)':
  ../../kmidi/readmidi.cpp:991: error: ISO C++ forbids braced-groups within
     expressions
  ../../kmidi/readmidi.cpp: In function `MidiEvent* read_midi_file(FILE*,
     uint32*, uint32*)':
  ../../kmidi/readmidi.cpp:1412: error: ISO C++ forbids braced-groups within
     expressions
  make[3]: *** [readmidi.o] Error 1
  make[3]: Leaving directory
    `/usr/src/kdemultimedia-3.1.2/obj-i386-linux/kmidi'

The problem is this line in readmidi.cpp:

  len=BE_LONG(len);

The BE_LONG() macro is defined in config.h to XCHG_LONG(), which
expand to this block in the same file:

  #define XCHG_LONG(x) \
         ({ int32 __value; \
            asm ("bswap %1; movl %1,%0" : "=g" (__value) : "r" (x)); \
            __value; })

Apparently the inline assembly is no longer accepted by gcc 3.3.2.
Here is a patch to work around the problem, by just disabling the
assembly version.

--- kdemultimedia-3.1.2/kmidi/config.h.orig       Tue Nov 11 10:57:04 2003
+++ kdemultimedia-3.1.2/kmidi/config.h    Tue Nov 11 10:55:29 2003
@@ -275,7 +275,8 @@
        #endif
 #else
        #define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
-       #if defined(__i486__) && defined(__GNUC__)
+        /* Disabled assembly version as it is not accepted by gcc 3.3.2 */
+       #if 0 && defined(__i486__) && defined(__GNUC__)
                #define XCHG_LONG(x) \
                        ({ int32 __value; \
                        asm ("bswap %1; movl %1,%0" : "=g" (__value) : "r" 
(x)); \

---------------------------------------
Received: (at 220176-done) by bugs.debian.org; 9 Mar 2004 09:14:20 +0000
>From [EMAIL PROTECTED] Tue Mar 09 01:14:20 2004
Return-path: <[EMAIL PROTECTED]>
Received: from 66-194-152-191.gen.twtelecom.net (pico.surpasshosting.com) 
[66.194.152.191] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1B0dJc-0006co-00; Tue, 09 Mar 2004 01:14:20 -0800
Received: from conr-adsl-cheney.txucom.net ([207.70.165.48] helo=calc)
        by pico.surpasshosting.com with esmtp (TLSv1:RC4-SHA:128)
        (Exim 4.24)
        id 1B0dJG-00046S-Bz; Tue, 09 Mar 2004 04:13:58 -0500
Received: from ccheney by calc with local (Exim 4.30)
        id 1B0dJ4-00088F-6K; Tue, 09 Mar 2004 03:13:46 -0600
Date: Tue, 9 Mar 2004 03:13:46 -0600
From: Chris Cheney <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED]
Subject: kdemultimedia_4:3.1.2-1(hppa/unstable): FTBFS: variable-size array 
forbdden by C++
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="Vy1A5eXR7jld12ZH"
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
X-AntiAbuse: This header was added to track abuse, please include it with any 
abuse report
X-AntiAbuse: Primary Hostname - pico.surpasshosting.com
X-AntiAbuse: Original Domain - bugs.debian.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - cheney.cx
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_08 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=2.6 required=4.0 tests=SUSPICIOUS_RECIPS autolearn=no 
        version=2.60-bugs.debian.org_2004_03_08
X-Spam-Level: **


--Vy1A5eXR7jld12ZH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

These FTBFS bugs are fixed in both sarge/sid.

Chris

--Vy1A5eXR7jld12ZH
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFATYrK0QZas444SvIRAomgAJ0QdH1njwLuxJB4CjlGKCqU6lVJXwCgmmcd
LypZ+vi5FDcA1811C6oyZ34=
=Dziq
-----END PGP SIGNATURE-----

--Vy1A5eXR7jld12ZH--

Reply via email to