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 gwk
Recipients Jim Nasby, Pam.McANulty, benjamin.peterson, christian.heimes, gwk, larry, mark.dickinson, ned.deily, python-dev, rhettinger, ronaldoussoren, vstinner, yan12125
Date 2017-01-09.20:42:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I am encountering this problem on macOS 10.12.2, with Xcode 8.2.1 (latest).

I have tried building from the following cpython branches today (using the github fork):

2.7: 13a39142c047
In file included from ../../Python/random.c:7:
/usr/include/sys/random.h:37:32: error: unknown type name 'u_int'
void read_random(void* buffer, u_int numBytes);

3.5: 35334a4d41aa
3.6: 6bf563472ccd
Both 3.x branches report a different error:

../../Python/pytime.c:567:11: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
    err = clock_gettime(CLOCK_REALTIME, &ts);
../../Python/pytime.c:567:25: error: use of undeclared identifier 'CLOCK_REALTIME'
    err = clock_gettime(CLOCK_REALTIME, &ts);
../../Python/pytime.c:581:13: warning: implicit declaration of function 'clock_getres' is invalid in C99 [-Wimplicit-function-declaration]
        if (clock_getres(CLOCK_REALTIME, &res) == 0)
../../Python/pytime.c:581:26: error: use of undeclared identifier 'CLOCK_REALTIME'
        if (clock_getres(CLOCK_REALTIME, &res) == 0)
Date User Action Args
2017-01-09 20:42:37gwksetrecipients: + gwk, rhettinger, ronaldoussoren, mark.dickinson, vstinner, larry, christian.heimes, benjamin.peterson, ned.deily, python-dev, Pam.McANulty, yan12125, Jim Nasby
2017-01-09 20:42:37gwksetmessageid: <>
2017-01-09 20:42:37gwklinkissue29057 messages
2017-01-09 20:42:37gwkcreate