#50345 [Fbk->Opn]: undefined symbol nanosleep
| From: | sle at ocf dot berkeley dot edu | Date: | Mon, 30 Nov 2009 23:23:33 +0000 |
| Subject: | #50345 [Fbk->Opn]: undefined symbol nanosleep | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145251@lists.php.net to get a copy of this message | ||
ID: 50345
User updated by: sle at ocf dot berkeley dot edu
Reported By: sle at ocf dot berkeley dot edu
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: Solaris 10
PHP Version: 5.3.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2009-11-30 23:06:08] jani@php.net
Also, is -lrt in your Makefile LIBS ?
------------------------------------------------------------------------
[2009-11-30 23:03:46] jani@php.net
Try this:
# make clean && make
If it didn't work, what do you have in your main/php_config.h for
HAVE_NANOSLEEP ?
------------------------------------------------------------------------
[2009-11-30 22:51:42] sle at ocf dot berkeley dot edu
Description:
------------
Compiling PHP 5.3.1 on Solaris 10 with gcc version 3.4.3
(/usr/sfw/bin/gcc) produces the following error at the end of the
compile:
Undefined first referenced
symbol in file
nanosleep
ext/standard/.libs/basic_functions.o
ld: fatal: Symbol referencing errors. No output written to
sapi/cgi/php-cgi
I was able to successfully compile PHP 5.3.0 with the same
configure/build options. I think this may be related to bug #49809.
However, I've tried reversing the patch made to fix that bug and that
does not fix the problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50345&edit=1