Help needed regarding a build failure on x32 for python-twisted, might be kernel related


I'm trying to build the new python-twisted 18.9.0, but it fails on 32 bits architecture:

BUILDSTDERR: In file included from /usr/include/asm/socket.h:1,
BUILDSTDERR: from /usr/include/bits/socket.h:393,
BUILDSTDERR: from /usr/include/sys/socket.h:33,
BUILDSTDERR: from src/twisted/python/_sendmsg.c:16:
BUILDSTDERR: src/twisted/python/_sendmsg.c: In function 'init_sendmsg':
BUILDSTDERR: src/twisted/python/_sendmsg.c:158:64: error: '__kernel_long_t' undeclared (first use in this function)
BUILDSTDERR: 158 | if (-1 == PyModule_AddIntConstant(module, "SCM_TIMESTAMP", SCM_TIMESTAMP)) {
BUILDSTDERR: | ^~~~~~~~~~~~~
BUILDSTDERR: src/twisted/python/_sendmsg.c:158:64: note: each undeclared identifier is reported only once for each function it appears in
BUILDSTDERR: error: command 'gcc' failed with exit status 1

<a href="" title=""></a>

The relevant code in src/twisted/python/_sendmsg.c:

#if defined(SCM_TIMESTAMP)
if (-1 == PyModule_AddIntConstant(module, "SCM_TIMESTAMP", SCM_TIMESTAMP)) {

<a href="" title=""></a>

This seems related to the recent changes in the kernel regarding year 2038 bug and timestamps:
<a href="" title=""></a>

Anyone has any insight as to what might be happening and how to solve it?




Re: Help needed regarding a build failure on x32 for python-twis

By Laura Abbott at 03/07/2019 - 17:55

On 3/7/19 2:23 PM, Robert-André Mauchin wrote:
See <a href="" title=""></a>