[Mapserver-users] PHP-Mapscript - Compilation error and warnings - HP UX

FABIO COELHO qoelhex at cttmar.univali.br
Thu May 20 12:07:13 PDT 2004


So, I'm here  again

I'm compiling mapserver for a HP-UX ( and was noticed that can all changed for
AIX, in a week, oh dear god of Nerds , help me ! ! ! ).

Well, I got this warnings compiling mapserver:
----------------------------------------------------------------------------
> gcc -fPIC -O2  -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_SVR          -DUSE_PROJ 
> -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_TIFF -DUSE_PDF  -DUSE_GD_PNG -DUSE_GD_JPEG 
> -DUSE_GD_WBMP -DUSE_GD_FT   -I/usr/desen/cunivali/Tar/mapserver-4.0.2          
> -I/opt/univali/include -I/opt/univali/include 
> -I/usr/desen/cunivali/Tar/PDFlib-Lite-5.0.3-Unix-src/libs/pdflib 
> -I/opt/univali/include   -I/usr/desen/cunivali/Tar/php-4.3.4/ 
> -I/usr/desen/cunivali/Tar/php-4.3.4//dl > 
> -I/usr/desen/cunivali/Tar/php-4.3.4//main 
> -I/usr/desen/cunivali/Tar/php-4.3.4//Zend 
> -I/usr/desen/cunivali/Tar/php-4.3.4//include 
> -I/usr/desen/cunivali/Tar/php-4.3.4//TSRM  -c -o php_mapscript_util.o 
> php_mapscript_util.c

> php_mapscript_util.c: In function `_phpms_fetch_handle2':
> php_mapscript_util.c:147: warning: dereferencing type-punned pointer will 
> break strict-aliasing rules
------------------------------------------------------------------------------

A lot of these, for many other functions in php_mapscript_util, and after came
an error:

------------------------------------------------------------------------------
> g++ -shared  -o php_mapscript.so php_mapscript_util.o php_mapscript.o 
> mapscript_i.o  -L/usr/desen/cunivali/Tar/mapserver-4.0.2 -lmap           
> -L/opt/univali/lib -lproj -L/opt/univali/lib -ltiff  -L/opt/univali/lib -Wl,+b 
> -Wl,/opt/univali/lib -lfreetype -lpng -L/opt/univali/lib -lz   
> -L/usr/desen/cunivali/Tar/PDFlib-Lite-5.0.3-Unix-src/libs/pdflib/lib -lpdf 
> -L/opt/univali/lib -lgd  -L/opt/univali/lib -Wl,+b -Wl,/opt/univali/lib 
> -lfreetype -lpng -L/opt/univali/lib -lz      -lm


> /usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for 
> symbol "zcalloc" in input file "/opt/univali/lib/libz.a(deflate.o)"
> collect2: ld returned 1 exit status
> gmake[1]: *** [php_mapscript.so] Error 1
------------------------------------------------------------------------------

I'm using this configure:

------------------------------------------------------------------------------
> LDFLAGS=-lstdc++ ./configure --prefix=/opt/univali/mapserver 
> --with-zlib=/opt/univali/lib --with-freetype=/opt/univali --with-libiconv 
> --with-gd=/opt/univali 
> --with-pdf=/usr/desen/cunivali/Tar/PDFlib-Lite-5.0.3-Unix-src/libs/pdflib 
> --with-curl-config=/opt/univali/bin/curl-config 
> --with-php=/usr/desen/cunivali/Tar/php-4.3.4/ --with-proj=/opt/univali 
> --with-tiff=/opt/univali 
> --with-httpd=/ias/app/oracle/product/1.0.2/Apache/Apache/bin/httpd 
> --libdir=/opt/univali/lib  --with-thread
------------------------------------------------------------------------------

I need some light, it's a configure error or I'll need make changes on the code?

Regards

by qoelheX



------------------------------------------------
Este e-mail foi enviado pelo webmail do curso de
       Ciência da Computação - UNIVALI



More information about the MapServer-users mailing list