Discussion:
[PHP-INSTALL] PHP 5.2.5 Install Issues - reentrancy
Strader, William A.
2008-01-28 20:10:27 UTC
Permalink
OK I am attempting to install PHP 5.2.5 on a new system here is what I
have:



SunOS server1 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V210



Here is the GCC version:



gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)



now when I run the ./configure I am doing a :



./configure --prefix=/opt/local/stow/php-5.2.5
--with-apxs2=/usr/local/httpd-2.2.8/bin/apxs
--with-config-file-path=/usr/local/apache/conf



Nothing special on that.. I was originally trying to do a:



./configure --prefix=/opt/local/stow/php-5.2.5
--with-apxs2=/usr/local/httpd-2.2.8/bin/apxs --enable-calendar
--with-config-file-path=/usr/local/apache/conf --with-zlib
--with-openssl=/opt/local/stow/openssl-0.9.8d
--with-jpeg-dir=/opt/local/stow/jpeg-6b
--with-png-dir=/opt/local/stow/libpng-1.2.5 --with-gd
--enable-gd-native-ttf --with-ttf
--with-xpm-dir=/opt/local/stow/xpm-3.4k-solaris
--with-mysql=/opt/local/stow/mysql-5.0.51



But still nothing... Here is the error message:



/bin/sh /export/home/UID/php-5.2.5/libtool --silent --preserve-dup-deps
--mode=compile gcc -Imain/ -I/export/home/ UID /php-5.2.5/main/
-DPHP_ATOM_INC -I/export/home/UID/php-5.2.5/include -I/export/home/ UID
/php-5.2.5/main -I/export/home/ UID /php-5.2.5
-I/usr/local/include/libxml2 -I/export/home/ UID /php-5.2.5/ext/date/lib
-I/export/home/UID/php-5.2.5/TSRM -I/export/home/UID/php-5.2.5/Zend
-D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -D_REENTRANT -c
/export/home/UID/php-5.2.5/main/mergesort.c -o main/mergesort.lo

/bin/sh /export/home/UID/php-5.2.5/libtool --silent --preserve-dup-deps
--mode=compile gcc -Imain/ -I/export/home/UID/php-5.2.5/main/
-DPHP_ATOM_INC -I/export/home/UID/php-5.2.5/include
-I/export/home/UID/php-5.2.5/main -I/export/home/UID/php-5.2.5
-I/usr/local/include/libxml2 -I/export/home/UID/php-5.2.5/ext/date/lib
-I/export/home/UID/php-5.2.5/TSRM -I/export/home/UID/php-5.2.5/Zend
-D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -D_REENTRANT -c
/export/home/UID/php-5.2.5/main/reentrancy.c -o main/reentrancy.lo

/export/home/UID/php-5.2.5/main/reentrancy.c: In function `php_ctime_r':

/export/home/UID/php-5.2.5/main/reentrancy.c:63: error: too many
arguments to function `ctime_r'

/export/home/UID/php-5.2.5/main/reentrancy.c: In function
`php_asctime_r':

/export/home/UID/php-5.2.5/main/reentrancy.c:70: error: too many
arguments to function `asctime_r'

/export/home/UID/php-5.2.5/main/reentrancy.c: In function
`php_readdir_r':

/export/home/UID/php-5.2.5/main/reentrancy.c:139: error: too few
arguments to function `readdir_r'

make: *** [main/reentrancy.lo] Error 1



Can anyone suggest anything for me to try??? Thank you all for any help
you can give.





Regards,



William "Billy" A. Strader

NAISMC Web Services

Work: 865-425-5178

Pager: 865-417-5012

Emergency Pager: 865-417-5622
b***@cooltoad.com
2009-02-12 21:40:00 UTC
Permalink
I changed the C file at all three places where it was giving error and that resolved the issue.
From line 63, I removed the numeric value present in the function call.
--- if (ctime_r(clock, buf) == buf)
From line 63, I removed the numeric value present in the function call.
--- if (asctime_r(tm, buf) == buf)

In line 139, I added result variable in the function call.
--- readdir_r(dirp, entry, result);

--
This message was sent on behalf of ***@cooltoad.com at openSubscriber.com
http://www.opensubscriber.com/message/php-***@lists.php.net/8484593.html
Christopher Jones
2009-02-12 22:36:51 UTC
Permalink
Post by b***@cooltoad.com
I changed the C file at all three places where it was giving error and that resolved the issue.
From line 63, I removed the numeric value present in the function call.
--- if (ctime_r(clock, buf) == buf)
From line 63, I removed the numeric value present in the function call.
--- if (asctime_r(tm, buf) == buf)
In line 139, I added result variable in the function call.
--- readdir_r(dirp, entry, result);
Looks like your system is using the POSIX definitions of those
functions by default.

I can see other projects have reported the opposite issue:
http://mail-index.netbsd.org/pkgsrc-bugs/2008/04/25/msg002223.html

If this is still an problem (as I expect it will be) with latest PHP
5.2 snapshot from http://snaps.php.net/ can you log a bug at
http://bugs.php.net/ ?

Chris
--
Email: ***@oracle.com Tel: +1 650 506 8630
Twitter: http://twitter.com/ghrd Free PHP Book: http://tinyurl.com/UGPOM
Loading...