Issue 31909: Missing definition of HAVE_SYSCALL_GETRANDOM

Issue31909

Created on 2017-10-31 06:29 by Ilya.Kulakov, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 4185 closed python-dev, 2017-10-31 06:41
Messages (5)
msg305270 - (view) Author: Ilya Kulakov (Ilya.Kulakov) * Date: 2017-10-31 06:29
Python 3.5 and 3.6 in their corresponding configure.ac try to detect presence of sys_getrandom. The result is written into the `HAVE_GETRANDOM_SYSCALL` definition.

libexpact checks for `HAVE_SYSCALL_GETRANDOM` and since it's not defined, does not use it. This fails compilation with up to date libexpact due to a new condition [1].

[1] https://github.com/python/cpython/blob/master/Modules/expat/xmlparse.c#L87-L91
msg305271 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2017-10-31 06:47
This is supposed to be handled by setup.py defining XML_POOR_ENTROTPY. Are you doing something non-standard?
msg305272 - (view) Author: Ilya Kulakov (Ilya.Kulakov) * Date: 2017-10-31 06:50
Just compiling Python 3.6.3 from sources on Ubuntu 16.04

Is there any reason to fall back to XML_POOR_ENTROTPY when proper source is actually available?
msg305273 - (view) Author: Ilya Kulakov (Ilya.Kulakov) * Date: 2017-10-31 06:55
nvm my last question.

My process is as per README: ./configure && make

I'll take a further look at what's wrong.
msg305321 - (view) Author: Ilya Kulakov (Ilya.Kulakov) * Date: 2017-10-31 18:04
Not a bug in Python.
History
Date User Action Args
2022-04-11 14:58:53adminsetgithub: 76090
2017-10-31 18:04:44Ilya.Kulakovsetstatus: open -> closed

messages: + msg305321
stage: patch review -> resolved

2017-10-31 06:55:22Ilya.Kulakovsetmessages: + msg305273
2017-10-31 06:50:55Ilya.Kulakovsetmessages: + msg305272
2017-10-31 06:47:14benjamin.petersonsetnosy: + benjamin.peterson
messages: + msg305271
2017-10-31 06:41:17python-devsetkeywords: + patch
stage: patch review
pull_requests: + pull_request4156
2017-10-31 06:29:04Ilya.Kulakovcreate