[Mapserver-users] Compiling problems ms 4.2+PHP5

Daniel Morissette dmorissette at dmsolutions.ca
Sat May 29 07:51:53 EDT 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:

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)


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:
> -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 Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/

More information about the mapserver-users mailing list