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

Undefined symbol "pthread_once" compiling tests

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • 1.8.0
    • Affects Version/s: 1.7.0
    • Component/s: Testing
    • Labels:
      None

      The compilation fails with:

        CCLD     libmongoc-1.0.la
        CCLD     libmongoc-priv.la
        CCLD     mongoc-stat
      ar: `u' modifier ignored since `D' is the default (see `U')
        CCLD     test-load
        CCLD     test-secondary
        CCLD     test-replica-set
        CCLD     test-sharded-cluster
      /usr/bin/ld: tests/test_replica_set-ha-test.o: undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'
      //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status
      Makefile:2971: recipe for target 'test-replica-set' failed
      make[1]: *** [test-replica-set] Error 1
      make[1]: *** Waiting for unfinished jobs....
      /usr/bin/ld: ./.libs/libmongoc-priv.a(libmongoc_priv_la-mongoc-init.o): undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'
      //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status
      /usr/bin/ld: ./.libs/libmongoc-priv.a(libmongoc_priv_la-mongoc-init.o): undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'
      //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status
      Makefile:2989: recipe for target 'test-secondary' failed
      make[1]: *** [test-secondary] Error 1
      Makefile:2961: recipe for target 'test-load' failed
      make[1]: *** [test-load] Error 1
      /usr/bin/ld: tests/test_sharded_cluster-ha-test.o: undefined reference to symbol 'pthread_once@@GLIBC_2.2.5'
      //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
      collect2: error: ld returned 1 exit status
      Makefile:2999: recipe for target 'test-sharded-cluster' failed
      make[1]: *** [test-sharded-cluster] Error 1
      make[1]: Leaving directory '/home/derick/dev/mongodb-mongo-c-driver'
      Makefile:5977: recipe for target 'all-recursive' failed
      make: *** [all-recursive] Error 1
      [GIT: (tags/1.7.0^0)]
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: