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.

Author rpointel
Recipients rpointel
Date 2015-09-18.23:16:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442618175.28.0.599214895418.issue25171@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I'm trying to build Python on OpenBSD-current, but it does not build because it seems that PY_GETENTROPY does not have a value.

$ make
...
gcc -pthread -c -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -O2 -pipe   -Werror=declaration-after-statement   -I. -IInclude -I./Include    -DPy_BUILD_CORE -o Python/random.o Python/random.c
Python/random.c:367:20: error: #if with no expression
Python/random.c: In function '_PyOS_URandom':
Python/random.c:370: warning: implicit declaration of function 'dev_urandom_python'
Python/random.c:414:20: error: #if with no expression
Python/random.c: In function '_PyRandom_Init':
Python/random.c:417: warning: implicit declaration of function 'dev_urandom_noraise'
Python/random.c:430:20: error: #if with no expression
Python/random.c: In function '_PyRandom_Fini':
Python/random.c:433: warning: implicit declaration of function 'dev_urandom_close'
*** Error 1 in /home/remi/dev/cpython (Makefile:1534 'Python/random.o')

If I defined the PY_GETENTROPY to the value "1" line 76, it seems to works fine.

Remi.
History
Date User Action Args
2015-09-18 23:16:15rpointelsetrecipients: + rpointel
2015-09-18 23:16:15rpointelsetmessageid: <1442618175.28.0.599214895418.issue25171@psf.upfronthosting.co.za>
2015-09-18 23:16:15rpointellinkissue25171 messages
2015-09-18 23:16:15rpointelcreate