[Mapserver-users] Compiling problems ms 4.2+PHP5

Daniel Morissette dmorissette at dmsolutions.ca
Sat May 29 04:51:53 PDT 2004


Merlos wrote:
> Hello,
> 
> I'm trying to compile mapserver 4.2 and php5-RC2, has anybody succeed to 
> compile it with php5 or do I have to use PHP 4.3.x? I am doing something 
> wrong? Any advice?
> 

I wouldn't expect things to work with PHP5.  You will have to use PHP 4.3.x

> 
> I found another problem. If I try to compile with --with-postgis and 
> --with-mygis I got another error message. It seems that there are repeated 
> functions, is it possible to compile allowing both data sources?
> 

There is already a bug about this:
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=632

In the last comment I propose that the duplicate functions should be 
made static in both mappostgis.c and mapmygis.c but I was not setup to 
test that.  Can you please try changing the following:

char *DATAERRORMESSAGE(char *dString, char *preamble)

to

static char *DATAERRORMESSAGE(char *dString, char *preamble)

and the same for all other duplicate functions, in both source files, 
and report to the bug if that fixes the issue.  I'm 99% sure it will but 
don't want to commit that to CVS until someone tests it.



> 
> 
> Finally, When I try to compile with ming (I've installed latest release ming 
> 0.3beta1), when running configure I got this message:
> 
> checking if MING/Flash support requested... yes, user supplied MING directory
> ./configure: line 8175: -lming: command not found
> 

command not found?  That's odd.


> And then when running make:
> 
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ 
> -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR  -DUSE_MING_FLASH  
> -DUSE_TIFF  -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF  
> -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_MYGIS   -I/usr/local/include         
> -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/mysql 
> -I/usr/local/include -I/usr/local  mapswf.c -o mapswf.o
> mapswf.c: In function `BuildButtonFromGD':
> mapswf.c:444: warning: passing arg 2 of `SWFButton_addShape' from 
> incompatible pointer type


Maybe something radical changed in v0.3 making it incompatible with 
v0.2.  Perhaps file a bug in bugzilla about this one.

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the MapServer-users mailing list