Hello,
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
https://koji.fedoraproject.org/koji/taskinfo?taskID=33279740
The relevant code in src/twisted/python/_sendmsg.c:
#if defined(SCM_TIMESTAMP)
if (-1 == PyModule_AddIntConstant(module, "SCM_TIMESTAMP", SCM_TIMESTAMP))
{
return;
}
#endif
https://github.com/twisted/twisted/blob/trunk/src/twisted/python/_sendmsg...
This seems related to the recent changes in the kernel regarding year 2038 bug and
timestamps:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
Anyone has any insight as to what might be happening and how to solve it?
Thanks,
Robert-André