Opened 17 years ago
Last modified 15 years ago
#2185 closed defect
Certain configure options cause mapscript csharp make test to fail after build — at Initial Version
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
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