Java Mapscript and pointObj z and m (mapscript_wrap.c + Makefile)
Umberto asked me to submit this bug.
In the mapscript/java/Makefile, USE_POINT_Z_M is defined
by configure according to the presence of --enable-point-z-m
in the configure parameters, but it is not used in the
Makefile.
This causes compilation of mapscript/java/mapscript_wrap.c
to fail because it uses z and m variables of pointObj, and
these variables are protected by #ifdef USE_POINT_Z_M in
mapprimitive.h.
By including "$(USE_POINT_Z_M)" among the other options in
CCFLAGS in mapscript/java/Makefile.in, compilation runs
fine (if "--enable-point-z-m" is specified during configure).
Compilation still fails if "--enable-point-z-m" is not specified
in configure. The problem seems to be that the use of the z and m
variables of pointObj is not "protected" by "#ifdef USE_POINT_Z_M"
in mapscript/java/mapscript_wrap.c).
Change History
(4)
Resolution: |
→ invalid
|
Status: |
new → closed
|
Component: |
MapScript → MapScript-Java
|