Bug #25989 Compile fails in /main/reentrancy.c too many arguments to function
Submitted: 31 Jan 2007 18:17 Modified: 2 Feb 2007 11:00
Reporter: Steve Johns Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.2.0 OS:Solaris (Solaris/SPARC V10)
Assigned to: CPU Architecture:Any

[31 Jan 2007 18:17] Steve Johns
Description:
Compile fails in functions php_ctime_r, php_asctime_r, php_readdir_r too many/too few arguments

/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

How to repeat:
./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
[31 Jan 2007 18:24] Steve Johns
Compiling using GCC v3.46
[1 Feb 2007 14:59] Valeriy Kravchuk
Thank you for a problem report. Why do you think it is MySQL server compiling bug? You have compilation errors in PHP sources, not in MySQL's. 

Anyway, please, specify the exact version of MySQL server/libmysqlclient used.
[1 Feb 2007 22:21] Steve Johns
Found the problem. You were right, it was not in mysql. Please close.