ID:               50345
 Updated by:       j...@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:

Is there HAVE_LIBRT in your main/php_config.h ?
And if there is, it -lrt must be in EXTRA_LIBS as well.


Previous Comments:
------------------------------------------------------------------------

[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] j...@php.net

Also, is -lrt in your Makefile LIBS ?

------------------------------------------------------------------------

[2009-11-30 23:03:46] j...@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

Reply via email to