Bug#476158: synopsis - FTBFS: error: invalid conversion from 'int*' to 'Py_ssize_t*'

2008-04-16 Thread Chris Lamb
tags 476158 + patch
thanks

Patch attached.


Regards,

-- 
Chris Lamb, UK   [EMAIL PROTECTED]
GPG: 0x634F9A20
diff -urNad synopsis-0.8.0.orig/src/Synopsis/Python/Object.hh 
synopsis-0.8.0/src/Synopsis/Python/Object.hh
--- synopsis-0.8.0.orig/src/Synopsis/Python/Object.hh   2008-04-17 
04:58:46.0 +0100
+++ synopsis-0.8.0/src/Synopsis/Python/Object.hh2008-04-17 
05:00:02.0 +0100
@@ -276,7 +276,7 @@
   void incr();
 
   Dict my_dict;
-  int my_pos;
+  Py_ssize_t my_pos;
 
   Tuple my_current;
 };
@@ -382,7 +382,7 @@
   if (!PyString_Check(o.my_impl) || PyString_GET_SIZE(o.my_impl) != 1)
 throw TypeError(object not a character);
   char *value;
-  int length;
+  Py_ssize_t length;
   PyString_AsStringAndSize(o.my_impl, value, length);
   return value[0];
 }


signature.asc
Description: PGP signature


Bug#476158: synopsis - FTBFS: error: invalid conversion from 'int*' to 'Py_ssize_t*'

2008-04-14 Thread Bastian Blank
Package: synopsis
Version: 0.8.0-5.1+b1
Severity: serious

There was an error while trying to autobuild your package:

 Automatic build of synopsis_0.8.0-5.1+b1 on debian-31.osdl.marist.edu by 
 sbuild/s390 98
[...]
 compiling ucpp.o
 g++ -I /build/buildd/synopsis-0.8.0/Synopsis/Parsers/Cpp/ucpp 
 -I/build/buildd/synopsis-0.8.0/build/ctemp.linux-s390x/src 
 -I/build/buildd/synopsis-0.8.0/src -I/usr/include/gc   -I/usr/local/include 
 -I /usr/include/python2.5 -pthread -g -O2 -fPIC -c -o ucpp.o 
 /build/buildd/synopsis-0.8.0/Synopsis/Parsers/Cpp/ucpp/ucpp.cc
 In file included from 
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Module.hh:11,
  from 
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Kit.hh:11,
  from 
 /build/buildd/synopsis-0.8.0/src/Synopsis/AST/ASTKit.hh:11,
  from 
 /build/buildd/synopsis-0.8.0/Synopsis/Parsers/Cpp/ucpp/ucpp.cc:8:
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Object.hh: In static member 
 function 'static T Synopsis::Python::Object::narrow(Synopsis::Python::Object) 
 [with T = char]':
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Object.hh:389: error: 
 invalid conversion from 'int*' to 'Py_ssize_t*'
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Object.hh:389: error:   
 initializing argument 3 of 'int PyString_AsStringAndSize(PyObject*, char**, 
 Py_ssize_t*)'
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Object.hh: In member 
 function 'void Synopsis::Python::Dict::iterator::incr()':
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Object.hh:810: error: 
 invalid conversion from 'int*' to 'Py_ssize_t*'
 /build/buildd/synopsis-0.8.0/src/Synopsis/Python/Object.hh:810: error:   
 initializing argument 2 of 'int PyDict_Next(PyObject*, Py_ssize_t*, 
 PyObject**, PyObject**)'
 make[1]: *** [ucpp.o] Error 1
 make[1]: Leaving directory 
 `/build/buildd/synopsis-0.8.0/build/temp.linux-s390x-2.5/Synopsis/Parsers/Cpp/ucpp'
 error: command 'sh' failed with exit status 2
 make: *** [build-stamp] Error 1
 dpkg-buildpackage: failure: debian/rules build gave error exit status 2
 **
 Build finished at 20080413-1820
 FAILED [dpkg-buildpackage died]



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