Opened 17 years ago

Closed 15 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 by dmorissette, 17 years ago

Description: modified (diff)
Milestone: 5.0 release

comment:2 by tamas, 17 years ago

Milestone: 5.0 release5.2 release

comment:3 by tamas, 16 years ago

Milestone: 5.2 release5.4 release

comment:4 by mgleahy, 16 years ago

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 by tamas, 15 years ago

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