<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi</span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></font></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">We are unable to build php_mapscript.so. We know that it's possible because someone maintain a php-mapserv package for<br>
opensuse. We look in the needed of the package and everything seem to be there.<br><br>Does someone have an idea why my php_mapscript.so doesn't build ?<br><br>Thank You</span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br>
OS: OpenSuse 11.1/ 11.2<br>php : 5.2.9 / 5.3.0<br>mapserv 5.4.1 5.4.1 5.6_beta5<br>php5-dev package installed<br>--with-php=/usr/include/php5/ is in the ./configure option<br><br><br>mapserv building normaly but the php_mapscript.so never, I get no error<br>
listing of mapserver-5.4.2/mapscript/php3<br>before the build:<br>Makefile Makefile.vc README.WIN32 mapscript_i.c php_mapscript.c<br>php_mapscript_util.c php_proj.c<br>Makefile.in README examples nmake.opt php_mapscript.h<br>
php_mapscript_util.h php_regex.c<br>after the build:<br>Makefile README mapscript_i.c php_mapscript.c<br>php_mapscript_util.c php_proj.c<br>Makefile.in README.WIN32 mapscript_i.o php_mapscript.h<br>php_mapscript_util.h php_regex.c<br>
Makefile.vc examples nmake.opt php_mapscript.o<br>php_mapscript_util.o php_regex.o<br><br>result of a make in mapserver-5.4.2/mapscript/php3:<br><br><br>gcc -fPIC -g -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4<br>
-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_CURL -DUSE_WMS_SVR<br>-DUSE_ORACLESPATIAL -DUSE_POSTGIS -DUSE_GDAL -DUSE_THREAD -DUSE_PROJ<br>-DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG<br>-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR<br>
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/src/mapserver-5.4.2<br> -I/opt/oracle/product/10.2/db_1//rdbms/public<br>-I/opt/oracle/product/10.2/db_1//rdbms/demo<br>-I/opt/oracle/product/10.2/db_1//rdbms/public -I/usr/include/pgsql<br>
-I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2<br>-I/usr/include -I/usr/include/php5/ -I/usr/include/php5//dl<br>-I/usr/include/php5//main -I/usr/include/php5//Zend<br>-I/usr/include/php5//include -I/usr/include/php5//TSRM<br>
-I/usr/include/php5//ext/ereg/ -c -o php_mapscript_util.o<br>php_mapscript_util.c<br>gcc -fPIC -g -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4<br>-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_CURL -DUSE_WMS_SVR<br>
-DUSE_ORACLESPATIAL -DUSE_POSTGIS -DUSE_GDAL -DUSE_THREAD -DUSE_PROJ<br>-DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG<br>-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR<br>-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/src/mapserver-5.4.2<br>
-I/opt/oracle/product/10.2/db_1//rdbms/public<br>-I/opt/oracle/product/10.2/db_1//rdbms/demo<br>-I/opt/oracle/product/10.2/db_1//rdbms/public -I/usr/include/pgsql<br>-I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2<br>
-I/usr/include -I/usr/include/php5/ -I/usr/include/php5//dl<br>-I/usr/include/php5//main -I/usr/include/php5//Zend<br>-I/usr/include/php5//include -I/usr/include/php5//TSRM<br>-I/usr/include/php5//ext/ereg/ -c -o php_mapscript.o php_mapscript.c<br>
php_mapscript.c: In function ‘php3_ms_map_removeLayer’:<br>php_mapscript.c:6245: warning: cast from pointer to integer of different<br>size<br>php_mapscript.c: In function ‘php3_ms_img_pasteImage’:<br>php_mapscript.c:6596: warning: implicit declaration of function<br>
‘php_gd_gdImageColorExact’<br>php_mapscript.c:6600: warning: implicit declaration of function<br>‘php_gd_gdImageColorTransparent’<br>php_mapscript.c:6603: warning: implicit declaration of function<br>‘php_gd_gdImageCopy’<br>
php_mapscript.c: In function ‘_phpms_build_layer_object’:<br>php_mapscript.c:6689: warning: cast from pointer to integer of different<br>size<br>gcc -fPIC -g -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4<br>-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_CURL -DUSE_WMS_SVR<br>
-DUSE_ORACLESPATIAL -DUSE_POSTGIS -DUSE_GDAL -DUSE_THREAD -DUSE_PROJ<br>-DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG<br>-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR<br>-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/src/mapserver-5.4.2<br>
-I/opt/oracle/product/10.2/db_1//rdbms/public<br>-I/opt/oracle/product/10.2/db_1//rdbms/demo<br>-I/opt/oracle/product/10.2/db_1//rdbms/public -I/usr/include/pgsql<br>-I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2<br>
-I/usr/include -I/usr/include/php5/ -I/usr/include/php5//dl<br>-I/usr/include/php5//main -I/usr/include/php5//Zend<br>-I/usr/include/php5//include -I/usr/include/php5//TSRM<br>-I/usr/include/php5//ext/ereg/ -c -o mapscript_i.o mapscript_i.c<br>
gcc -fPIC -g -O2 -fPIC -Wall -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4<br>-DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_CURL -DUSE_WMS_SVR<br>-DUSE_ORACLESPATIAL -DUSE_POSTGIS -DUSE_GDAL -DUSE_THREAD -DUSE_PROJ<br>
-DUSE_EPPL -DUSE_AGG -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG<br>-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR<br>-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB -I/usr/src/mapserver-5.4.2<br> -I/opt/oracle/product/10.2/db_1//rdbms/public<br>
-I/opt/oracle/product/10.2/db_1//rdbms/demo<br>-I/opt/oracle/product/10.2/db_1//rdbms/public -I/usr/include/pgsql<br>-I/usr/include -I/usr/include/agg2 -I/usr/include/freetype2<br>-I/usr/include -I/usr/include/php5/ -I/usr/include/php5//dl<br>
-I/usr/include/php5//main -I/usr/include/php5//Zend<br>-I/usr/include/php5//include -I/usr/include/php5//TSRM<br>-I/usr/include/php5//ext/ereg/ -c -o php_regex.o php_regex.c<br>/bin/true -o php_mapscript.so php_mapscript_util.o php_mapscript.o<br>
mapscript_i.o php_regex.o -L/usr/src/mapserver-5.4.2 -lmapserver -lcurl<br>-L/opt/oracle/product/10.2/db_1//lib -lclntsh -L/usr/lib64 -lpq -ljpeg<br>-lfreetype -lz -lpng -lz -lXpm -lX11 -L/usr/lib64 -lgdal<br>-L/opt/oracle/product/10.2/db_1//lib -lclntsh -lnnz10 -L/usr/lib -lexpat<br>
-L/usr/lib64/ecwj2/lib -lNCSEcw -lNCSCnet -lNCSUtil -ljpeg -lpng -lnetcdf<br>-L/usr/include/libcfitsio0 -L/usr/include/libcfitsio0/lib -lcfitsio -lz -lm<br>-lrt -ldl -lcurl -lpthread -lproj -L/usr/lib64 -lagg -laggfontfreetype<br>
-L/usr/lib -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 -lc -lz -lm<br>-lstdc++<br><br><br><br></span></div>