#50345 [Opn->Fbk]: undefined symbol nanosleep
| From: | jani@php.net | Date: | Tue, 01 Dec 2009 18:55:33 +0000 |
| Subject: | #50345 [Opn->Fbk]: undefined symbol nanosleep | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145300@lists.php.net to get a copy of this message | ||
ID: 50345
Updated by: jani@php.net
Reported By: sle at ocf dot berkeley dot edu
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Solaris 10
PHP Version: 5.3.1
New Comment:
Try grep for it..? Try also for nanosleep. Maybe it's found in libc
somehow..
Previous Comments:
------------------------------------------------------------------------
[2009-12-01 15:40:52] sle at ocf dot berkeley dot edu
HAVE_LIBRT is not defined:
/* #undef HAVE_LIBRT */
Is there anywhere I can look in config.log to find out why -lrt is not
being detected?
------------------------------------------------------------------------
[2009-12-01 08:24:44] jani@php.net
Is there HAVE_LIBRT in your main/php_config.h ?
And if there is, it -lrt must be in EXTRA_LIBS as well.
------------------------------------------------------------------------
[2009-12-01 03:04:19] sle at ocf dot berkeley dot edu
I was able to successfully compile PHP 5.3.1 by manually adding -lrt to
EXTRA_LIBS.
Perhaps the configure script needs to be updated to add -lrt to the
Makefile on Solaris?
------------------------------------------------------------------------
[2009-11-30 23:23:32] sle at ocf dot berkeley dot edu
I've tried rebuilding multiple times without success. HAVE_NANOSLEEP is
defined:
/* Define if you have the nanosleep function. */
#define HAVE_NANOSLEEP 1
I don't see a variable named LIBS in my Makefile, however, I do see an
EXTRA_LIBS and -lrt is not listed in that variable.
------------------------------------------------------------------------
[2009-11-30 23:06:08] jani@php.net
Also, is -lrt in your Makefile LIBS ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50345
--
Edit this bug report at http://bugs.php.net/?id=50345&edit=1