Your message dated Thu, 5 May 2005 16:20:51 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Removed
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; 9 Feb 2005 14:02:28 +0000
>From [EMAIL PROTECTED] Wed Feb 09 06:02:28 2005
Return-path: <[EMAIL PROTECTED]>
Received: from d157137.adsl.hansenet.de (localhost.localdomain) 
[80.171.157.137] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CysQF-0000UH-00; Wed, 09 Feb 2005 06:02:27 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
        id 1CysQB-0006Ck-BD; Wed, 09 Feb 2005 15:02:24 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: vreng: FTBFS (amd64/gcc-4.0): non-local variable '<anonymous struct> 
putPropertyFunc [20][48]' uses anonymous type
Message-Id: <[EMAIL PROTECTED]>
Date: Wed, 09 Feb 2005 15:02:24 +0100
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=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: vreng
Severity: normal
Tags: patch

When building 'vreng' on amd64 with gcc-4.0,
I get the following error:

../../src/wo/wo.h:678: error: non-local variable '<anonymous struct> 
putPropertyFunc [20][48]' uses anonymous type
../../src/wo/wo.h:678: error: non-local variable '<anonymous struct> 
getPropertyFunc [20][48]' uses anonymous type
make[4]: *** [ubwidgets.o] Error 1
make[4]: Leaving directory `/vreng-5.0.1/src/gui'

With the attached patch 'vreng' can be compiled
on amd64 using gcc-4.0.

The attached patch includes a patch which was already necessary for gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/vreng-5.0.1/src/wo/initobj.h ./src/wo/initobj.h
--- ../tmp-orig/vreng-5.0.1/src/wo/initobj.h    2003-08-17 23:28:25.000000000 
+0200
+++ ./src/wo/initobj.h  2005-02-09 14:36:49.000000000 +0100
@@ -26,7 +26,7 @@
 } PropertyFuncList[PROPSNUMBER][OBJECTSNUMBER+1];
 #define WO_PAYLOAD  (void (*)(Payload *pp))
 #else
-typedef struct {
+typedef struct PFL_struct {
   void (*pf) (WObject *po, Payload *pp);
 } PropertyFuncList[PROPSNUMBER][OBJECTSNUMBER+1];
 #define WO_PAYLOAD  (void (*)(WObject *po, Payload *pp))
diff -urN ../tmp-orig/vreng-5.0.1/src/vgl/render.cc ./src/vgl/render.cc
--- ../tmp-orig/vreng-5.0.1/src/vgl/render.cc   2003-09-21 22:36:22.000000000 
+0200
+++ ./src/vgl/render.cc 2005-02-09 14:49:49.334790288 +0100
@@ -155,7 +155,7 @@
       setMaterials();
       if (! pl->pobject->isBehavior(NO_SELECTABLE)) {
         glPopName();
-        glPushName((int32_t)pl);
+        glPushName((long)pl);
       }
       pl->pobject->render();
     }
@@ -165,7 +165,7 @@
       //error("specialRendering: still %s num=%d", 
pl->pobject->name.class_name, num);
       if (! pl->pobject->isBehavior(NO_SELECTABLE)) {
         glPopName();
-        glPushName((int32_t)pl);
+        glPushName((long)pl);
       }
       pl->pobject->render();
     }
@@ -175,7 +175,7 @@
       //error("specialRendering: invisible %s", pl->pobject->name.class_name);
       if (! pl->pobject->isBehavior(NO_SELECTABLE)) {
         glPopName();
-        glPushName((int32_t)pl);
+        glPushName((long)pl);
       }
       pl->pobject->render();
     }
@@ -249,7 +249,7 @@
     return 0;
   }
   glPopName();
-  glPushName((int32_t)this);
+  glPushName((long)this);
   glPushMatrix();
    M4_to_GL(gl_mat, &posmat);
    glMultMatrixf(gl_mat);
@@ -502,20 +502,20 @@
 {
   /* search for solids in solidlist */
   for (Solid *ps = first_solid; ps ; ps = ps->next) {
-    if (number == (int32_t)ps) {
+    if (number == (long)ps) {
       return ps;
     }
   }
   /* search for solids handled by specialRendering */
   for (ObjectList *pl = mobileList; pl ; pl = pl->next) {
-    if (pl->pobject && number == (int32_t)pl) {
+    if (pl->pobject && number == (long)pl) {
       trace(DBG_VGL, "getSolidByNumber: number=%d type=%s", number, 
pl->pobject->name.class_name);
       return pl->pobject->soh;
     }
   }
 #if 1 //pd
   for (ObjectList *pl = stillList; pl ; pl = pl->next) {
-    if (pl->pobject && number == (int32_t)pl) {
+    if (pl->pobject && number == (long)pl) {
       trace(DBG_VGL, "getSolidByNumber: number=%d type=%s", number, 
pl->pobject->name.class_name);
       return pl->pobject->soh;
     }
diff -urN ../tmp-orig/vreng-5.0.1/src/wo/model.cc ./src/wo/model.cc
--- ../tmp-orig/vreng-5.0.1/src/wo/model.cc     2003-09-04 12:39:22.000000000 
+0200
+++ ./src/wo/model.cc   2005-02-09 14:46:51.112229778 +0100
@@ -21,10 +21,10 @@
     
   while (t[1]) {
     if (!strcmp(t[1], str))
-      return (int32_t) t[2];
+      return (long) t[2];
     t += 3;
   }
-  return (int32_t) t[2];
+  return (long) t[2];
 }
 
 int Model::getModelTypeByExt(char *str)
@@ -37,11 +37,11 @@
     p++;
     while (t[0]) {
       if (!strcmp(t[0], p))
-        return (int32_t) t[2];
+        return (long) t[2];
       t += 3;
     }
   } 
-  return (int32_t) t[2];
+  return (long) t[2];
 }
 
 WObject * Model::creator(char *l)
diff -urN ../tmp-orig/vreng-5.0.1/src/wo/wobject.cc ./src/wo/wobject.cc
--- ../tmp-orig/vreng-5.0.1/src/wo/wobject.cc   2003-09-21 22:35:37.000000000 
+0200
+++ ./src/wo/wobject.cc 2005-02-09 14:35:03.000000000 +0100
@@ -394,7 +394,7 @@
 void Solid::specialAction(int action_id, void *data, time_t sec, time_t usec)
 {
   WObject *po = (this==NULL) ? worlds->plocaluser : getObjectFromSolid();
-  if (this && (int) object < 1000) { // HACK! when objbar already stuck
+  if (this && (long) object < 1000) { // HACK! when objbar already stuck
     error("solid corrupted");
     return;
   }
diff -urN ../tmp-orig/vreng-5.0.1/src/vgl/bones/boneVect3d.h 
./src/vgl/bones/boneVect3d.h
--- ../tmp-orig/vreng-5.0.1/src/vgl/bones/boneVect3d.h  2003-02-18 
22:01:50.000000000 +0100
+++ ./src/vgl/bones/boneVect3d.h        2005-02-09 14:45:22.602322795 +0100
@@ -29,13 +29,6 @@
   z = oz;
 }
 
-inline Vect3D(Vect3D & op)
-{
-  x = op.x;
-  y = op.y;
-  z = op.z;
-}
-
 inline Vect3D(Vect3D * op)
 {
   x = op->x;


---------------------------------------
Received: (at 294381-done) by bugs.debian.org; 5 May 2005 15:21:04 +0000
>From [EMAIL PROTECTED] Thu May 05 08:21:04 2005
Return-path: <[EMAIL PROTECTED]>
Received: from sorrow.cyrius.com [65.19.161.204] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DTi9v-0008P5-00; Thu, 05 May 2005 08:21:03 -0700
Received: by sorrow.cyrius.com (Postfix, from userid 10)
        id B541364D4F; Thu,  5 May 2005 15:21:03 +0000 (UTC)
Received: by derision.cyrius.com (Postfix, from userid 1000)
        id 8B449780D0; Thu,  5 May 2005 16:20:51 +0100 (BST)
Date: Thu, 5 May 2005 16:20:51 +0100
From: Martin Michlmayr <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED]
Subject: Removed
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6+20040907i
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=-2.0 required=4.0 tests=BAYES_00,ONEWORD autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 3

This package has been removed from Debian because it is buggy and
outdated.

-- 
Martin Michlmayr
http://www.cyrius.com/


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

Reply via email to