From:             sjohns at nerfarena dot org
Operating system: Solaris/SPARC V10
PHP version:      5.2.0
PHP Bug Type:     Compile Failure
Bug description:  Compile fails in /main/reentrancy.c too many arguments to 
function

Description:
------------
Compile fails in functions php_ctime_r, php_asctime_r, php_readdir_r too
many/too few arguments


Reproduce code:
---------------
Compile using GCC v3.4.6


./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-libgcc \
--with-openssl=yes \
--with-openssl-dir=/usr/local/ssl \
--with-jpeg-dir=/usr/lib \ 
--with-png-dir=/usr/lib \
--with-freetype-dir=/usr/local/lib \
--with-xpm-dir=/usr/lib
--with-mysql-sock=/tmp/mysql.sock \
--enable-ftp \
--with-mysql \
--with-mysql=/usr/local/mysql \
--with-mysqli \
--with-zlib=/usr/include \
--with-zlib \
--disable-ipv6

Expected result:
----------------
Successful compilation.

Actual result:
--------------
/bin/sh /export/sunsource/php-5.2.0/libtool --silent --preserve-dup-deps
--mode=
compile gcc  -Imain/ -I/export/sunsource/php-5.2.0/main/ -DPHP_ATOM_INC
-I/expor
t/sunsource/php-5.2.0/include -I/export/sunsource/php-5.2.0/main
-I/export/sunso
urce/php-5.2.0 -I/usr/local/include/libxml2 -I/usr/sfw/include
-I/export/sunsour
ce/php-5.2.0/ext/date/lib -I/usr/local/mysql/include/mysql
-I/export/sunsource/p
hp-5.2.0/TSRM -I/export/sunsource/php-5.2.0/Zend 
-D_POSIX_PTHREAD_SEMANTICS 
-I
/usr/local/include -g -O2   -c
/export/sunsource/php-5.2.0/main/reentrancy.c -o
main/reentrancy.lo
/export/sunsource/php-5.2.0/main/reentrancy.c: In function `php_ctime_r':
/export/sunsource/php-5.2.0/main/reentrancy.c:67: error: too many
arguments to
f
unction `ctime_r'
/export/sunsource/php-5.2.0/main/reentrancy.c: In function
`php_asctime_r':
/export/sunsource/php-5.2.0/main/reentrancy.c:74: error: too many
arguments to
f
unction `asctime_r'
/export/sunsource/php-5.2.0/main/reentrancy.c: In function `:
/export/sunsource/php-5.2.0/main/reentrancy.c:143: error: too few
arguments to
f
unction `readdir_r'
make: *** [main/reentrancy.lo] Error 1



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

Reply via email to