persist2

$ python setup.py build
running build
running build_ext
building 'persist' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iinclude -I/usr/include/python2.7 -c persist.cc -o build/temp.linux-x86_64-2.7/persist.o -fpermissive
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from include/pobj.h:16:0,
                 from include/objlib.h:11,
                 from persist.h:12,
                 from persist.cc:11:
include/heapmgr.h: In constructor ‘HeapMgr::HeapMgr(char*)’:
include/heapmgr.h:105:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
persist.cc: In function ‘void initpersist()’:
persist.cc:234:17: warning: variable ‘m’ set but not used [-Wunused-but-set-variable]
In file included from include/pobj.h:17:0,
                 from include/objlib.h:11,
                 from persist.h:12,
                 from persist.cc:11:
include/cs.h: At global scope:
include/cs.h:52:12: warning: ‘int CSinc(unsigned int*)’ defined but not used [-Wunused-function]
include/cs.h:65:12: warning: ‘int CSdec(unsigned int*)’ defined but not used [-Wunused-function]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iinclude -I/usr/include/python2.7 -c p_dict.cc -o build/temp.linux-x86_64-2.7/p_dict.o -fpermissive
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from include/pobj.h:16:0,
                 from include/objlib.h:11,
                 from persist.h:12,
                 from p_dict.cc:10:
include/heapmgr.h: In constructor ‘HeapMgr::HeapMgr(char*)’:
include/heapmgr.h:105:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
p_dict.cc: In function ‘PyObject* pDictToObject(pDictObject*)’:
p_dict.cc:25:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
p_dict.cc: In function ‘int pDict_print(pDictObject*, FILE*, int)’:
p_dict.cc:288:65: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘Py_ssize_t {aka long int}’ [-Wformat]
p_dict.cc: At global scope:
p_dict.cc:413:1: warning: invalid conversion from ‘inquiry {aka int (*)(_object*)}’ to ‘lenfunc {aka long int (*)(_object*)}’ [-fpermissive]
p_dict.cc:456:1: warning: invalid conversion from ‘destructor {aka void (*)(_object*)}’ to ‘freefunc {aka void (*)(void*)}’ [-fpermissive]
In file included from include/pobj.h:17:0,
                 from include/objlib.h:11,
                 from persist.h:12,
                 from p_dict.cc:10:
include/cs.h:52:12: warning: ‘int CSinc(unsigned int*)’ defined but not used [-Wunused-function]
include/cs.h:65:12: warning: ‘int CSdec(unsigned int*)’ defined but not used [-Wunused-function]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iinclude -I/usr/include/python2.7 -c p_list.cc -o build/temp.linux-x86_64-2.7/p_list.o -fpermissive
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from include/pobj.h:16:0,
                 from include/objlib.h:11,
                 from persist.h:12,
                 from p_list.cc:10:
include/heapmgr.h: In constructor ‘HeapMgr::HeapMgr(char*)’:
include/heapmgr.h:105:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
p_list.cc: At global scope:
p_list.cc:331:10: warning: ‘intargfunc’ is deprecated (declared at /usr/include/python2.7/object.h:139) [-Wdeprecated-declarations]
p_list.cc:338:1: warning: invalid conversion from ‘inquiry {aka int (*)(_object*)}’ to ‘lenfunc {aka long int (*)(_object*)}’ [-fpermissive]
p_list.cc:338:1: warning: invalid conversion from ‘intargfunc {aka _object* (*)(_object*, int)}’ to ‘ssizeargfunc {aka _object* (*)(_object*, long int)}’ [-fpermissive]
p_list.cc:338:1: warning: invalid conversion from ‘intobjargproc {aka int (*)(_object*, int, _object*)}’ to ‘ssizeobjargproc {aka int (*)(_object*, long int, _object*)}’ [-fpermissive]
p_list.cc:381:1: warning: invalid conversion from ‘destructor {aka void (*)(_object*)}’ to ‘freefunc {aka void (*)(void*)}’ [-fpermissive]
In file included from include/pobj.h:17:0,
                 from include/objlib.h:11,
                 from persist.h:12,
                 from p_list.cc:10:
include/cs.h:52:12: warning: ‘int CSinc(unsigned int*)’ defined but not used [-Wunused-function]
include/cs.h:65:12: warning: ‘int CSdec(unsigned int*)’ defined but not used [-Wunused-function]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iinclude -I/usr/include/python2.7 -c lib/pagemgr.cc -o build/temp.linux-x86_64-2.7/lib/pagemgr.o -fpermissive
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
lib/pagemgr.cc: In member function ‘void PageMgr::open()’:
lib/pagemgr.cc:26:20: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
lib/pagemgr.cc: In member function ‘void PageMgr::init()’:
lib/pagemgr.cc:75:31: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
lib/pagemgr.cc: In member function ‘void* PageMgr::allocate(int)’:
lib/pagemgr.cc:130:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
lib/pagemgr.cc: In member function ‘void PageMgr::release(void*, int)’:
lib/pagemgr.cc:222:41: warning: cast from ‘void*’ to ‘int’ loses precision [-fpermissive]
lib/pagemgr.cc:222:58: warning: cast from ‘char*’ to ‘int’ loses precision [-fpermissive]
lib/pagemgr.cc: In function ‘void sigsegv_handler(int, siginfo_t*, void*)’:
lib/pagemgr.cc:297:15: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
In file included from lib/pagemgr.cc:11:0:
include/cs.h: At global scope:
include/cs.h:52:12: warning: ‘int CSinc(unsigned int*)’ defined but not used [-Wunused-function]
include/cs.h:65:12: warning: ‘int CSdec(unsigned int*)’ defined but not used [-Wunused-function]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Iinclude -I/usr/include/python2.7 -c lib/heapmgr.cc -o build/temp.linux-x86_64-2.7/lib/heapmgr.o -fpermissive
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from lib/heapmgr.cc:12:0:
include/heapmgr.h: In constructor ‘HeapMgr::HeapMgr(char*)’:
include/heapmgr.h:105:18: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
lib/heapmgr.cc: In member function ‘void* HeapMgr::alloc(int)’:
lib/heapmgr.cc:120:61: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
lib/heapmgr.cc:120:61: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
lib/heapmgr.cc:120:61: error: lvalue required as left operand of assignment
lib/heapmgr.cc: In member function ‘void HeapMgr::free(void*)’:
lib/heapmgr.cc:161:48: error: lvalue required as left operand of assignment
In file included from lib/heapmgr.cc:11:0:
include/cs.h: At global scope:
include/cs.h:52:12: warning: ‘int CSinc(unsigned int*)’ defined but not used [-Wunused-function]
include/cs.h:65:12: warning: ‘int CSdec(unsigned int*)’ defined but not used [-Wunused-function]
error: command 'gcc' failed with exit status 1

Tags:

Edit this page
Wiki-logo