MapServer / MapServer-import

3 stars 2 forks source link

c# module on mono/linux: drawmap sample produces runtime error #1597

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: scottellington@comcast.net Date: 2006/01/05 - 00:44

Running the drawmap.exe sample on Mono / Linux produces the following error:

mono: symbol lookup error: libmapscript.so: undefined symbol: pj_init

This is Mono 1.1.12.1.  I tried SWIG version 1.3.25 and 1.3.27.  It might not be
related, but I got some warnings when building:

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
mapscript_wrap.c
mapscript_wrap.c: In function `CSharp_imageObj_getBytes':
mapscript_wrap.c:24976: warning: `return' with a value, in function returning void
mapscript_wrap.c:24984: warning: `return' with a value, in function returning void
mapscript_wrap.c:24992: warning: `return' with a value, in function returning void
mapscript_wrap.c:25000: warning: `return' with a value, in function returning void
mapscript_wrap.c:25008: warning: `return' with a value, in function returning void
mapscript_wrap.c:25016: warning: `return' with a value, in function returning void
tbonfort commented 12 years ago

Author: szekerest Date: 2006/01/14 - 00:41


Are the warnings described related to this bug?:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1500

The drawmap sample does not use getBytes as far as I know.

Tamas
tbonfort commented 12 years ago

Author: scottellington@comcast.net Date: 2006/01/14 - 01:22

Looks like the same warning...  I only included them on this bug for the sake of
completedness.  But I went ahead and tested CVS mapserver, and your fix did not
affect my problem.
tbonfort commented 12 years ago

Author: scottellington@comcast.net Date: 2006/01/20 - 06:46

I was able to get this working by adding -lproj and -lpq to the LDFLAGS in the
Makefile.
tbonfort commented 12 years ago

Author: szekerest Date: 2006/03/16 - 01:15

Assigned
tbonfort commented 12 years ago

Author: szekerest Date: 2006/03/19 - 01:29


Added Makefile.in for creating the Makefile automatically during the
configuration of mapserver. This will add -lproj and -lpq to the LDFLAGS
automatically.

./configure --with-proj --with-postgis

should be used in this case.

comitted to the CVS HEAD.

Tamas
tbonfort commented 12 years ago

Author: szekerest Date: 2006/03/19 - 18:16


Backported to Branch-4-8
tbonfort commented 12 years ago

Author: szekerest Date: 2006/03/19 - 21:07


Marking as fixed