[MacPorts] #31530: time_nanosleep() in PHP
#31530: time_nanosleep() in PHP -----------------------------------+---------------------------------------- Reporter: sonniesedge@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: php | Port: php5 -----------------------------------+---------------------------------------- The function time_nanosleep() is not available in the PHP5 port. Trying to use this function results in "Fatal error: Call to undefined function time_nanosleep()" See: http://php.net/manual/en/function.time-nanosleep.php -- Ticket URL: <https://trac.macports.org/ticket/31530> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31530: php5: Fatal error: Call to undefined function time_nanosleep() -----------------------------------+---------------------------------------- Reporter: sonniesedge@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: php5 -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: sonniesedge@… (removed) * owner: macports-tickets@… => ryandesign@… * keywords: php => Comment: I see this was also [http://stackoverflow.com/questions/7503250/call-to- undefined-function-time-nanosleep asked on Stack Overflow] (about MacPorts). -- Ticket URL: <https://trac.macports.org/ticket/31530#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31530: php5: Fatal error: Call to undefined function time_nanosleep() -----------------------------------+---------------------------------------- Reporter: sonniesedge@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: php5 -----------------------------------+---------------------------------------- Comment(by sonniesedge@…): I'm pretty new to MacPorts. Are there any options that I can set during the php5 port install to force this function to be built? Or is this something more fundamental? -- Ticket URL: <https://trac.macports.org/ticket/31530#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#31530: php5: Fatal error: Call to undefined function time_nanosleep() -----------------------------------+---------------------------------------- Reporter: sonniesedge@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: php5 -----------------------------------+---------------------------------------- Comment(by ryandesign@…): If I knew how to make our php5 include that function, I'd change the port to do that. :) I have a feeling it's because we use `--disable-all` and then just enable what we want; I just need to find what switch will re- enable that function. -- Ticket URL: <https://trac.macports.org/ticket/31530#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#31530: php5, php5-devel: Fatal error: Call to undefined function time_nanosleep() ------------------------------------+--------------------------------------- Reporter: sonniesedge@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: php5, php5-devel | ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed * port: php5 => php5, php5-devel Comment: Replying to [comment:5 ryandesign@…]:
I'll see if I can fix it by reversing the change,
* php5: r85066 * php5-devel: r85067
and I'll report the problem to the developers of PHP.
https://bugs.php.net/bug.php?id=71672 -- Ticket URL: <https://trac.macports.org/ticket/31530#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts