[Mapserver-users] Compiling problems ms 4.2+PHP5
Merlos
merlos at tsc.uvigo.es
Sat May 29 09:59:25 PDT 2004
Hello Daniel
I added the static reserved word and it worked, at least, it compiled. I
haven't tested if it does not give any problems when using it for getting
data from the database, but it compiled.
The functions I modified in both files where:
DATAERRORMESSAGE()
prep_DB()
force_to_points()
force_to_lines()
force_to_polygons()
dont_force()
find_bounds()
Thank you.
Finally, as I said in other message, I built PHP 4.3.7 and I could compile
mapserver with php/mapscript.
On Saturday 29 May 2004 13:51, Daniel Morissette wrote:
> 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
--
--
http://www.merlos.biz
More information about the MapServer-users
mailing list