Menu

#3 python setup.py fails on rhel7 rebuild

v1.0_(example)
open
nobody
None
5
2016-01-28
2016-01-28
No

Trying to install pyid3lib 0.5.1 on rhel7 with this version of id3lib: id3lib-3.8.3-32.el7.x86_64

I'm using the --prefix option to install in a specific location, and I'm getting:

python setup.py install --prefix=/apps/pyid3lib-0.5.1/x86_64_sci7/
running install
running build
running build_ext
building 'pyid3lib' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c pyid3lib.cc -o build/temp.linux-x86_64-2.7/pyid3lib.o
pyid3lib.cc:86:6: warning: ‘intargfunc’ is deprecated (declared at /usr/include/python2.7/object.h:139) [-Wdeprecated-declarations]
(intargfunc)id3_item,
^
pyid3lib.cc:87:6: warning: ‘intintargfunc’ is deprecated (declared at /usr/include/python2.7/object.h:140) [-Wdeprecated-declarations]
(intintargfunc)id3_slice,
^
pyid3lib.cc:93:1: error: invalid conversion from ‘inquiry {aka int ()(_object)}’ to ‘lenfunc {aka long int ()(_object)}’ [-fpermissive]
};
^
pyid3lib.cc:93:1: error: invalid conversion from ‘intargfunc {aka _object ()(_object, int)}’ to ‘ssizeargfunc {aka _object ()(_object, long int)}’ [-fpermissive]
pyid3lib.cc:93:1: error: invalid conversion from ‘intintargfunc {aka _object ()(_object, int, int)}’ to ‘ssizessizeargfunc {aka _object ()(_object, long int, long int)}’ [-fpermissive]
pyid3lib.cc:93:1: error: invalid conversion from ‘intobjargproc {aka int ()(_object, int, _object)}’ to ‘ssizeobjargproc {aka int ()(_object, long int, _object)}’ [-fpermissive]
pyid3lib.cc:93:1: error: invalid conversion from ‘intintobjargproc {aka int ()(_object, int, int, _object)}’ to ‘ssizessizeobjargproc {aka int ()(_object, long int, long int, _object)}’ [-fpermissive]
pyid3lib.cc: In function ‘PyObject dict_from_frame(ID3_Frame)’:
pyid3lib.cc:769:8: warning: enumeration value ‘ID3FTY_NONE’ not handled in switch [-Wswitch]
switch( field->GetType() )
^
pyid3lib.cc:769:8: warning: enumeration value ‘ID3FTY_NUMTYPES’ not handled in switch [-Wswitch]
pyid3lib.cc:793:12: warning: deleting object of abstract class type ‘ID3_Frame::Iterator’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete fiter;
^
pyid3lib.cc: In function ‘ID3_Frame frame_from_dict(ID3_FrameID, PyObject)’:
pyid3lib.cc:853:10: warning: deleting object of abstract class type ‘ID3_Frame::Iterator’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete fiter;
^
pyid3lib.cc:865:10: warning: deleting object of abstract class type ‘ID3_Frame::Iterator’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete fiter;
^
pyid3lib.cc:876:10: warning: deleting object of abstract class type ‘ID3_Frame::Iterator’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete fiter;
^
pyid3lib.cc:880:51: error: cannot convert ‘int’ to ‘Py_ssize_t {aka long int}’ for argument ‘3’ to ‘int PyString_AsStringAndSize(PyObject, char, Py_ssize_t)’
PyString_AsStringAndSize( item, &data, &size );
^
pyid3lib.cc:847:8: warning: enumeration value ‘ID3FTY_NONE’ not handled in switch [-Wswitch]
switch( field->GetType() )
^
pyid3lib.cc:847:8: warning: enumeration value ‘ID3FTY_NUMTYPES’ not handled in switch [-Wswitch]
pyid3lib.cc:885:12: warning: deleting object of abstract class type ‘ID3_Frame::Iterator’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete fiter;
^
pyid3lib.cc: At global scope:
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
};
^
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
pyid3lib.cc:965:1: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
pyid3lib.cc: In function ‘PyObject id3_getattr(ID3Object, char)’:
pyid3lib.cc:1057:44: error: invalid conversion from ‘const char
’ to ‘char’ [-fpermissive]
if ( (slash = strchr( str, '/' )) != NULL )
^
pyid3lib.cc: In function ‘void initpyid3lib()’:
pyid3lib.cc:1383:76: warning: deprecated conversion from string constant to ‘char
’ [-Wwrite-strings]
ID3Error = PyErr_NewException( MODULE_NAME ".ID3Error", NULL, NULL );
^
pyid3lib.cc:1462:10: warning: deleting object of abstract class type ‘ID3_Frame::Iterator’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete fiter;
^
error: command 'gcc' failed with exit status 1

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.