Date: 10/12/00
- Next message: Zak Greant: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Previous message: Sebastian Bergmann: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Next in thread: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7162 Updated: Sun CC 5.0 fails on reentrancy.lo"
- Maybe reply: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7162 Updated: Sun CC 5.0 fails on reentrancy.lo"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 7162
User Update by: felicity+php <email protected>
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 <email protected>
# 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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zak Greant: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Previous message: Sebastian Bergmann: "Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO"
- Next in thread: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7162 Updated: Sun CC 5.0 fails on reentrancy.lo"
- Maybe reply: Bug Database: "[PHP-DEV] PHP 4.0 Bug #7162 Updated: Sun CC 5.0 fails on reentrancy.lo"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

