ID: 49809 Updated by: srina...@php.net Reported By: sriram dot natarajan at gmail dot com Status: Open Bug Type: *Compile Issues Operating System: solaris PHP Version: 5.3SVN-2009-10-08 (SVN) New Comment:
here is a patch against configure.in (for 5.3) that addresses this issue. pl. let me know,if this looks ok. Index: configure.in =================================================================== --- configure.in (revision 289333) +++ configure.in (working copy) @@ -621,13 +621,14 @@ unlockpt \ unsetenv \ usleep \ -nanosleep \ utime \ vsnprintf \ vasprintf \ asprintf \ ) +PHP_CHECK_FUNC(nanosleep, c, rt) + dnl Check for getaddrinfo, should be a better way, but... dnl Also check for working getaddrinfo AC_CACHE_CHECK([for getaddrinfo], ac_cv_func_getaddrinfo, if no one has any objections, i can commit this patch Previous Comments: ------------------------------------------------------------------------ [2009-10-08 08:23:55] sriram dot natarajan at gmail dot com Description: ------------ while investigating another bug, i noticed that time_sleep_until function is not available on opensolaris. While debugging, I realized that solaris defines the time related functions within -lrt and PHP_CHECK_FUNCS macros is not able to correctly identify that this function is available within system . because of this, nanosleep dependent API is disabled on this platform Reproduce code: --------------- time_sleep_until function is not available in solaris / opensolaris Expected result: ---------------- this function should be available on platforms where nanosleep is available. Actual result: -------------- time_sleep_until or other nanosleep dependent functions are not available ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49809&edit=1