Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1597 closed defect (fixed)

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

Reported by: scottellington@… Owned by: szekerest
Priority: high Milestone:
Component: MapScript-C# Version: 4.6
Severity: normal Keywords:
Cc:

Description

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

Change History (8)

comment:1 by szekerest, 18 years ago

Cc: szekeres.tamas@… added

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

comment:2 by scottellington@…, 18 years ago

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.

comment:3 by scottellington@…, 18 years ago

I was able to get this working by adding -lproj and -lpq to the LDFLAGS in the
Makefile.

comment:4 by szekerest, 18 years ago

Owner: changed from sdlime to szekerest
Assigned

comment:5 by szekerest, 18 years ago

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

comment:6 by szekerest, 18 years ago

Backported to Branch-4-8

comment:7 by szekerest, 18 years ago

Resolution: fixed
Status: newclosed
Marking as fixed

comment:8 by sdlime, 18 years ago

Component: MapScriptMapScript-C#
Note: See TracTickets for help on using tickets.