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 pmatos
Recipients pmatos
Date 2017-08-14.08:01:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502697717.3.0.518925337608.issue31199@psf.upfronthosting.co.za>
In-reply-to
Content
On a Fedora 26 system, I run configure as:
$ ../configure --with-assertions --with-lto --with-pydebug --with-address-sanitizer --disable-ipv6

My pyconfig.h contains:
/* #undef HAVE_CLOCK */

/* Define to 1 if you have the `clock_getres' function. */
/* #undef HAVE_CLOCK_GETRES */

/* Define to 1 if you have the `clock_gettime' function. */
/* #undef HAVE_CLOCK_GETTIME */

/* Define to 1 if you have the `clock_settime' function. */
/* #undef HAVE_CLOCK_SETTIME */

/* Define if the C compiler supports computed gotos. */
/* #undef HAVE_COMPUTED_GOTOS */


When this happens, __PyTime_FromTimespec is undefined in pytime.c:747.
../Python/pytime.c:747:9: error: implicit declaration of function ‘_PyTime_FromTimespec’; did 
you mean ‘_PyTime_FromTimeval’? [-Werror=implicit-function-declaration]
     if (_PyTime_FromTimespec(tp, &ts, raise) < 0)
         ^~~~~~~~~~~~~~~~~~~~
         _PyTime_FromTimeval
cc1: some warnings being treated as errors
make[2]: *** [Makefile:1553: Python/pytime.o] Error 1
History
Date User Action Args
2017-08-14 08:01:57pmatossetrecipients: + pmatos
2017-08-14 08:01:57pmatossetmessageid: <1502697717.3.0.518925337608.issue31199@psf.upfronthosting.co.za>
2017-08-14 08:01:57pmatoslinkissue31199 messages
2017-08-14 08:01:57pmatoscreate