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 maltehelmert
Recipients LambertDW, belopolsky, christian.heimes, gregory.p.smith, gvanrossum, loewis, maltehelmert, ocean-city, pitrou, rbp
Date 2008-10-18.23:31:08
SpamBayes Score 7.9648224e-08
Marked as misclassified No
Message-id <1224372724.9.0.65364236813.issue1040026@psf.upfronthosting.co.za>
In-reply-to
Content
Martin,

compilation indeed breaks if sysconf is available but _SC_CLK_TCK is
not. My Unix-foo is not sufficient to confidently say that this is
impossible, so my suggestion is to add defined(_SC_CLK_TCK) to the
condition of this #ifdef branch. For what it's worth, this also appears
to be the way Perl does it (perl.c, lines 384-385):

  #if defined(HAS_SYSCONF) && defined(_SC_CLK_TCK) && !defined(__BEOS__)
      PL_clocktick = sysconf(_SC_CLK_TCK);

In the other case you mention, where neither sysconf nor HZ are
available, the old default of 60 could be used instead. A noisy error
appears safer to me to avoid future similar bugs, but I see that this is
a bad idea for Python 2.5.x.

I'll prepare a modified patch.
History
Date User Action Args
2008-10-18 23:32:05maltehelmertsetrecipients: + maltehelmert, gvanrossum, loewis, gregory.p.smith, belopolsky, pitrou, ocean-city, christian.heimes, LambertDW, rbp
2008-10-18 23:32:04maltehelmertsetmessageid: <1224372724.9.0.65364236813.issue1040026@psf.upfronthosting.co.za>
2008-10-18 23:31:09maltehelmertlinkissue1040026 messages
2008-10-18 23:31:08maltehelmertcreate