Update install instructions for MSYS2

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.10.0
    • Affects Version/s: 1.9.0
    • Component/s: Docs, libmongoc
    • None
    • Environment:
      - windows 7x64
      - msys2 mingw32 mingw64
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I test with mingw32 and mingw64

      1.9.0 release got this error:

        CC       tests/test_libmongoc-test-mongoc-usleep.o
        CC       tests/test_libmongoc-test-mongoc-util.o
        CC       tests/test_libmongoc-test-mongoc-version.o
        CC       tests/test_libmongoc-test-mongoc-write-commands.o
        CC       tests/test_libmongoc-test-mongoc-write-concern.o
        CC       tests/test_libmongoc-TestSuite.o
        CC       tests/test_libmongoc-test-mongoc-x509.o
        CC       tests/test_libmongoc-test-mongoc-stream-tls.o
        CC       tests/test_libmongoc-test-mongoc-stream-tls-error.o
        CC       tests/test_libmongoc-ssl-test.o
        CC       tests/test_libmongoc-test-mongoc-cyrus.o
        CCLD     test-libmongoc.exe
      ./.libs/libmongoc.a(libmongoc_la-mongoc-client.o):mongoc-client.c:(.text+0xc8): undefined reference to `__ns_initparse'
      ./.libs/libmongoc.a(libmongoc_la-mongoc-client.o):mongoc-client.c:(.text+0xc8): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__ns_initparse'
      ./.libs/libmongoc.a(libmongoc_la-mongoc-client.o):mongoc-client.c:(.text+0x108): undefined reference to `__ns_parserr'
      ./.libs/libmongoc.a(libmongoc_la-mongoc-client.o):mongoc-client.c:(.text+0x108): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__ns_parserr'
      collect2: error: ld returned 1 exit status
      make[1]: *** [Makefile:2715: test-libmongoc.exe] Error 1
      make[1]: Leaving directory '/e/Project/allproject_git/test/mongo-c-driver-1.9.0'
      make: *** [Makefile:5167: all-recursive] Error 1
      

      PS:
      There are a log of warnings about `_mongoc_get_cpu_count` while compliing:

        ^~~~~~~
        CC       src/mongoc/libmongoc_la-mongoc-stream-tls-openssl-bio.lo
      In file included from src/mongoc/mongoc-stream-tls-openssl-bio.c:26:0:
      src/mongoc/mongoc-counters-private.h: In function ‘_mongoc_get_cpu_count’:
      src/mongoc/mongoc-counters-private.h:85:2: warning: #warning "_mongoc_get_cpu_count() not supported, defaulting to 1." [-Wcpp]
       #warning "_mongoc_get_cpu_count() not supported, defaulting to 1."
        ^~~~~~~
      

        1. CMakeOutput.log
          23 kB
        2. mongoc-config.h
          8 kB

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            mithril
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: