Re: Compiling PHP 5.3.3 on Solaris 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On 09/02/2010 11:15 AM, Kurt Cypher wrote:
I'm trying to compile PHP 5.3.3 from source on Solaris 9. I just compiled & installed PHP 5.3.2 on the same server a couple of months ago, but 5.3.3 isn't cooperating. I use the following configure:

../configure  --prefix=/usr/local/apps/php-5.3.3 \
--with-apxs2=/usr/local/apps/apache-2.2.16/bin/apxs \
--with-mysql=/usr/local/apps/mysql \
--with-oci8-instant-client=/usr/local/apps/oracle/instantclient10_1 \
--with-ldap

which runs without error.

When I try to run make, it goes along for a while, and ends with:

/bin/sh /common/src/languages/PHP/php-5.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc -I/common/src/languages/PHP/php-5.3.3/ext/pcre/pcrelib -Iext/pcre/ -I/common/src/languages/PHP/php-5.3.3/ext/pcre/ -DPHP_ATOM_INC -I/common/src/languages/PHP/php-5.3.3/include -I/common/src/languages/PHP/php-5.3.3/main -I/common/src/languages/PHP/php-5.3.3 -I/common/src/languages/PHP/php-5.3.3/ext/date/lib -I/common/src/languages/PHP/php-5.3.3/ext/ereg/regex -I/usr/local/apps/libxml2-2.6.26/include/libxml2 -I/usr/local/apps/mysql/include/mysql -I/common/src/languages/PHP/php-5.3.3/ext/sqlite3/libsqlite -I/common/src/languages/PHP/php-5.3.3/TSRM -I/common/src/languages/PHP/php-5.3.3/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/local/include -g -O2 -c /common/src/languages/PHP/php-5.3.3/ext/pcre/pcrelib/pcre_chartables.c -o ext/pcre/pcrelib/pcre_chartables.lo In file included from /common/src/languages/PHP/php-5.3.3/ext/pcre/pcrelib/pcre_chartables.c:25: /common/src/languages/PHP/php-5.3.3/ext/pcre/pcrelib/pcre_internal.h:197:20: stdint.h: No such file or directory
make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1

This issue is a side effect of importing latest version of PCRE within PHP and as you have rightly concluded seems to happen on Solaris versions < 10. Please refer to php bug - http://bugs.php.net/bug.php?id=52436

You can either apply the patch specified in this bug report by doing some thing like

cd php-5.3.3
patch -p0 -d . < patch

or try the latest PHP Source snapshot from http://snaps.php.net

Hope this helps
Sriram



As far as I can tell, stdint.h does not appear to exist in Solaris 9. It does exist in Solaris 10. Since this server isn't slated for upgrade to Solaris 10 in the immediate future, I need to figure out why PHP 5.3.3 all of a sudden needs to have stdint.h available, when 5.3.2 did not.

Anybody have any ideas/suggestions?

Thanks,
Kurt


[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux