php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18799 make fails
Submitted: 2002-08-08 05:36 UTC Modified: 2002-09-11 01:00 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:3 (100.0%)
From: richard at sara dot nl Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.2.2 OS: solaris 8
Private report: No CVE-ID: None
 [2002-08-08 05:36 UTC] richard at sara dot nl
./configure --prefix=/opt/local/php-4.2.2 \ --with-mysql=/opt/local/mysql \ --with-apxs=/opt/local/apache/bin/apxs

make
....
reentrancy.c: In function `php_ctime_r':
reentrancy.c:66: too many arguments to function `ctime_r'
reentrancy.c: In function `php_asctime_r':
reentrancy.c:73: too many arguments to function `asctime_r'
reentrancy.c: In function `php_readdir_r':
reentrancy.c:130: too few arguments to function `readdir_r'
*** Error code 1
make: Fatal error: Command failed for target `reentrancy.lo'
Current working directory /export/home/sara/php-4.2.2/main
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/sara/php-4.2.2/main
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-09 04:02 UTC] richard at sara dot nl
playing with my LD_LIBRARY_PATH:
/usr/lib:/opt/sfw/lib:/usr/local/lib:/usr/local/mysql/lib:/usr/ccs/lib

Problem still the same.

gcc -v
Reading specs from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)
 [2002-08-10 09:38 UTC] kalowsky@php.net
Can you please try a recent snapshot from the development branch (aka non-STABLE)?  I believe there have been a number of fixes for Solaris placed in there, and that this might have been one of them.  
 [2002-09-10 16:46 UTC] nclemons at vesn dot com
After some careful investigation into this scenario, I found a workaround.

In php_reentrancy.h, above the #if defined(HAVE_IRIX_TIME_R) call, add:

#if (SOLARIS2 - 0 >= 280)
#define HAVE_POSIX_READDIR_R 1
#undef HAVE_ASCTIME
#undef HAVE_CTIME
#undef HAVE_ASCTIME_R
#undef HAVE_CTIME_R
#undef PHP_IRIX_TIME_R
#endif

This is only tested on Solaris 8. I think the main problem is that while Solaris 8 has support for POSIX reentrant functions (when _POSIX_PTHREAD_SEMANTICS is set...) it's not being picked up on during the configuration phase.

Some testing will likely need to be made for Solaris 2.6/7/9.
 [2002-09-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 17:01:27 2024 UTC