php mapscript compilation error

Sandeep Bashyal gis at UNDPHAIS.ORG.NP
Mon Sep 6 08:17:24 EDT 2004


Hi

I am getting the following errors while installing php mapscript:

#########################################################################################
cd mapscript/php3; make; cd ../..
make[1]: Entering directory `/usr/local/mapserver-4.2.3/mapscript/php3'
gcc -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR  -DUSE_WFS_SVR
-DUSE_WMS_SVR   -DUSE_MYGIS   -DUSE_GDAL -DUSE_OGR   -DUSE_THREAD
-DUSE_PROJ -DUSE_PROJ_API_H  -DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-I/usr/local/mapserver-4.2.3    -I/usr/local/mysql/include
-I/usr/local/include     -I/usr/local/include  -I/usr/src/php-4.3.3
-I/usr/src/php-4.3.3/dl -I/usr/src/php-4.3.3/main
-I/usr/src/php-4.3.3/Zend -I/usr/src/php-4.3.3/include
-I/usr/src/php-4.3.3/TSRM  -c -o php_mapscript_util.o php_mapscript_util.c
php_mapscript_util.c: In function `_phpms_fetch_handle2':
php_mapscript_util.c:153: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_fetch_property_handle2':
php_mapscript_util.c:205: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_fetch_property_string':
php_mapscript_util.c:252: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_fetch_property_long':
php_mapscript_util.c:278: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_fetch_property_double':
php_mapscript_util.c:311: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_fetch_property_resource':
php_mapscript_util.c:337: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_set_property_string':
php_mapscript_util.c:373: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_set_property_null':
php_mapscript_util.c:401: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_set_property_long':
php_mapscript_util.c:430: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_phpms_set_property_double':
php_mapscript_util.c:459: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript_util.c: In function `_php_extract_associative_array':
php_mapscript_util.c:545: warning: dereferencing type-punned pointer will
break strict-aliasing rules
gcc -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR  -DUSE_WFS_SVR
-DUSE_WMS_SVR   -DUSE_MYGIS   -DUSE_GDAL -DUSE_OGR   -DUSE_THREAD
-DUSE_PROJ -DUSE_PROJ_API_H  -DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR
-I/usr/local/mapserver-4.2.3    -I/usr/local/mysql/include
-I/usr/local/include     -I/usr/local/include  -I/usr/src/php-4.3.3
-I/usr/src/php-4.3.3/dl -I/usr/src/php-4.3.3/main
-I/usr/src/php-4.3.3/Zend -I/usr/src/php-4.3.3/include
-I/usr/src/php-4.3.3/TSRM  -c -o php_mapscript.o php_mapscript.c
php_mapscript.c: In function `php3_ms_map_setExtent':
php_mapscript.c:1824: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `_php3_ms_map_setProjection':
php_mapscript.c:1914: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_zoomPoint':
php_mapscript.c:2433: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_zoomRectangle':
php_mapscript.c:2730: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_zoomScale':
php_mapscript.c:3072: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_draw':
php_mapscript.c:3329: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_drawQuery':
php_mapscript.c:3418: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_setLayersDrawingOrder':
php_mapscript.c:4901: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_loadMapContext':
php_mapscript.c:5572: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_map_selectOutputFormat':
php_mapscript.c:5650: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_img_free':
php_mapscript.c:6214: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_point_free':
php_mapscript.c:9371: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_line_free':
php_mapscript.c:9718: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_shape_project':
php_mapscript.c:9969: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_shape_free':
php_mapscript.c:10432: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_rect_free':
php_mapscript.c:10954: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_shapefile_free':
php_mapscript.c:11552: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_projection_free':
php_mapscript.c:11701: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_symbol_setPoints':
php_mapscript.c:12880: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c:12889: warning: dereferencing type-punned pointer will
break strict-aliasing rules
php_mapscript.c: In function `php3_ms_symbol_setStyle':
php_mapscript.c:13033: warning: dereferencing type-punned pointer will
break strict-aliasing rules
#############################################################################################

Config parameters for mapserver:
./configure --without-tiff --without-eppl --with-threads --with-proj
--with-gdal=/usr/local/bin/gdal-config --with-ogr
--with-php=/usr/src/php-4.3.3 --with-freetype=/usr/bin  --with-wmsclient
--with-wfs --with-wfsclient  --with-mygis=/usr/local/mysql/bin/mysql_config

Php was built using:
./configure --enable-shared --with-regex=system --with-jpeg-dir=/usr
--with-png-dir=/usr --with-zlib --with-gd=/usr/local
--with-freetype-dir=/usr --enable-force-cgi-redirect --enable-dbase
--with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php433/
--prefix=/usr/local/php433

I'm new to mapserver and can't seem to figure out what I'm doing wrong.
Any help would be greatly appreciated.

Thanks in advance.

--
Sandeep Bashyal
--
   National GIS Officer
   Humanitarian Assistance Information System (HAIS)
   United Nations (NEP/01/008)
   UN House, Pulchowk
   G.P.O. Box 107
   Kathmandu, Nepal
   Tel: (+977) 01 5543957
        (+977) 01 5554304
   Cell:(+977) 9841270854
   Fax: (+977) 01 5528059
--------------------------------------------------
mailto:gis(at)undphais.org.np
mailto:sandeep(at)earthmapping.com
http://www.undp.org.np



More information about the mapserver-users mailing list