Operating System - HP-UX
1820390 Members
3723 Online
109623 Solutions
New Discussion юеВ

upgrading PHP to 5.2.6 on HPUX 11.11

 
Kim_18
Advisor

upgrading PHP to 5.2.6 on HPUX 11.11

I have the pre-compiled apache/php from hp installed on my system. I need to upgrade the php software to version 5.2.6 which is a requirement after a security scan of the system. I downloaded this version from php.net and am trying to compile it and am getting errors.

I use
./configure --prefix=/opt/hpws/apache/php \
--enable-ftp=shared \
--with-apxs2=/opt/hpws/apache/bin/apxs \
--with-oci8=$ORACLE_HOME \
--with-config-file-path=/opt/hpws/apache/conf

make

I get the following error messages:

cc: "/depot/php-5.2.6/main/reentrancy.c", line 63: error 1619: Too many arguments for ctime_r.
cc: "/depot/php-5.2.6/main/reentrancy.c", line 70: error 1619: Too many arguments for asctime_r.
*** Error exit code 1


Anyone have any suggestions on this one.
Thanks
Kim
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: upgrading PHP to 5.2.6 on HPUX 11.11

> Anyone have any suggestions on this one.

That's a question?

Care to reveal lines 63 and 70? Or were you
looking for help from only those who have
downloaded this package?
Steven E. Protter
Exalted Contributor

Re: upgrading PHP to 5.2.6 on HPUX 11.11

Shalom Kim,

http://software.hp.com has a number of PHP options on it for the wp web suite, which is really a LAMP suite.

It is best to wait for HP to port PHP 5.2.6 rather than try and do it yourself.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kim_18
Advisor

Re: upgrading PHP to 5.2.6 on HPUX 11.11

Thanks for the replies - I did a search and found on bugs.php.net the following response for solaris and it seems to work for HP as well.

In php_reentrancy.h, above the #if defined(PHP_IRIX_TIME_R) call, add:

#define HAVE_POSIX_READDIR_R 1
#undef HAVE_ASCTIME
#undef HAVE_CTIME
#undef HAVE_ASCTIME_R
#undef HAVE_CTIME_R
#undef PHP_IRIX_TIME_R
#endif

This got rid of the errors in the make. I did the make install and it works great.

Thanks for the responses