PHP 4.0 Bug #7162 Updated: Sun CC 5.0 fails on reentrancy.lo

From: Date: Thu, 12 Oct 2000 19:41:03 +0000
Subject: PHP 4.0 Bug #7162 Updated: Sun CC 5.0 fails on reentrancy.lo
Groups: php.dev 
Request: Send a blank email to php-dev+get-34821@lists.php.net to get a copy of this message
ID: 7162 User Update by: felicity+php@kluge.net Status: Open Bug Type: Compile Failure Description: Sun CC 5.0 fails on reentrancy.lo 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. Previous Comments: --------------------------------------------------------------------------- [2000-10-12 11:56:31] felicity+php@kluge.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 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7162

« previous php.dev (#34821) next »