#40310 [Fbk->Opn]: Compile fails in /main/reentrancy.c too many arguments to function
| From: | sjohns at nerfarena dot org | Date: | Sat, 03 Feb 2007 00:41:19 +0000 |
| Subject: | #40310 [Fbk->Opn]: Compile fails in /main/reentrancy.c too many arguments to function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108361@lists.php.net to get a copy of this message | ||
ID: 40310
User updated by: sjohns at nerfarena dot org
Reported By: sjohns at nerfarena dot org
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: Solaris/SPARC V10
PHP Version: 5.2.0
New Comment:
Hi Tony,
I have duplicated the environment for your login that I used when
attempting the build.
Cheers,
Steve Johns
Previous Comments:
------------------------------------------------------------------------
[2007-02-02 18:25:15] tony2001@php.net
man actime_r
char *asctime_r(const struct tm *restrict tm, char *restrict
buf, int buflen);
This is what Solaris documentation says (and PHP uses the same number
of arguments).
Also, is it possible to fix the build utils, so I can test the build?
$ make
make: not found
------------------------------------------------------------------------
[2007-02-02 16:09:05] sjohns at nerfarena dot org
Hi Tony,
I have setup the account you requested. It can be reached via ssh
only.
ssh phpsupport@ns1.nerfarena.org
password: f0RpHP2@
The php source is located at /export/sunsource/php-5.2.0
Regards,
Steve Johns
------------------------------------------------------------------------
[2007-02-01 22:19:10] tony2001@php.net
Is it possible to get an unprivileged account on this machine?
------------------------------------------------------------------------
[2007-02-01 22:16:08] sjohns at nerfarena dot org
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 this bug report at http://bugs.php.net/?id=40310&edit=1