From:             paniemin at cc dot hut dot fi
Operating system: Red Hat Linux 7.3
PHP version:      5.1.0
PHP Bug Type:     Compile Failure
Bug description:  Configuration script missing that system doesn't have old 
style readdir_r

Description:
------------
I think that this bug is low priority.

I tried to uprade from php 5.0 to 5.1 on web server where I don't have
root privilegs.

I faced build failure:
/home/customers/antin/php5.1/php-5.1.0/main/reentrancy.c: In function
`php_readdir_r':
/home/customers/antin/php5.1/php-5.1.0/main/reentrancy.c:143: too few
arguments to function `readdir_r'
make: *** [main/reentrancy.lo] Error 1


The problem seems to be that systems is quite old. I think that makes bug
low priority or irrelevant.
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)


I found that actual problem is that HAVE_OLD_READDIR_R is set even thought
the system doesn't include correct version. It builds well when I change
source code so that pre-complier choose else branch in reentrancy.c.

I tried to check the configuration script but I'm not familiar with
autoconf style so I cannot say what is the exact problem in this system. 

configure:
'./configure' \
'--enable-sysvshm' \
'--enable-pcntl' \
'--with-gd' \
'--enable-gd-native-ttf' \
'--with-jpeg-dir' \
'--with-png-dir' \
'--enable-sysvsem' \
'--with-zlib' \
'--prefix=~/php5.1' \
'--enable-discard-path' \
'--with-bz2' \
'--with-libxml-dir=~/libxml2/' \
'--with-freetype-dir=~/freetype' \
'--with-ttf' \

I can build the PHP5.1 but I just wanted to inform that there maybe
problems with older systems.



-- 
Edit bug report at http://bugs.php.net/?id=35443&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35443&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35443&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35443&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35443&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35443&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35443&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35443&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35443&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35443&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35443&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35443&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35443&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35443&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35443&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35443&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35443&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35443&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35443&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35443&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35443&r=mysqlcfg

Reply via email to