nanosleep not detected properly on some solaris versions
| Bug #50345 | nanosleep not detected properly on some solaris versions | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2009-11-30 22:51 UTC | Modified: | 2010-10-05 15:44 UTC |
|
||||||||||
| From: | sle at ocf dot berkeley dot edu | Assigned: | tony2001 (profile) | |||||||||||
| Status: | Closed | Package: | Compile Failure | |||||||||||
| PHP Version: | 5.3.1 | OS: | Solaris 10 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2009-11-30 22:51 UTC] 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.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-11-30 23:03 UTC] jani@php.net
[2009-11-30 23:06 UTC] jani@php.net
[2009-11-30 23:23 UTC] sle at ocf dot berkeley dot edu
[2009-12-01 03:04 UTC] sle at ocf dot berkeley dot edu
[2009-12-01 08:24 UTC] jani@php.net
[2009-12-01 15:40 UTC] sle at ocf dot berkeley dot edu
[2009-12-01 18:55 UTC] jani@php.net
[2009-12-01 23:52 UTC] sle at ocf dot berkeley dot edu
[2009-12-02 16:23 UTC] sle at ocf dot berkeley dot edu
[2009-12-02 18:01 UTC] jani@php.net
[2010-07-23 13:51 UTC] rainer dot jung at kippdata dot de
[2010-07-23 13:52 UTC] rainer dot jung at kippdata dot de
[2010-07-23 14:13 UTC] aharvey@php.net
-Status: Closed +Status: Re-Opened -Assigned To: jani +Assigned To:
[2010-09-17 19:42 UTC] svinopas at gmail dot com
[2010-10-04 13:19 UTC] uw@php.net
Manually setting -lrt will fix it, but maybe this could be fixed in the source? This breaks Solaris 8, 9 and 10 builds. Any PHP version since at least 5.3.1 is affected. NAME nanosleep - high resolution sleep SYNOPSIS cc [ flag... ] file... -lrt [ library... ] #include <time.h> int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);[2010-10-04 13:28 UTC] uw@php.net
[2010-10-05 03:48 UTC] felipe@php.net
-Status: Re-Opened +Status: Assigned -Assigned To: +Assigned To: tony2001
[2010-10-05 15:27 UTC] uw@php.net
-Status: Assigned +Status: Re-Opened
[2010-10-05 15:27 UTC] uw@php.net
[2010-10-05 15:44 UTC] tony2001@php.net