Closed
Description
Directions
Tried to built native packages for Centos 6/7 as per documentation. But script fails to run setup.py script
Bug reports
Steps to reproduce:
- Run ./ci/docker/build-packages.sh
Expected behaviour: [What was expected to happen.]
RPM's are built
Actual behaviour: [What actually happened.]
Erros when runing setup.py
Additional info: [Include version of libssh2
and any other relevant information.]
Centos7 log:
[root@5c04acabe44e src]# python setup.py install
running install
running bdist_egg
running egg_info
writing ssh2_python.egg-info/PKG-INFO
writing top-level names to ssh2_python.egg-info/top_level.txt
writing dependency_links to ssh2_python.egg-info/dependency_links.txt
reading manifest file 'ssh2_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'docker'
warning: no previously-included files found matching '.travis.yml'
writing manifest file 'ssh2_python.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'ssh2.fileinfo' extension
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 -Ilibssh2/include -I/usr/include/python2.7 -c ssh2/fileinfo.c -o build/temp.linux-x86_64-2.7/ssh2/fileinfo.o -O3
ssh2/fileinfo.c:761:3: error: unknown type name 'libssh2_struct_stat'
libssh2_struct_stat *_stat;
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo___cinit__':
ssh2/fileinfo.c:1110:33: error: 'libssh2_struct_stat' undeclared (first use in this function)
__pyx_v_self->_stat = ((libssh2_struct_stat *)malloc((sizeof(libssh2_struct_stat))));
^
ssh2/fileinfo.c:1110:33: note: each undeclared identifier is reported only once for each function it appears in
ssh2/fileinfo.c:1110:54: error: expected expression before ')' token
__pyx_v_self->_stat = ((libssh2_struct_stat *)malloc((sizeof(libssh2_struct_stat))));
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_7st_size___get__':
ssh2/fileinfo.c:1296:68: error: request for member 'st_size' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_libssh2_uint64_t(__pyx_v_self->_stat->st_size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 41, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_7st_mode___get__':
ssh2/fileinfo.c:1356:65: error: request for member 'st_mode' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_unsigned_long(__pyx_v_self->_stat->st_mode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_6st_ino___get__':
ssh2/fileinfo.c:1416:57: error: request for member 'st_ino' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_ino_t(__pyx_v_self->_stat->st_ino); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_8st_nlink___get__':
ssh2/fileinfo.c:1476:59: error: request for member 'st_nlink' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_nlink_t(__pyx_v_self->_stat->st_nlink); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_6st_uid___get__':
ssh2/fileinfo.c:1536:57: error: request for member 'st_uid' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_uid_t(__pyx_v_self->_stat->st_uid); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 58, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_6st_gid___get__':
ssh2/fileinfo.c:1596:57: error: request for member 'st_gid' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_gid_t(__pyx_v_self->_stat->st_gid); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 62, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_7st_rdev___get__':
ssh2/fileinfo.c:1656:57: error: request for member 'st_rdev' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_dev_t(__pyx_v_self->_stat->st_rdev); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 66, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_10st_blksize___get__':
ssh2/fileinfo.c:1716:61: error: request for member 'st_blksize' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_blksize_t(__pyx_v_self->_stat->st_blksize); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 70, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_9st_blocks___get__':
ssh2/fileinfo.c:1776:60: error: request for member 'st_blocks' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_blkcnt_t(__pyx_v_self->_stat->st_blocks); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_8st_atime___get__':
ssh2/fileinfo.c:1836:58: error: request for member 'st_atim' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_time_t(__pyx_v_self->_stat->st_atime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_8st_mtime___get__':
ssh2/fileinfo.c:1896:58: error: request for member 'st_mtim' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_time_t(__pyx_v_self->_stat->st_mtime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 82, __pyx_L1_error)
^
ssh2/fileinfo.c: In function '__pyx_pf_4ssh2_8fileinfo_8FileInfo_8st_ctime___get__':
ssh2/fileinfo.c:1953:58: error: request for member 'st_ctim' in something not a structure or union
__pyx_t_1 = __Pyx_PyInt_From_time_t(__pyx_v_self->_stat->st_ctime); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 86, __pyx_L1_error)