Your message dated Mon, 08 Aug 2005 03:12:51 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#286471: fixed in inventor 2.1.5-10-4
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; 20 Dec 2004 12:53:51 +0000
>From [EMAIL PROTECTED] Mon Dec 20 04:53:51 2004
Return-path: <[EMAIL PROTECTED]>
Received: from c219139.adsl.hansenet.de (localhost.localdomain) 
[213.39.219.139] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CgN2s-0008Rw-00; Mon, 20 Dec 2004 04:53:51 -0800
Received: from aj by localhost.localdomain with local (Exim 4.34)
        id 1CgN7a-0004RZ-Fi; Mon, 20 Dec 2004 13:58:42 +0100
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: inventor: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses 
precision
Message-Id: <[EMAIL PROTECTED]>
Date: Mon, 20 Dec 2004 13:58:42 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (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_2004_03_25
X-Spam-Level: 

Package: inventor
Severity: normal
Tags: patch

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

/usr/bin/g++    -g -D_REENTRANT -O3    -DIVBINDIR=\"/usr/bin\" 
-DIVLIBDIR=\"/usr/lib\" -DIVHDRTOP=\"/usr/include/Inventor\" 
-DIVFONTPATH=\"/usr/share/inventor/fonts\" 
-DIVHELPDIR=\"/usr/share/inventor/help\" 
-DIVDATADIR=\"/usr/share/inventor/data/models\" 
-DIVMATERIALSDIR=\"/usr/share/inventor/data/materials\" 
-DIVTEXTURESDIR=\"/usr/share/inventor/data/textures\" 
-DIVDEMOBINDIR=\"/usr/lib/inventor\" 
-DIVDEMODATADIR=\"/usr/share/inventor/data/demos\" -DPDFVIEWER=\"xpdf\" 
-I/usr/X11R6/include -I. -I../../../../lib/database/include 
-I../../../../lib/interaction/include -I../../../../lib/nodekits/include 
-I../../../../libSoXt/include -fPIC       -O -DNDEBUG   -c So.c++
SoType.c++: In static member function 'static SoType SoType::fromName(SbName)':
SoType.c++:337: error: cast from 'void*' to 'int' loses precision
SoOutput.c++: In member function 'int SoOutput::findReference(const SoBase*) 
const':
SoOutput.c++:1468: error: cast from 'void*' to 'int' loses precision
make[5]: *** [So.o] Error 1
make[5]: Leaving directory `/inventor-2.1.5-10/lib/database/src/so'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/inventor-2.1.5-10/lib/database/src/so/SoOutput.c++ 
./lib/database/src/so/SoOutput.c++
--- ../tmp-orig/inventor-2.1.5-10/lib/database/src/so/SoOutput.c++      
2001-09-25 02:45:35.000000000 +0200
+++ ./lib/database/src/so/SoOutput.c++  2004-12-20 11:05:40.000000000 +0100
@@ -1462,11 +1462,7 @@
 
     // Generates a CC warning. Ho hum.
     if (refDict->find((unsigned long) base, ref))
-#if (_MIPS_SZPTR == 64 || __ia64)
         referenceId = (int) ((unsigned long) ref);
-#else
-       referenceId = (int)ref;
-#endif
 
     return referenceId;
 }
diff -urN ../tmp-orig/inventor-2.1.5-10/lib/database/src/so/SoType.c++ 
./lib/database/src/so/SoType.c++
--- ../tmp-orig/inventor-2.1.5-10/lib/database/src/so/SoType.c++        
2003-07-12 00:40:53.000000000 +0200
+++ ./lib/database/src/so/SoType.c++    2004-12-20 11:05:09.000000000 +0100
@@ -331,11 +331,7 @@
     if (b == NULL)
        return SoType::badType();
 
-#if (_MIPS_SZPTR == 64 || __ia64)
     SoType result = typeData[(int) ((unsigned long) b)].type;
-#else
-    SoType result = typeData[(int)b].type;
-#endif
 
     if (result.storage.isPublic == 0) {
 #ifdef DEBUG
diff -urN 
../tmp-orig/inventor-2.1.5-10/lib/interaction/src/draggers/SoDragger.c++ 
./lib/interaction/src/draggers/SoDragger.c++
--- ../tmp-orig/inventor-2.1.5-10/lib/interaction/src/draggers/SoDragger.c++    
2001-09-25 02:45:44.000000000 +0200
+++ ./lib/interaction/src/draggers/SoDragger.c++        2004-12-20 
11:12:42.000000000 +0100
@@ -686,11 +686,7 @@
                int indexInPath = tempPathToThis->getIndex(numFmHead+1);
 
                int numKidsNow    = children->getLength();
-#if (_MIPS_SZPTR == 64 || __ia64)
                int numKidsBefore = (int) ((long) 
(*tempPathNumKidsHack)[numFmHead]);
-#else
-               int numKidsBefore = (int) (*tempPathNumKidsHack)[numFmHead];
-#endif
 
                // To be correct, the childNode has to be the correct numbered
                // child under the parent, and the parent should still
diff -urN 
../tmp-orig/inventor-2.1.5-10/lib/nodekits/src/nodekits/SoNkCatalog.c++ 
./lib/nodekits/src/nodekits/SoNkCatalog.c++
--- ../tmp-orig/inventor-2.1.5-10/lib/nodekits/src/nodekits/SoNkCatalog.c++     
2001-09-25 02:45:46.000000000 +0200
+++ ./lib/nodekits/src/nodekits/SoNkCatalog.c++ 2004-12-20 11:39:08.000000000 
+0100
@@ -336,11 +336,7 @@
     void *castPNum;
 
     if ( partNameDict.find( (unsigned long) theName.getString(), castPNum ) )
-#if (_MIPS_SZPTR == 64 || __ia64)
        return ( (int) ((long) castPNum) );  // System long
-#else
-       return ( (int) castPNum );
-#endif
     else 
        return SO_CATALOG_NAME_NOT_FOUND;
 }
diff -urN 
../tmp-orig/inventor-2.1.5-10/lib/nodekits/src/upgraders/SoV1NkCatalog.c++ 
./lib/nodekits/src/upgraders/SoV1NkCatalog.c++
--- ../tmp-orig/inventor-2.1.5-10/lib/nodekits/src/upgraders/SoV1NkCatalog.c++  
2001-09-25 02:45:47.000000000 +0200
+++ ./lib/nodekits/src/upgraders/SoV1NkCatalog.c++      2004-12-20 
11:41:29.000000000 +0100
@@ -330,11 +330,7 @@
     void *castPNum;
 
     if ( partNameDict.find( (unsigned long) theName.getString(), castPNum ) )
-#if (_MIPS_SZPTR == 64 || __ia64)
        return ( (int) ((long) castPNum) );  // System long
-#else
-       return ( (int) castPNum );
-#endif
     else 
        return SO_V1_CATALOG_NAME_NOT_FOUND;
 }
Binary files ../tmp-orig/inventor-2.1.5-10/libFL/src/libFL_i386.a and 
./libFL/src/libFL_i386.a differ
diff -urN ../tmp-orig/inventor-2.1.5-10/libSoXt/src/SoXtRsrc.c++ 
./libSoXt/src/SoXtRsrc.c++
--- ../tmp-orig/inventor-2.1.5-10/libSoXt/src/SoXtRsrc.c++      2001-09-25 
02:45:48.000000000 +0200
+++ ./libSoXt/src/SoXtRsrc.c++  2004-12-20 12:03:40.172993584 +0100
@@ -145,13 +145,8 @@
     classList = new XrmQuark[listSize];
     for (q = 0, s = len - 1;
         s >= 0; q++, s--) {
-#if (_MIPS_SZPTR == 64 || __ia64)
         nameList[q]  = (XrmQuark) ((long) nameplist[s]);
         classList[q] = (XrmQuark) ((long) classplist[s]);
-#else
-        nameList[q]  = (XrmQuark) nameplist[s];
-        classList[q] = (XrmQuark) classplist[s];
-#endif
     }
 
     // make the last entry the NULL sentinel

---------------------------------------
Received: (at 286471-close) by bugs.debian.org; 8 Aug 2005 10:20:26 +0000
>From [EMAIL PROTECTED] Mon Aug 08 03:20:26 2005
Return-path: <[EMAIL PROTECTED]>
Received: from joerg by spohr.debian.org with local (Exim 3.36 1 (Debian))
        id 1E24cl-00053D-00; Mon, 08 Aug 2005 03:12:51 -0700
From: [EMAIL PROTECTED] (Steve M. Robbins)
To: [EMAIL PROTECTED]
X-Katie: lisa $Revision: 1.30 $
Subject: Bug#286471: fixed in inventor 2.1.5-10-4
Message-Id: <[EMAIL PROTECTED]>
Sender: Joerg Jaspert <[EMAIL PROTECTED]>
Date: Mon, 08 Aug 2005 03:12:51 -0700
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-Level: 
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

Source: inventor
Source-Version: 2.1.5-10-4

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

inventor-clients_2.1.5-10-4_i386.deb
  to pool/main/i/inventor/inventor-clients_2.1.5-10-4_i386.deb
inventor-data_2.1.5-10-4_all.deb
  to pool/main/i/inventor/inventor-data_2.1.5-10-4_all.deb
inventor-demo_2.1.5-10-4_i386.deb
  to pool/main/i/inventor/inventor-demo_2.1.5-10-4_i386.deb
inventor-dev_2.1.5-10-4_i386.deb
  to pool/main/i/inventor/inventor-dev_2.1.5-10-4_i386.deb
inventor-doc_2.1.5-10-4_all.deb
  to pool/main/i/inventor/inventor-doc_2.1.5-10-4_all.deb
inventor_2.1.5-10-4.diff.gz
  to pool/main/i/inventor/inventor_2.1.5-10-4.diff.gz
inventor_2.1.5-10-4.dsc
  to pool/main/i/inventor/inventor_2.1.5-10-4.dsc
libinventor0_2.1.5-10-4_i386.deb
  to pool/main/i/inventor/libinventor0_2.1.5-10-4_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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve M. Robbins <[EMAIL PROTECTED]> (supplier of updated inventor 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 [EMAIL PROTECTED])


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

Format: 1.7
Date: Sun,  7 Aug 2005 21:25:40 -0400
Source: inventor
Binary: inventor-doc inventor-data libinventor0 inventor-demo inventor-clients 
inventor-dev
Architecture: source i386 all
Version: 2.1.5-10-4
Distribution: unstable
Urgency: low
Maintainer: Steve M. Robbins <[EMAIL PROTECTED]>
Changed-By: Steve M. Robbins <[EMAIL PROTECTED]>
Description: 
 inventor-clients - Open Inventor client programs
 inventor-data - Open Inventor sample data files
 inventor-demo - Open Inventor demonstration programs and example code
 inventor-dev - Open Inventor development files
 inventor-doc - Open Inventor documentation
 libinventor0 - Open Inventor runtime environment
Closes: 286471 320906
Changes: 
 inventor (2.1.5-10-4) unstable; urgency=low
 .
   * G++ 4.0 transition: rename back to libinventor0.
 .
   * lib/database/include/Inventor/SoPath.h: Declare SoTempPath.
   Closes: #320906.
 .
   * lib/database/include/machine.h: Define USE_64BIT_HACKS as true
   for 64-bit machines, including AMD 64.
 .
   * lib/database/src/sb/SbTime.c++:
   * lib/database/src/so/SoOutput.c++:
   * lib/database/src/so/SoType.c++:
   * lib/interaction/src/draggers/SoDragger.c++:
   * lib/nodekits/src/nodekits/SoNkCatalog.c++:
   * lib/nodekits/src/upgraders/SoV1NkCatalog.c++:
   * libSoXt/src/SoXtRsrc.c++: Replace occurrances of
     '_MIPS_SZLONG == 64 || __ia64' by USE_64BIT_HACKS.  Closes: #286471.
Files: 
 740eb15512dda03c8abd1c73e0b444e6 761 devel optional inventor_2.1.5-10-4.dsc
 ddd2f4093c4825f884ff76abc2fc47f6 16803 devel optional 
inventor_2.1.5-10-4.diff.gz
 ed43420b0ce3c226fb6b951e7ec4648f 629352 devel optional 
inventor-doc_2.1.5-10-4_all.deb
 3e789fe83791ef458096a8d22268d5b5 3141432 graphics optional 
inventor-data_2.1.5-10-4_all.deb
 70901d0b5658c8cab4ffeea58454e795 1792342 libs optional 
libinventor0_2.1.5-10-4_i386.deb
 00d112d0258fd7fb6828740fb3b6cb34 369230 devel optional 
inventor-dev_2.1.5-10-4_i386.deb
 2ea104c4b58676a12d4e7b048384ae90 254210 graphics optional 
inventor-clients_2.1.5-10-4_i386.deb
 72fc7d584d38021737b11c00ab9d9718 1832652 graphics optional 
inventor-demo_2.1.5-10-4_i386.deb

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

iD8DBQFC9s8i0i2bPSHbMcURAqJqAJ0WmCci2WwJU5JRvC/VwvPqrZeO2ACfckOp
7SXqs9MHMIG7ADTEmbtzBYA=
=9Tkx
-----END PGP SIGNATURE-----


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

Reply via email to