php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7162 Sun CC 5.0 fails on reentrancy.lo
Submitted: 2000-10-12 11:56 UTC Modified: 2000-10-14 18:12 UTC
From: felicity+php at kluge dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3 OS: Solaris 7
Private report: No CVE-ID: None
 [2000-10-12 11:56 UTC] felicity+php at kluge dot net
# make
Making all in Zend
Making all in main
/bin/sh /usr/local/src/web/php-4.0.3/libtool --silent --mode=compile cc  -I. -I/usr/local/src/web/php-4.0.3/main -I/usr/local/src/web/php-4.0.3 -I/usr/local/src/web/php-4.0.3/main -I/usr/local/apache/include -I/usr/local/src/web/php-4.0.3/Zend -I/usr/local/src/web/php-4.0.3 -I/usr/local/include -I/usr/local/src/web/php-4.0.3/ext/mysql/libmysql -I/usr/local/src/web/php-4.0.3/ext/xml/expat/xmltok -I/usr/local/src/web/php-4.0.3/ext/xml/expat/xmlparse -I/usr/local/src/web/php-4.0.3/TSRM  -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g  -c reentrancy.c
"reentrancy.c", line 106: prototype mismatch: 2 args passed, 3 expected
cc: acomp failed for reentrancy.c
*** Error code 1
make: Fatal error: Command failed for target `reentrancy.lo'
Current working directory /usr/local/src/web/php-4.0.3/main
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/web/php-4.0.3/main
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'



# uname -a
SunOS vader 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-2
# pkginfo SPROcc
application SPROcc         Sun WorkShop Compiler C 5.0



I can get 4.0.3 to compile if I edit php_config.h and swap the following:

/* whether you have POSIX readdir_r */
/* #undef HAVE_POSIX_READDIR_R */

/* whether you have old-style readdir_r */
#define HAVE_OLD_READDIR_R 1

with
/* whether you have POSIX readdir_r */
#define HAVE_POSIX_READDIR_R 1

/* whether you have old-style readdir_r */
/* #undef HAVE_OLD_READDIR_R */



However, I then get "bus error" when I try to use 4.0.3...

The configuration I used was:
./configure \
--with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local \
--with-xpm-dir=/usr/local --with-mysql --with-zlib \
--enable-track-vars --with-apxs=/usr/local/apache/bin/apxs \
--enable-versioning --enable-force-cgi-redirect --enable-yp

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-12 15:41 UTC] felicity+php at kluge dot net
It turns out that if I undefine both HAVE_POSIX_READDIR_R and HAVE_OLD_READDIR_R in php_config.h, 4.0.3 will compile and run just fine.
 [2000-10-14 18:12 UTC] sniper@php.net
Fixed in CVS. 

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Jun 27 18:00:01 2026 UTC