This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: linux/random.h present but cannot be compiled
Type: compile error Stage: resolved
Components: Build Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, christian.heimes, eamanu, vstinner, zhaw_munt
Priority: normal Keywords:

Created on 2017-01-31 14:21 by zhaw_munt, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg286533 - (view) Author: zhaw_munt (zhaw_munt) Date: 2017-01-31 14:21
configure: WARNING: linux/random.h: present but cannot be compiled
configure: WARNING: linux/random.h:     check for missing prerequisite headers?
configure: WARNING: linux/random.h: see the Autoconf documentation
configure: WARNING: linux/random.h:     section "Present But Cannot Be Compiled"
configure: WARNING: linux/random.h: proceeding with the compiler's result
configure: WARNING:     ## --------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.python.org/ ##
configure: WARNING:     ## --------------------------------------- ##

2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linu (CentOS 5.5)

Buildings seems to work, at the end I have the binary but I've noticed that *at least* _socket is missing. Other libraries such as "_bz2" and "_sqlite" are there (as I've installed their corresponding devel package)
msg286603 - (view) Author: (yan12125) * Date: 2017-02-01 09:28
Could you upload a copy of config.log?

Also added developers that play in random.h games
msg336830 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2019-02-28 12:13
It's a CentOS 5 system with Kernel 2.6.18. The getrandom() syscall was added in Linux Kernel version 3.17. Your OS simply lacks the necessary feature to use linux/random.h. Python will automatically fall back to /dev/urandom.
History
Date User Action Args
2022-04-11 14:58:42adminsetgithub: 73583
2019-02-28 12:13:22christian.heimessetstatus: open -> closed

nosy: + christian.heimes
messages: + msg336830

resolution: not a bug
stage: resolved
2019-02-28 11:44:57eamanusetnosy: + eamanu
2019-02-28 01:19:28yan12125setnosy: - yan12125
2017-02-01 09:28:20yan12125setnosy: + vstinner, yan12125, benjamin.peterson
messages: + msg286603
components: + Build
2017-01-31 14:21:40zhaw_muntcreate