[email protected]
[Top] [All Lists]

Bug#289807: marked as forwarded (worker: FTBFS (amd64/gcc-4.0): non-loca

Subject: Bug#289807: marked as forwarded worker: FTBFS (amd64/gcc-4.0): non-local variable '<anonymous struct> layoutDescr []' uses anonymous type
From: Debian Bug Tracking System
Date: Tue, 11 Jan 2005 10:48:38 -0800
Your message dated Tue, 11 Jan 2005 19:42:54 +0100
with message-id <[email protected]>
has caused the Debian Bug report #289807,
regarding worker: FTBFS (amd64/gcc-4.0): non-local variable '<anonymous struct> 
layoutDescr []' uses anonymous type
to be marked as having been forwarded to the upstream software
author(s) Ralf Hoffmann <[email protected]>.

(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 289807-forwarded) by bugs.debian.org; 11 Jan 2005 18:43:33 +0000
>From [email protected] Tue Jan 11 10:43:32 2005
Return-path: <[email protected]>
Received: from imap.gmx.net (mail.gmx.net) [] 
        by spohr.debian.org with smtp (Exim 3.35 1 (Debian))
        id 1CoQzM-00018I-00; Tue, 11 Jan 2005 10:43:32 -0800
Received: (qmail invoked by alias); 11 Jan 2005 18:43:00 -0000
Received: from c227015.adsl.hansenet.de (EHLO homer) (
  by mail.gmx.net (mp027) with SMTP; 11 Jan 2005 19:43:00 +0100
X-Authenticated: #7842102
From: Tobias Toedter <[email protected]>
To: Ralf Hoffmann <[email protected]>
Subject: Re: Bug#289807: worker: FTBFS (amd64/gcc-4.0): non-local variable 
'<anonymous struct> layoutDescr []' uses anonymous type
Date: Tue, 11 Jan 2005 19:42:54 +0100
User-Agent: KMail/1.7.2
References: <[email protected]>
In-Reply-To: <[email protected]>
Cc: Andreas Jochens <[email protected]>,
 [email protected]
MIME-Version: 1.0
Content-Type: multipart/signed;
Content-Transfer-Encoding: 7bit
Message-Id: <[email protected]>
X-Y-GMX-Trusted: 0
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Content-Type: multipart/mixed;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Ralf,

I've just received a bug report for your program, worker. It fails to build=
from source on the amd64 architecture. The bug submitter kindly attached a=
patch to fix this problem.

I've tested the patch for i386, and it still builds fine. If you're going t=
include this fix in your program and are willing to release a new version=20
for this soon, I'll wait for that. Otherwise, I'm going to include the fix=
for Debian in Version 2.9.0.

Please tell me what you think. Oh, and by the way: Please preserve the CC t=
<[email protected]>. This way, the bug tracking system will=
file your reply automatically.




    Early to bed and early to rise and you'll
    be groggy when everyone else is wide awake.

On Tuesday 11 January 2005 08:36, Andreas Jochens wrote:
> Package: worker
> Severity: normal
> Tags: patch
> When building 'worker' on amd64 with gcc-4.0,
> I get the following error:
> if g++ -DHAVE_CONFIG_H -I. -I. -I../src/aguix   -D_REENTRANT   -g -O2
> -fcheck-new -Wall -MT wconfigglb.o -MD -MP -MF ".deps/wconfigglb.Tpo" \
> -c -o wconfigglb.o `test -f 'wconfigglb.cc' || echo './'`wconfigglb.cc; \
> then mv -f ".deps/wconfigglb.Tpo" ".deps/wconfigglb.Po"; \
> else rm -f ".deps/wconfigglb.Tpo"; exit 1; \
> fi
> wconfigglb.cc:35: error: non-local variable '<anonymous struct>
> layoutDescr []' uses anonymous type make[3]: *** [wconfigglb.o] Error 1
> make[3]: Leaving directory `/worker-2.9.0/src'
> With the attached patch 'worker' can be compiled
> on amd64 using gcc-4.0.
> Regards
> Andreas Jochens

Content-Type: text/x-diff;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;

diff -urN ../tmp-orig/worker-2.9.0/src/wconfigglb.cc ./src/wconfigglb.cc
=2D-- ../tmp-orig/worker-2.9.0/src/wconfigglb.cc=C2=A0=C2=A02004-12-20 19:5=
0:08.000000000 +0100
+++ ./src/wconfigglb.cc=C2=A02005-01-11 08:04:46.000000000 +0100
@@ -31,7 +31,7 @@
=C2=A0#include <aguix/acontainerbb.h>
=C2=A0#include <list>

=2Dstruct { WConfig::layoutID_t id;
+static struct { WConfig::layoutID_t id;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 int descr; } layoutDescr[] =3D { { WConf=
ig::LO_STATEBAR, 556 },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ =
WConfig::LO_CLOCKBAR, 557 },
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0{ =
WConfig::LO_BUTTONS, 558 },
diff -urN ../tmp-orig/worker-2.9.0/src/worker_shm.cc ./src/worker_shm.cc
=2D-- ../tmp-orig/worker-2.9.0/src/worker_shm.cc=C2=A0=C2=A02004-12-20 19:5=
0:08.000000000 +0100
+++ ./src/worker_shm.cc=C2=A02005-01-11 08:25:49.658491056 +0100
@@ -33,7 +33,7 @@
=C2=A0 =C2=A0 =C2=A0WSHMId =3D shmget( IPC_PRIVATE, /*a_max( SHMMIN, 4 )*/4=
, 0700 );
=C2=A0 =C2=A0 =C2=A0if ( WSHMId !=3D -1 ) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0WSHMPtr =3D (char*)shmat( WSHMId, NULL, 0 );
=2D =C2=A0 =C2=A0 =C2=A0if ( ( (int)WSHMPtr !=3D -1 ) && ( WSHMPtr !=3D NUL=
L ) ) {
+ =C2=A0 =C2=A0 =C2=A0if ( ( (long)WSHMPtr !=3D -1 ) && ( WSHMPtr !=3D NULL=
 ) ) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0WSHMInit =3D true;
=C2=A0 =C2=A0 =C2=A0 =C2=A0}
=C2=A0 =C2=A0 =C2=A0}


Content-Type: application/pgp-signature

Version: GnuPG v1.2.6 (GNU/Linux)



To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#289807: marked as forwarded (worker: FTBFS (amd64/gcc-4.0): non-local variable '<anonymous struct> layoutDescr []' uses anonymous type), Debian Bug Tracking System <=