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 yan12125
Recipients Pam.McANulty, benjamin.peterson, christian.heimes, larry, mark.dickinson, ned.deily, rhettinger, ronaldoussoren, vstinner, yan12125
Date 2017-01-01.20:11:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's a how-to for reproducing this bug on Sierra:

1. Install Xcode 7.3.1 (All 7.x should be fine)
2. ./configure --enable-universalsdk=/Applications/
3. make

On Benjamin's question:

> why does configure define HAVE_SYS_RANDOM_H if including sys/random.h causes an error?

autoconf defines several "default includes". For example in line 592 of configure:

# include <sys/types.h>

And in line 5559:

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1



The check for sys/random.h starts from line 7758, so sys/types.h is already (accidentally) included when checking it.

So, here's the fix.
Date User Action Args
2017-01-01 20:11:07yan12125setrecipients: + yan12125, rhettinger, ronaldoussoren, mark.dickinson, vstinner, larry, christian.heimes, benjamin.peterson, ned.deily, Pam.McANulty
2017-01-01 20:11:07yan12125setmessageid: <>
2017-01-01 20:11:07yan12125linkissue29057 messages
2017-01-01 20:11:06yan12125create