Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-544

Can't compile with MinGW-w64

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.2
    • Affects Version/s: 1.1.0
    • Component/s: mingw
    • None
    • Environment:
      Windows 7, MinGW w64

      I can't compile mongo-c-driver 1.1.0 with MinGW w64.

      Steps to reproduce :

      1. Open a MSYS shell
      2. Set the environment (for OpenSSL support)

      export CFLAGS="-IC:/Libs/amd64/libopenssl/include"
      export LDFLAGS="-LC:/Libs/amd64/libopenssl/lib"

      3. Run configure and make

      ./configure --prefix=C:/Libs/amd64/libmongo
      make

      The error:

      Making all in src/libbson
      make[1]: Entering directory `/c/mongo-c-driver-1.1.0/src/libbson'
      make[1]: Nothing to be done for `all'.
      make[1]: Leaving directory `/c/mongo-c-driver-1.1.0/src/libbson'
      make[1]: Entering directory `/c/mongo-c-driver-1.1.0'
      CCLD libmongoc-priv.la
      libtool: error: can't build i686-pc-mingw32 shared library unless -no-undefined is specified
      make[1]: *** [libmongoc-priv.la] Error 1
      make[1]: Leaving directory `/c/mongo-c-driver-1.1.0'
      make: *** [all-recursive] Error 1

            Assignee:
            mira.carey@mongodb.com Mira Carey
            Reporter:
            markand Demelier David
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: