Message284427
| 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 |
<1483301467.07.0.823664434335.issue29057@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
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:
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
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
_ACEOF
fi
done
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. |
|