Bug 140169 - patch for fixing FTBFS on 64bit archs when compiling with newer gcc
Summary: patch for fixing FTBFS on 64bit archs when compiling with newer gcc
Status: RESOLVED UNMAINTAINED
Alias: None
Product: boson
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: The Boson Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-16 21:08 UTC by Stephan Hermann
Modified: 2011-10-01 10:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Hermann 2007-01-16 21:08:25 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
Compiler:          gcc version 4.1.2 20070106 (prerelease) (Ubuntu 4.1.1-21ubuntu7) 
OS:                Linux

I fixed boson in ubuntu to compile with the newer gnu compiler toolchain.
Please use this patch to fix FTBFS bugs for the future.

Index: boson-0.13/boson/gameengine/script/pythonscript.cpp
===================================================================
--- boson-0.13.orig/boson/gameengine/script/pythonscript.cpp    2007-01-16 20:17:58.212226000 +0100
+++ boson-0.13/boson/gameengine/script/pythonscript.cpp 2007-01-16 20:18:50.367485500 +0100
@@ -688,7 +688,12 @@
   //  variables or submodules dict if possible.
   PyObject* key;
   PyObject* value;
+#ifdef __x86_64__
+  long pos = 0;
+#else
   int pos = 0;
+#endif
+
   while(PyDict_Next(moduledict, &pos, &key, &value))
   {
     // Check if value is any of the known types
@@ -774,7 +779,11 @@
   boDebug(700) << k_funcinfo << "Loading and merging " << PyDict_Size(submodules) << " submodules" << endl;
   PyObject* key;
   PyObject* value;
+#ifdef __x86_64__
+  long pos = 0;
+#else
   int pos = 0;
+#endif
   while(PyDict_Next(submodules, &pos, &key, &value))
   {
     // Check if current module already has module with this name
Comment 1 Christophe Marin 2008-11-20 15:25:15 UTC
Unfortunately, Boson is no longer maintained.

we're closing out all the boson bugs in Bugzilla since there is no chance of them being fixed.


Comment 2 Christophe Marin 2008-11-20 16:02:28 UTC
Accepting Andreas Beckermann's request to reopen the Boson's bugs. Sorry for the spam.
Comment 3 Andreas Beckermann 2011-10-01 10:08:50 UTC
Boson is considered discontinued. Closing bugs as UNMAINTAINED.