#18799 [Com]: make fails

From: Date: Tue, 10 Sep 2002 21:46:47 +0000
Subject: #18799 [Com]: make fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18981@lists.php.net to get a copy of this message
ID: 18799 Comment by: nclemons@vesn.com Reported By: richard@sara.nl Status: Feedback Bug Type: Compile Failure Operating System: solaris 8 PHP Version: 4.2.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-08-10 09:38:34] 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-08-09 04:02:28] richard@sara.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-08 05:36:25] richard@sara.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' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18799&edit=1

« previous php.bugs (#18981) next »