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

From: Date: Thu, 12 Oct 2000 15:56:31 +0000
Subject: PHP 4.0 Bug #7162: Sun CC 5.0 fails on reentrancy.lo
Groups: php.dev 
Request: Send a blank email to php-dev+get-34805@lists.php.net to get a copy of this message
From: felicity+php@kluge.net Operating system: Solaris 7 PHP version: 4.0.3 PHP Bug Type: Compile Failure Bug description: Sun CC 5.0 fails on reentrancy.lo # 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 -- Edit Bug report at: http://bugs.php.net/?id=7162&edit=1

« previous php.dev (#34805) next »