error when compile java mapscript

Sue Bai sue at ACRCORP.COM
Tue Aug 31 17:25:18 EDT 2004


Hello, all

My purpose is get mapserver work with Tomcat/JSP
Environment: Windows XP Professional with Cygwin installed
I follow the instruction found on MapServer Wiki to compile java mapscript

I was able to compile all java files. But when I run "make mapscript_so",
got following error:

User at ACR-T41 /cygdrive/c/Download/mapserver-4.2.2/mapscript
gcc -fpic -c -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -
DUSE_GD_TTF
 -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -
DGD_HAS_GDIMAGEGIFPTR -I
/usr/local/java/include -I/usr/local/java/include/linux mapscript_wrap.c
cc1: warning: -fpic ignored for target (all code is position independent)
g++ -fpic -shared mapscript_wrap.o -o libmapscript.so -L/opt/grass-
libs/lib -L../.. -L/usr/local/lib -lgd
mapscript_wrap.o(.text+0x154):mapscript_wrap.c: undefined reference to
`_msSetError'
mapscript_wrap.o(.text+0x1e3):mapscript_wrap.c: undefined reference to
`_msProjectRect'
mapscript_wrap.o(.text+0x204):mapscript_wrap.c: undefined reference to
`_msAdjustExtent'
mapscript_wrap.o(.text+0x21a):mapscript_wrap.c: undefined reference to
`_msInitShape'
mapscript_wrap.o(.text+0x25f):mapscript_wrap.c: undefined reference to
`_msRectToPolygon'
mapscript_wrap.o(.text+0x29b):mapscript_wrap.c: undefined reference to
`_msDrawShape'
.......

I don't really know much about C programming, can someone tell me what is
wrong.

BTW, the folder and files under my C:\cygwin\usr\local\lib is swig1.3 and
libgd.a and libgd.la. Not sure if this information userful or not?

Thanks a lot.

Tu



More information about the mapserver-users mailing list