Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3295

C# library does not build on Mono 4.0.2.5 or later

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.3
    • Build Process, C# - Library
    • None
    • Patch Available
    • Patch

    Description

      Mono C# compiler gmcs has been available as backward compatibility script for years.

      http://www.mono-project.com/docs/about-mono/languages/csharp/

      Starting with Mono version 2.11 a new unified compiler mcs is available. It replaces all previous runtime specific compilers (gmcs, dmcs, smcs). They still exist (as scripts only) to ease the migration path to mcs but we strongly recommend to use mcs.

      But Mono 4.0.2.5 and later no longer ships with it.

      https://github.com/mono/mono/commit/b304ec5e0e694ef7098e0fc3eba9dbc0162f4568

      This makes it impossible to build Thrift C# library on modern Mono.

      The patch does the following

      • check mono version and availability of mcs executable
      • if mono >= 2.11 and mcs is there, use mcs
      • if not, use gmcs and nothing changes as before

      Attachments

        Activity

          People

            nsuke Nobuaki Sukegawa
            nsuke Nobuaki Sukegawa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: