Ticket #167 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

service_internal_mono.c errors with MSVC 2017

Reported by: jmckenna Owned by:
Priority: blocker Milestone:
Component: zoo-kernel Version:
Keywords: Cc:

Description

  • using prototype-v0 branch
  • compile errors with zoo-kernel:
    service_internal_mono.c
    d:\build\mapserver-buildkit-2017\zoo-project-prototype-v0\zoo-kernel\service.h(66): warning C4244: '=': conversion from '__time64_t' to 'long', possible loss of data
    service_internal_mono.c(176): error C2664: 'maps *mapsFromZMaps(MonoDomain *,MonoClass **,MonoMethod **,MonoObject *)': cannot convert argument 4 from 'void *' to 'MonoObject *'
    service_internal_mono.c(176): note: Conversion from 'void*' to pointer to non-'void' requires an explicit cast
    service_internal_mono.c(181): error C2664: 'maps *mapsFromZMaps(MonoDomain *,MonoClass **,MonoMethod **,MonoObject *)': cannot convert argument 4 from 'void *' to 'MonoObject *'
    service_internal_mono.c(181): note: Conversion from 'void*' to pointer to non-'void' requires an explicit cast
    service_internal_mono.c(290): error C2440: 'initializing': cannot convert from 'MonoString *' to 'MonoObject *'
    service_internal_mono.c(290): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(291): error C2664: 'char *mono_string_to_utf8(MonoString *)': cannot convert argument 1 from 'MonoObject *' to 'MonoString *'
    service_internal_mono.c(291): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(294): error C2440: 'initializing': cannot convert from 'MonoString *' to 'MonoObject *'
    service_internal_mono.c(294): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(331): error C2440: 'initializing': cannot convert from 'MonoString *' to 'MonoObject *'
    service_internal_mono.c(331): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(332): error C2664: 'char *mono_string_to_utf8(MonoString *)': cannot convert argument 1 from 'MonoObject *' to 'MonoString *'
    service_internal_mono.c(332): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(335): error C2440: 'initializing': cannot convert from 'MonoString *' to 'MonoObject *'
    service_internal_mono.c(335): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(336): error C2664: 'char *mono_string_to_utf8(MonoString *)': cannot convert argument 1 from 'MonoObject *' to 'MonoString *'
    service_internal_mono.c(336): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(352): error C2664: 'char *mono_string_to_utf8(MonoString *)': cannot convert argument 1 from 'const char *' to 'MonoString *'
    service_internal_mono.c(352): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    service_internal_mono.c(352): error C2660: 'mono_string_new': function does not take 1 arguments
    D:\build\mapserver-buildkit-2017\zoo-project-prototype-v0\..\mono-5.18.0.240/msvc/include\mono/metadata/object.h(146): note: see declaration of 'mono_string_new'
    service_internal_mono.c(366): error C2440: 'initializing': cannot convert from 'int *' to 'int'
    service_internal_mono.c(366): note: There is no context in which this conversion is possible
    service_internal_mono.c(367): error C2446: '>': no conversion from 'int' to 'int *'
    service_internal_mono.c(367): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.EXE"' : return code '0x2'
    Stop.
    

Change History

Changed 5 years ago by jmckenna

  • cc jmckenna@… added

compiled mono version: mono-5.18.0.240

Changed 5 years ago by jmckenna

  • cc jmckenna@… removed
  • status changed from new to closed
  • resolution set to fixed

Note that this is solved with an updated version of that file at:

http://www.zoo-project.org/dl/2018_test_service_internal_mono.c

and

http://www.zoo-project.org/dl/2018_test_service_internal_mono.h

Rename those files locally to 'service_internal_mono.c' and 'service_internal_mono.h'

Note: See TracTickets for help on using tickets.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png