[MacPorts] #31530: php5: Fatal error: Call to undefined function time_nanosleep()
MacPorts
noreply at macports.org
Sat Oct 8 16:18:13 PDT 2011
#31530: php5: Fatal error: Call to undefined function time_nanosleep()
-----------------------------------+----------------------------------------
Reporter: sonniesedge@… | Owner: ryandesign@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: php5
-----------------------------------+----------------------------------------
Changes (by ryandesign@…):
* status: new => assigned
Comment:
Never mind, it looks like this is something the developers of PHP broke
between versions 5.3.3 and 5.3.4:
{{{
$ php -v
PHP 5.3.3 (cli) (built: Oct 8 2011 17:52:07)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
$ php -r 'echo (int)function_exists("time_nanosleep")."\n";'
1
$ php -v
PHP 5.3.4 (cli) (built: Oct 8 2011 17:59:33)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
$ php -r 'echo (int)function_exists("time_nanosleep")."\n";'
0
}}}
PHP is looking for the nanosleep C function in the "rt" (realtime)
library, but there is no such library on Mac OS X, leading to this error
in the config.log and the test for existence of the nanosleep C function
failing, and therefore php5 being built without the time_nanosleep PHP
function:
{{{
ld: library not found for -lrt
}}}
The fix for [https://bugs.php.net/bug.php?id=50345 PHP bug 50345] might be
the culprit. I'll see if I can fix it by reversing the change, and I'll
report the problem to the developers of PHP.
--
Ticket URL: <https://trac.macports.org/ticket/31530#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list