[winswitch] Compiling error with Python 3.7.0-rc1
Antonio Trande
anto.trande at gmail.com
Sat Jun 23 11:14:20 BST 2018
Hi all.
On Fedora 29 (devel branch), we are already using Python-3.7.0-rc1 (and
GCC-8.1.1). Recompiling xpra-2.3.1 i'm obtaining this error:
gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-fPIC -Ixpra/buffers -I/usr/include/python3.7m -c xpra/buffers/buffers.c
-o build/temp.linux-x86_64-3.7/xpra/buffers/buffers.o -O3 -Wall -Werror
-fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
xpra/buffers/buffers.c: In function ‘_object_as_buffer’:
xpra/buffers/buffers.c:43:5: error: ‘PyObject_AsReadBuffer’ is
deprecated [-Werror=deprecated-declarations]
return PyObject_AsReadBuffer(obj, buffer, buffer_len);
^~~~~~
In file included from /usr/include/python3.7m/Python.h:128,
from xpra/buffers/buffers.c:8:
/usr/include/python3.7m/abstract.h:489:17: note: declared here
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
^~~~~~~~~~~~~~~~~~~~~
xpra/buffers/buffers.c: In function ‘_object_as_write_buffer’:
xpra/buffers/buffers.c:56:5: error: ‘PyObject_AsWriteBuffer’ is
deprecated [-Werror=deprecated-declarations]
return PyObject_AsWriteBuffer(obj, buffer, buffer_len);
^~~~~~
In file included from /usr/include/python3.7m/Python.h:128,
from xpra/buffers/buffers.c:8:
/usr/include/python3.7m/abstract.h:500:17: note: declared here
PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
error: command 'gcc' failed with exit status 1
Can you fix it please?
Full build log:
https://koji.fedoraproject.org/koji/getfile?taskID=27753977&volume=DEFAULT&name=build.log
--
---
Antonio Trande
Fedora Project
mailto 'sagitter at fedoraproject dot org'
GPG key: 0x5E212EE1D35568BE
GPG key server: https://keys.fedoraproject.org/
More information about the shifter-users
mailing list