suncc and PHP compatibility
it seems that suncc have some trouble when working with PHP,hope you can imporve it:
luoyi@4Email:~/src/lylib/trunk/topbuild$ cat do.sh
#!/bin/sh
echo "**************** first gcc *****************"
make -B lib/xarray_php5.do
echo "**************** then icc *****************"
make -B lib/xarray_php5.do INTEL=1
echo "**************** then pgroup *****************"
make -B lib/xarray_php5.do PGROUP=1
echo "**************** then pathscale *****************"
make -B lib/xarray_php5.do PATHSCALE=1
echo "**************** then suncc *****************"
make -B lib/xarray_php5.do SUN=1
luoyi@4Email:~/src/lylib/trunk/topbuild$ ./do.sh
**************** first gcc *****************
g++-c -shared -fpic -fPIC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -march=i686 -O2 -o lib/xarray_php5.do ../cnqp/xarray/source/xarray.cpp
[DEP] ./build/dep/xarray.d
**************** then icc *****************
icpc-c -shared -fpic -fPIC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -O3 -parallel -o lib/xarray_php5.do ../cnqp/xarray/source/xarray.cpp
[DEP] ./build/dep/xarray.d
**************** then pgroup *****************
pgCC-c -shared -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -fastsse -o lib/xarray_php5.do ../cnqp/xarray/source/xarray.cpp
[DEP] ./build/dep/xarray.d
**************** then pathscale *****************
pathCC-c -shared -fpic -fPIC -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -march=i686 -O2 -ipa -ffast-stdlib -o lib/xarray_php5.do ../cnqp/xarray/source/xarray.cpp
[DEP] ./build/dep/xarray.d
**************** then suncc *****************
sunCC -library=stlport4 -c -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -I/usr/local/include -fast -Bdynamic -o lib/xarray_php5.do ../cnqp/xarray/source/xarray.cpp
"/usr/local/include/php/Zend/zend_alloc.h", line 34: Error: Type name expected instead of "uint".
"/usr/local/include/php/Zend/zend_alloc.h", line 36: Error: Type name expected instead of "uint".
"/usr/local/include/php/Zend/zend_hash.h", line 39: Error: "," expected instead of "(".
"/usr/local/include/php/Zend/zend_hash.h", line 50: Error: Type name expected instead of "uint".
"/usr/local/include/php/Zend/zend_hash.h", line 61: Error: Type name expected instead of "uint".
"/usr/local/include/php/Zend/zend_hash.h", line 62: Error: Type name expected instead of "uint".
"/usr/local/include/php/Zend/zend_hash.h", line 63: Error: Type name expected instead of "uint".
"/usr/local/include/php/Zend/zend_hash.h", line 81: Error: Type name expected instead of "uint".
"/usr/local/include/php/Zend/zend_hash.h", line 93: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 94: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 101: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 107: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 113: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 119: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 147: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 153: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 156: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 157: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 161: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 162: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 172: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 177: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 207: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 208: Error: uint is not defined.
"/usr/local/include/php/Zend/zend_hash.h", line 209: Error: uint is not defined.
Compilation aborted, too many Error messages.
make: *** [lib/xarray_php5.do] Error 1
luoyi@4Email:~/src/lylib/trunk/topbuild$ head ../cnqp/xarray/source/xarray.cpp
// xarray = xml array
// usage: php -r '$xml=file_get_contents("./data.xml");
// $xml=iconv("GBK", "UTF-8", $xml);
// $xml=str_replace("encoding=\"GBK\"", "encoding=\"UTF-8\"", $xml);
// print_r(xmlarray($xml));'
#include "php.h"
#include "zend_API.h"
#include "expat.h"
#include "cnqp_log.h"
Message was edited by:
luoyi82

