[mapserver-users] php-mapscript compilation problem on OpenSuse 11.1/11.2

Martin Ouellet geomartino at gmail.com
Fri Nov 20 13:40:17 PST 2009


Hi

We are unable to build php_mapscript.so.  We know that it's possible because
someone maintain a php-mapserv package for
opensuse.  We look in the needed of the package and everything seem to be
there.

Does someone have an idea why my php_mapscript.so doesn't build ?

Thank You

OS: OpenSuse 11.1/ 11.2
php : 5.2.9 / 5.3.0
mapserv 5.4.1 5.4.1 5.6_beta5
php5-dev package installed
--with-php=/usr/include/php5/ is in the ./configure option


mapserv building normaly but the php_mapscript.so never, I get no error
listing of mapserver-5.4.2/mapscript/php3
before the build:
Makefile     Makefile.vc  README.WIN32  mapscript_i.c  php_mapscript.c
php_mapscript_util.c  php_proj.c
Makefile.in  README       examples      nmake.opt      php_mapscript.h
php_mapscript_util.h  php_regex.c
after the build:
Makefile     README        mapscript_i.c  php_mapscript.c
php_mapscript_util.c  php_proj.c
Makefile.in  README.WIN32  mapscript_i.o  php_mapscript.h
php_mapscript_util.h  php_regex.c
Makefile.vc  examples      nmake.opt      php_mapscript.o
php_mapscript_util.o  php_regex.o

result of a make in mapserver-5.4.2/mapscript/php3:


gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR     -DUSE_WMS_LYR    -DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include    -I/usr/include/agg2 -I/usr/include/freetype2
-I/usr/include    -I/usr/include/php5/ -I/usr/include/php5//dl
-I/usr/include/php5//main -I/usr/include/php5//Zend
-I/usr/include/php5//include -I/usr/include/php5//TSRM
-I/usr/include/php5//ext/ereg/ -c -o php_mapscript_util.o
php_mapscript_util.c
gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR     -DUSE_WMS_LYR    -DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include    -I/usr/include/agg2 -I/usr/include/freetype2
-I/usr/include    -I/usr/include/php5/ -I/usr/include/php5//dl
-I/usr/include/php5//main -I/usr/include/php5//Zend
-I/usr/include/php5//include -I/usr/include/php5//TSRM
-I/usr/include/php5//ext/ereg/ -c -o php_mapscript.o php_mapscript.c
php_mapscript.c: In function ‘php3_ms_map_removeLayer’:
php_mapscript.c:6245: warning: cast from pointer to integer of different
size
php_mapscript.c: In function ‘php3_ms_img_pasteImage’:
php_mapscript.c:6596: warning: implicit declaration of function
‘php_gd_gdImageColorExact’
php_mapscript.c:6600: warning: implicit declaration of function
‘php_gd_gdImageColorTransparent’
php_mapscript.c:6603: warning: implicit declaration of function
‘php_gd_gdImageCopy’
php_mapscript.c: In function ‘_phpms_build_layer_object’:
php_mapscript.c:6689: warning: cast from pointer to integer of different
size
gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR     -DUSE_WMS_LYR    -DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include    -I/usr/include/agg2 -I/usr/include/freetype2
-I/usr/include    -I/usr/include/php5/ -I/usr/include/php5//dl
-I/usr/include/php5//main -I/usr/include/php5//Zend
-I/usr/include/php5//include -I/usr/include/php5//TSRM
-I/usr/include/php5//ext/ereg/ -c -o mapscript_i.o mapscript_i.c
gcc -fPIC -g -O2 -fPIC -Wall  -DUSE_PHP_REGEX -DCOMPILE_DL=1 -DPHP4
-DNEED_NONBLOCKING_STDERR     -DUSE_WMS_LYR    -DUSE_CURL   -DUSE_WMS_SVR
-DUSE_ORACLESPATIAL  -DUSE_POSTGIS  -DUSE_GDAL   -DUSE_THREAD -DUSE_PROJ
-DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -I/usr/src/mapserver-5.4.2
  -I/opt/oracle/product/10.2/db_1//rdbms/public
-I/opt/oracle/product/10.2/db_1//rdbms/demo
-I/opt/oracle/product/10.2/db_1//rdbms/public  -I/usr/include/pgsql
-I/usr/include    -I/usr/include/agg2 -I/usr/include/freetype2
-I/usr/include    -I/usr/include/php5/ -I/usr/include/php5//dl
-I/usr/include/php5//main -I/usr/include/php5//Zend
-I/usr/include/php5//include -I/usr/include/php5//TSRM
-I/usr/include/php5//ext/ereg/ -c -o php_regex.o php_regex.c
/bin/true  -o php_mapscript.so php_mapscript_util.o php_mapscript.o
mapscript_i.o php_regex.o  -L/usr/src/mapserver-5.4.2 -lmapserver    -lcurl
-L/opt/oracle/product/10.2/db_1//lib -lclntsh  -L/usr/lib64 -lpq  -ljpeg
-lfreetype -lz -lpng -lz -lXpm -lX11  -L/usr/lib64 -lgdal
-L/opt/oracle/product/10.2/db_1//lib -lclntsh -lnnz10 -L/usr/lib -lexpat
-L/usr/lib64/ecwj2/lib -lNCSEcw -lNCSCnet -lNCSUtil -ljpeg -lpng -lnetcdf
-L/usr/include/libcfitsio0 -L/usr/include/libcfitsio0/lib -lcfitsio -lz -lm
-lrt -ldl -lcurl  -lpthread -lproj -L/usr/lib64 -lagg -laggfontfreetype
-L/usr/lib -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11  -lc -lz   -lm
-lstdc++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091120/e00a66c7/attachment.htm>


More information about the MapServer-users mailing list