Opened 12 years ago

Closed 11 years ago

#2185 closed defect (wontfix)

Certain configure options cause mapscript csharp make test to fail after build

Reported by: mgleahy Owned by: tamas
Priority: normal Milestone: 5.4 release
Component: MapScript-C# Version: 5.0
Severity: normal Keywords: csharp mapscript compile options
Cc:

Description (last modified by dmorissette)

If '--enable-coverage' or '--with-fastcgi=/path' is included in the mapserver configure options, then the mapscript_csharp module will appear to successfully build, but fails 'make test'. The csharp dll will still build with other applications, but will fail at runtime. If these two options are excluded from the configure, mapscript_csharp works fine.

After building, the errors from make test and/or when running any other C# application that uses the library are:

LC_ALL=C mono ./shpdump.exe ../../tests/point.shp

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for OSGeo.MapServer.mapscriptPINVOKE ---> System.TypeInitializationException: An exception was thrown by the type initializer for SWIGExceptionHelper ---> System.DllNotFoundException: libmapscript.so
  at (wrapper managed-to-native) SWIGExceptionHelper:SWIGRegisterExceptionCallbacks_mapscript (OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate,OSGeo.MapServer.mapscriptPINVOKE/SWIGExceptionHelper/ExceptionDelegate)
  at OSGeo.MapServer.mapscriptPINVOKE+SWIGExceptionHelper..cctor () [0x00000] --- End of inner exception stack trace ---

  at <0x00000> <unknown method>
  at OSGeo.MapServer.mapscriptPINVOKE..cctor () [0x00000] --- End of inner exception stack trace ---

  at <0x00000> <unknown method>
  at OSGeo.MapServer.shapefileObj..ctor (System.String filename, Int32 type) [0x00000]
  at ShapeDump.Main (System.String[] args) [0x00000]
make: *** [test] Error 1

Change History (5)

comment:1 Changed 12 years ago by dmorissette

Description: modified (diff)
Milestone: 5.0 release

comment:2 Changed 12 years ago by tamas

Milestone: 5.0 release5.2 release

comment:3 Changed 11 years ago by tamas

Milestone: 5.2 release5.4 release

comment:4 Changed 11 years ago by mgleahy

This problem seems to be gone for me as far as I can tell, as-of 5.2-beta3 (on the same setup that I originally encountered the problems with). Should it be closed?

comment:5 Changed 11 years ago by tamas

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.