Bug#614498: guppy: FTBFS with Python 2.7: ImportError: guppy/sets/setsc.so: undefined symbol: _PyLong_AsScaledDouble
Hi, On 09/29/2011 07:49 AM, Nobuhiro Iwamatsu wrote: I've just tried to build the guppy version from SVN and run the test suite with Python 2.7 on an amd64 machine. The test suite already fails test1 in guppy/sets/test.py. I've also tried on a 32 bit machine and and their it didn't fail. The reason is simple: _PyLong_Frexp takes a Py_ssize_t* as second argument but a int* is passed. Therefor _PyLong_Frexp messes with other variables on the stack since Py_ssize_t is larger than int on amd64. Attached is a patch to fix this issues. I checked this package with your patch on latest unstable. This problem does not seem to be settled with your patch. I attach build log. As noted in my first mail, my patch was against the latest SVN revision. And there these issues were already fixed (see revision 87 from [1] and onwards). And since Yaroslav explicitly talked about including these changes I didn't include them in my patch. Regards, [1] http://guppy-pe.svn.sourceforge.net/viewvc/guppy-pe?view=revisionrevision=87 -- Sebastian Ramacher signature.asc Description: OpenPGP digital signature
Bug#614498: guppy: FTBFS with Python 2.7: ImportError: guppy/sets/setsc.so: undefined symbol: _PyLong_AsScaledDouble
Hi, 2011/9/29 Sebastian Ramacher s.ramac...@gmx.at: Hi, On 09/29/2011 07:49 AM, Nobuhiro Iwamatsu wrote: I've just tried to build the guppy version from SVN and run the test suite with Python 2.7 on an amd64 machine. The test suite already fails test1 in guppy/sets/test.py. I've also tried on a 32 bit machine and and their it didn't fail. The reason is simple: _PyLong_Frexp takes a Py_ssize_t* as second argument but a int* is passed. Therefor _PyLong_Frexp messes with other variables on the stack since Py_ssize_t is larger than int on amd64. Attached is a patch to fix this issues. I checked this package with your patch on latest unstable. This problem does not seem to be settled with your patch. I attach build log. As noted in my first mail, my patch was against the latest SVN revision. And there these issues were already fixed (see revision 87 from [1] and onwards). And since Yaroslav explicitly talked about including these changes I didn't include them in my patch. Oh, sorry. I did wrong understanding for your messege. Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#614498: guppy: FTBFS with Python 2.7: ImportError: guppy/sets/setsc.so: undefined symbol: _PyLong_AsScaledDouble
Hi, Hi I've just tried to build the guppy version from SVN and run the test suite with Python 2.7 on an amd64 machine. The test suite already fails test1 in guppy/sets/test.py. I've also tried on a 32 bit machine and and their it didn't fail. The reason is simple: _PyLong_Frexp takes a Py_ssize_t* as second argument but a int* is passed. Therefor _PyLong_Frexp messes with other variables on the stack since Py_ssize_t is larger than int on amd64. Attached is a patch to fix this issues. I checked this package with your patch on latest unstable. This problem does not seem to be settled with your patch. I attach build log. Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6 guppy_0.1.9-2.1_amd64.build.gz Description: GNU Zip compressed data guppy-0.1.9.debdiff Description: Binary data
Bug#614498: guppy: FTBFS with Python 2.7: ImportError:, guppy/sets/setsc.so: undefined symbol: _PyLong_AsScaledDouble
Hi I've just tried to build the guppy version from SVN and run the test suite with Python 2.7 on an amd64 machine. The test suite already fails test1 in guppy/sets/test.py. I've also tried on a 32 bit machine and and their it didn't fail. The reason is simple: _PyLong_Frexp takes a Py_ssize_t* as second argument but a int* is passed. Therefor _PyLong_Frexp messes with other variables on the stack since Py_ssize_t is larger than int on amd64. Attached is a patch to fix this issues. Kind regards, -- Sebastian Ramacher Index: src/sets/bitset.c === --- src/sets/bitset.c (revision 90) +++ src/sets/bitset.c (working copy) @@ -2011,7 +2011,11 @@ { NyBits *buf; int r = -1; +#if PY_VERSION_HEX = 0x0207 +Py_ssize_t e; +#else int e; +#endif long num_poses, num_bytes; double num_bits, x; int cpl = 0; signature.asc Description: OpenPGP digital signature