Opened 19 years ago
Closed 18 years ago
#1595 closed defect (fixed)
C# mapscript modules produces runtime error
Reported by: | 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)
Change History (5)
by , 19 years ago
Attachment: | lstdcpp.csharp-mapscript.patch added |
---|
comment:1 by , 18 years ago
Owner: | changed from | to
---|---|
Summary: | C# mapscript modules produces runtime error → C# mapscript modules produces runtime error |
Assigned
comment:2 by , 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
Note:
See TracTickets
for help on using tickets.
patch