Opened 18 years ago

Closed 18 years ago

#1595 closed defect (fixed)

C# mapscript modules produces runtime error

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

Description

After building the C# mapscript module, running (with debug logging on) produces:

(shpdump.exe:9632): Mono-WARNING **: DllImport unable to load library
'libmapscript.so: undefined symbol: __gxx_personality_v0'.

The non-debug exception is more obscure:

Unhandled Exception: System.TypeInitializationException: An exception was thrown
by the type initializer for mapscriptPINVOKE --->
System.TypeInitializationException: An exception was thrown by the type
initializer for SWIGExceptionHelper ---> System.DllNotFoundException:
libmapscript.so

I was able to fix this by adding a -lstdc++ to the LDFLAGS section of the
Makefile.  I don't if this is the correct solution, but it seems to work.

This is on Gentoo Linux, Mono 1.1.12.1, using Mapserver 4.6.2, gcc version:

gcc (GCC) 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Attachments (1)

lstdcpp.csharp-mapscript.patch (562 bytes ) - added by scottellington@… 18 years ago.
patch

Download all attachments as: .zip

Change History (5)

by scottellington@…, 18 years ago

patch

comment:1 by szekerest, 18 years ago

Owner: changed from sdlime to szekerest
Summary: C# mapscript modules produces runtime error C# mapscript modules produces runtime error
Assigned

comment:2 by szekerest, 18 years ago

Added Makefile.in for creating the Makefile automatically during the
configuration of mapserver. This will add -lstdc++ to the LDFLAGS section.

comitted to the CVS HEAD.

Tamas

comment:3 by szekerest, 18 years ago

Backported to Branch-4-8

comment:4 by szekerest, 18 years ago

Resolution: fixed
Status: newclosed
Marking as fixed
Note: See TracTickets for help on using tickets.