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

ENABLE_SHM_COUNTERS, ENABLE_SRV, and ENABLE_ZSTD checks should be improved

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.15.0
    • Component/s: libbson
    • None
    • Environment:
      Cross compile on Debian 64Bit with Android NDK r20, using clang from NDK clang version 8.0.7 and Qt version 5.12.3

      Hi

      I'm cross compiling for Android and it ends up with errors, but at this time I'm interrested in libbson-static library which seems to compile fine.

      I'm copying libbson-static-1.0.a to Qt project, and sources from

      mongo-c-driver/src/libbson/src/bson to include in project.

      It will compile until I use actual libbson code like this

      b = bson_new_from_data (reinterpret_cast<uint8_t*>(data.data()), data.size())
      

      Then it fails with errors below. It works fine on Linux

      I have prepared small test application

      [https://github.com/frankipl/libbson_test​|https://github.com/frankipl/libbson_test]

      Best Regards

      Marek

      libbson-static-1.0.a compile Android project with Qt

      // /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson.c:0: error: undefined reference to 'stderr'  
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson.c:0: error: undefined reference to 'stderr'  
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson.c:0: error: undefined reference to 'stderr'  
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson.c:0: error: undefined reference to 'stderr'  
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson-context.c:235: error: undefined reference to 'rand_r'  
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson-context.c:235: error: undefined reference to 'rand_r'  
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson-context.c:235: error: undefined reference to 'rand_r'  
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      
      
      
      

      mongo-c-driver cmake compile

      // franki@franki:~/apps/qt/mongo-c-driver$ cmake . -DCMAKE_SYSTEM_NAME=Android -DCMAKE_TOOLCHAIN_FILE=/opt/Android/Ndk/android-ndk-r20/build/cmake/android.toolchain.cmake -DANDROID_PLATFO
      RM=android-28
      
      -- Check for working C compiler: /opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
      
      -- Check for working C compiler: /opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- works
      
      -- Detecting C compiler ABI info
      
      -- Detecting C compiler ABI info - done
      
      -- Detecting C compile features
      
      -- Detecting C compile features - done
      
      -- No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo
      
      -- Found PythonInterp: /usr/bin/python (found version "2.7.13")  
      calculated BUILD_VERSION 1.15.0-20190712+gitc88b84ff38
      
      storing BUILD_VERSION 1.15.0-20190712+gitc88b84ff38 in file VERSION_CURRENT for later use                                                                                                
        -- Using bundled libbson                                                                                                                                                               
      libbson version (from VERSION_CURRENT file): 1.15.0-pre                                                                                                                                  
      -- Check if the system is big endian                                                                                                                                                     
      -- Searching 16 bit integer                                                                                                                                                              
      -- Looking for sys/types.h                                                                                                                                                               
      -- Looking for sys/types.h - found                                                                                                                                                       
      -- Looking for stdint.h                                                                                                                                                                  
      -- Looking for stdint.h - found                                                                                                                                                          
      -- Looking for stddef.h                                                                                                                                                                  
      -- Looking for stddef.h - found
      
      -- Check size of unsigned short
      
      -- Check size of unsigned short - done
      
      -- Using unsigned short
      
      -- Check if the system is big endian - little endian
      
      -- Looking for snprintf
      
      -- Looking for snprintf - found
      
      -- Looking for reallocf
      
      -- Looking for reallocf - not found
      
      -- Performing Test BSON_HAVE_TIMESPEC
      
      -- Performing Test BSON_HAVE_TIMESPEC - Success
      
      --     struct timespec found
      
      -- Looking for gmtime_r
      
      -- Looking for gmtime_r - found
      
      -- Looking for rand_r
      
      -- Looking for rand_r - found
      
      -- Looking for strings.h                                                                                                                                                                 
      -- Looking for strings.h - found                                                                                                                                                         
      -- Looking for clock_gettime                                                                                                                                                             
      -- Looking for clock_gettime - found                                                                                                                                                     
      -- Looking for strnlen                                                                                                                                                                   
      -- Looking for strnlen - found                                                                                                                                                           
      -- Looking for stdbool.h                                                                                                                                                                 
      -- Looking for stdbool.h - found                                                                                                                                                         
      -- Looking for SYS_gettid                                                                                                                                                                
      -- Looking for SYS_gettid - found                                                                                                                                                        
      -- Looking for syscall
      
      -- Looking for syscall - found
      
      -- Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH
      
      -- Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH - Success
      
      -- Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH
      
      -- Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH - Success
      
      -- Looking for pthread.h
      
      -- Looking for pthread.h - found
      
      -- Looking for pthread_create
      
      -- Looking for pthread_create - found
      
      -- Found Threads: TRUE   
      libmongoc version (from VERSION_CURRENT file): 1.15.0-pre
      
      -- Searching for zlib CMake packages
      
      -- Found ZLIB: /opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a (found version "1.2.7")  
      --   zlib found version "1.2.7"
      
      --   zlib include path "/opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include"
      
      --   zlib libraries "/opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a"
      
      -- Looking for include file unistd.h
      
      -- Looking for include file unistd.h - found
      
      -- Looking for include file stdarg.h
      
      -- Looking for include file stdarg.h - found
      
      -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)  
      -- Searching for sasl/sasl.h
      
      --   Not found (specify -DCMAKE_INCLUDE_PATH=/path/to/sasl/include for SASL support)
      
      -- Searching for libsasl2
      
      --   Not found (specify -DCMAKE_LIBRARY_PATH=/path/to/sasl/lib for SASL support)
      
      -- Check size of socklen_t
      
      -- Check size of socklen_t - done
      
      -- Looking for res_nsearch
      
      -- Looking for res_nsearch - not found
      
      -- Looking for res_search
      
      -- Looking for res_search - found
      
      -- Looking for sched_getcpu
      
      -- Looking for sched_getcpu - not found
      
      -- Detected parameters: accept (int, struct sockaddr *, socklen_t *)
      
      -- Searching for compression library header snappy-c.h
      
      --   Not found (specify -DCMAKE_INCLUDE_PATH=/path/to/snappy/include for Snappy compression)
      
      -- No ICU library found, SASLPrep disabled for SCRAM-SHA-256 authentication.
      
      -- If ICU is installed in a non-standard directory, define ICU_ROOT as the ICU installation path.
      
      -- SSL disabled
      
      -- SASL disabled
      
      -- Configuring done
      
      -- Generating done
      
      -- Build files have been written to: /home/franki/apps/qt/mongo-c-driver
      
      franki@franki:~/apps/qt/mongo-c-driver$ make
      
      -- No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo
      
      file VERSION_CURRENT contained BUILD_VERSION 1.15.0-20190712+gitc88b84ff38
      
        -- Using bundled libbson
      
      libbson version (from VERSION_CURRENT file): 1.15.0-pre
      
      --     struct timespec found
      
      libmongoc version (from VERSION_CURRENT file): 1.15.0-pre
      
      -- Searching for zlib CMake packages
      
      --   zlib found version "1.2.7"
      
      --   zlib include path "/opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include"
      
      --   zlib libraries "/opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/libz.a"
      
      -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)  
      -- Searching for sasl/sasl.h
      
      --   Not found (specify -DCMAKE_INCLUDE_PATH=/path/to/sasl/include for SASL support)
      
      -- Searching for libsasl2
      
      --   Not found (specify -DCMAKE_LIBRARY_PATH=/path/to/sasl/lib for SASL support)
      
      -- Detected parameters: accept (int, struct sockaddr *, socklen_t *)
      
      -- Searching for compression library header snappy-c.h
      
      --   Not found (specify -DCMAKE_INCLUDE_PATH=/path/to/snappy/include for Snappy compression)
      
      -- No ICU library found, SASLPrep disabled for SCRAM-SHA-256 authentication.
      
      -- If ICU is installed in a non-standard directory, define ICU_ROOT as the ICU installation path.
      
      -- SSL disabled
      
      -- SASL disabled
      
      -- Configuring done
      
      -- Generating done
      
      -- Build files have been written to: /home/franki/apps/qt/mongo-c-driver
      
      Scanning dependencies of target bson_shared
      
      [  1%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bcon.c.o
      
      [  1%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson.c.o
      
      [  1%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-atomic.c.o
      
      [  1%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-clock.c.o
      
      [  2%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-context.c.o
      
      [  2%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-decimal128.c.o
      
      [  2%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-error.c.o
      
      [  2%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-iso8601.c.o
      
      [  3%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-iter.c.o
      
      [  3%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-json.c.o
      
      [  3%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-keys.c.o
      
      [  3%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-md5.c.o
      
      [  4%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-memory.c.o
      
      [  4%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-oid.c.o
      
      [  4%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-reader.c.o
      
      [  4%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-string.c.o
      
      [  5%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-timegm.c.o
      
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson-timegm.c:309:17: warning: assigning to 'char *' from 'const char *' discards qualifiers
      
            [-Wincompatible-pointer-types-discards-qualifiers]
      
         tmp->TM_ZONE = offset ? wildabbr : gmtptr ? gmtptr->chars : gmt;
      
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      1 warning generated.
      
      [  5%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-utf8.c.o
      
      [  5%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-value.c.o
      
      [  6%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-version-functions.c.o
      
      [  6%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/bson/bson-writer.c.o
      
      [  6%] Building C object src/libbson/CMakeFiles/bson_shared.dir/src/jsonsl/jsonsl.c.o
      
      [  6%] Building C object src/libbson/CMakeFiles/bson_shared.dir/__/common/common-b64.c.o
      
      [  7%] Building C object src/libbson/CMakeFiles/bson_shared.dir/__/common/common-md5.c.o
      
      [  7%] Linking C shared library libbson-1.0.so
      
      [  7%] Built target bson_shared
      
      Scanning dependencies of target bcon-speed
      
      [  7%] Building C object src/libbson/CMakeFiles/bcon-speed.dir/examples/bcon-speed.c.o
      
      [  8%] Linking C executable bcon-speed
      
      [  8%] Built target bcon-speed
      
      Scanning dependencies of target bson_static
      
      [  8%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bcon.c.o
      
      [  8%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson.c.o
      
      [  9%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-atomic.c.o
      
      [  9%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-clock.c.o
      
      [  9%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-context.c.o
      
      [  9%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-decimal128.c.o
      
      [ 10%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-error.c.o
      
      [ 10%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-iso8601.c.o
      
      [ 10%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-iter.c.o
      
      [ 11%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-json.c.o
      
      [ 11%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-keys.c.o
      
      [ 11%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-md5.c.o
      
      [ 11%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-memory.c.o
      
      [ 12%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-oid.c.o
      
      [ 12%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-reader.c.o
      
      [ 12%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-string.c.o
      
      [ 12%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-timegm.c.o
      
      /home/franki/apps/qt/mongo-c-driver/src/libbson/src/bson/bson-timegm.c:309:17: warning: assigning to 'char *' from 'const char *' discards qualifiers
      
            [-Wincompatible-pointer-types-discards-qualifiers]
      
         tmp->TM_ZONE = offset ? wildabbr : gmtptr ? gmtptr->chars : gmt;
      
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      1 warning generated.
      
      [ 13%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-utf8.c.o
      
      [ 13%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-value.c.o
      
      [ 13%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-version-functions.c.o
      
      [ 13%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/bson/bson-writer.c.o
      
      [ 14%] Building C object src/libbson/CMakeFiles/bson_static.dir/src/jsonsl/jsonsl.c.o
      
      [ 14%] Building C object src/libbson/CMakeFiles/bson_static.dir/__/common/common-b64.c.o
      
      [ 14%] Building C object src/libbson/CMakeFiles/bson_static.dir/__/common/common-md5.c.o
      
      [ 14%] Linking C static library libbson-static-1.0.a
      
      [ 14%] Built target bson_static
      
      Scanning dependencies of target json-to-bson
      
      [ 15%] Building C object src/libbson/CMakeFiles/json-to-bson.dir/examples/json-to-bson.c.o
      
      [ 15%] Linking C executable json-to-bson
      
      [ 15%] Built target json-to-bson
      
      Scanning dependencies of target bson-streaming-reader
      
      [ 15%] Building C object src/libbson/CMakeFiles/bson-streaming-reader.dir/examples/bson-streaming-reader.c.o
      
      [ 15%] Linking C executable bson-streaming-reader
      
      [ 15%] Built target bson-streaming-reader
      
      Scanning dependencies of target bson-to-json
      
      [ 15%] Building C object src/libbson/CMakeFiles/bson-to-json.dir/examples/bson-to-json.c.o
      
      [ 16%] Linking C executable bson-to-json
      
      [ 16%] Built target bson-to-json
      
      Scanning dependencies of target bson-metrics
      
      [ 16%] Building C object src/libbson/CMakeFiles/bson-metrics.dir/examples/bson-metrics.c.o
      
      [ 17%] Linking C executable bson-metrics
      
      [ 17%] Built target bson-metrics
      
      Scanning dependencies of target bson-validate
      
      [ 17%] Building C object src/libbson/CMakeFiles/bson-validate.dir/examples/bson-validate.c.o
      
      [ 17%] Linking C executable bson-validate
      
      [ 17%] Built target bson-validate
      
      Scanning dependencies of target bcon-col-view
      
      [ 17%] Building C object src/libbson/CMakeFiles/bcon-col-view.dir/examples/bcon-col-view.c.o
      
      [ 17%] Linking C executable bcon-col-view
      
      [ 17%] Built target bcon-col-view
      
      Scanning dependencies of target bson-check-depth
      
      [ 17%] Building C object src/libbson/CMakeFiles/bson-check-depth.dir/examples/bson-check-depth.c.o
      
      [ 17%] Linking C executable bson-check-depth
      
      [ 17%] Built target bson-check-depth
      
      Scanning dependencies of target mongoc_shared
      
      [ 17%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-aggregate.c.o
      
      [ 17%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-apm.c.o
      
      [ 18%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-array.c.o
      
      [ 18%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-async.c.o
      
      [ 18%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-async-cmd.c.o
      
      [ 18%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-buffer.c.o
      
      [ 19%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-bulk-operation.c.o
      
      [ 19%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-change-stream.c.o
      
      [ 19%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-client.c.o
      
      [ 20%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-client-pool.c.o
      
      [ 20%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cluster.c.o
      
      [ 20%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cluster-sasl.c.o
      
      [ 20%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-collection.c.o
      
      [ 21%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-compression.c.o
      
      [ 21%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-counters.c.o
      
      /home/franki/apps/qt/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-counters.c:141:7: warning: implicit declaration of function 'shm_unlink' is invalid in C99
      
            [-Wimplicit-function-declaration]
      
            shm_unlink (name);
      
            ^
      
      /home/franki/apps/qt/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-counters.c:177:20: warning: implicit declaration of function 'shm_open' is invalid in C99
      
            [-Wimplicit-function-declaration]
      
         if (-1 == (fd = shm_open (name,
      
                         ^
      
      /home/franki/apps/qt/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-counters.c:204:4: warning: implicit declaration of function 'shm_unlink' is invalid in C99
      
            [-Wimplicit-function-declaration]
      
         shm_unlink (name);
      
         ^
      
      3 warnings generated.
      
      [ 21%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-array.c.o
      
      [ 21%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor.c.o
      
      [ 22%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-cmd.c.o
      
      [ 22%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-change-stream.c.o
      
      [ 22%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-cmd-deprecated.c.o
      
      [ 22%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-find.c.o
      
      [ 23%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-find-cmd.c.o
      
      [ 23%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-find-opquery.c.o
      
      [ 23%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cursor-legacy.c.o
      
      [ 24%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-database.c.o
      
      [ 24%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-error.c.o
      
      [ 24%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-find-and-modify.c.o
      
      [ 24%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-init.c.o
      
      /home/franki/apps/qt/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-init.c:39:9: warning: Configure the driver with ENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF. Automatic cleanup is
      
            deprecated and will be removed in version 2.0. [-W#pragma-messages]
      
      #pragma message( \
      
              ^
      
      1 warning generated.
      
      [ 25%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-gridfs.c.o
      
      [ 25%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-gridfs-bucket.c.o
      
      [ 25%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-gridfs-bucket-file.c.o
      
      [ 25%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-gridfs-file.c.o
      
      [ 26%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-gridfs-file-list.c.o
      
      [ 26%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-gridfs-file-page.c.o
      
      [ 26%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-handshake.c.o
      
      [ 26%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-host-list.c.o
      
      [ 27%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-index.c.o
      
      [ 27%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-list.c.o
      
      [ 27%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-linux-distro-scanner.c.o
      
      [ 27%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-log.c.o
      
      [ 28%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-matcher.c.o
      
      [ 28%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-matcher-op.c.o
      
      [ 28%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-memcmp.c.o
      
      [ 29%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-cmd.c.o
      
      [ 29%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-opts.c.o
      
      [ 29%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-opts-helpers.c.o
      
      [ 29%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-queue.c.o
      
      [ 30%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-read-concern.c.o
      
      [ 30%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-read-prefs.c.o
      
      [ 30%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-rpc.c.o
      
      [ 30%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-server-description.c.o
      
      [ 31%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-server-stream.c.o
      
      [ 31%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-client-session.c.o
      
      [ 31%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-set.c.o
      
      [ 31%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-socket.c.o
      
      [ 32%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-stream-buffered.c.o
      
      [ 32%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-stream.c.o
      
      [ 32%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-stream-file.c.o
      
      [ 33%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-stream-gridfs.c.o
      
      [ 33%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-stream-gridfs-download.c.o
      
      [ 33%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-stream-gridfs-upload.c.o
      
      [ 33%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-stream-socket.c.o
      
      [ 34%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-topology.c.o
      
      [ 34%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-topology-description.c.o
      
      [ 34%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-topology-description-apm.c.o
      
      [ 34%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-topology-scanner.c.o
      
      [ 35%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-uri.c.o
      
      [ 35%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-util.c.o
      
      [ 35%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-version-functions.c.o
      
      [ 35%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-write-command.c.o
      
      [ 36%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-write-command-legacy.c.o
      
      [ 36%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-write-concern.c.o
      
      [ 36%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/__/common/common-b64.c.o
      
      [ 36%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/__/common/common-md5.c.o
      
      [ 37%] Linking C shared library libmongoc-1.0.so
      
      /opt/Android/Ndk/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lresolv
      
      /home/franki/apps/qt/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-counters.c:141: error: undefined reference to 'shm_unlink'
      
      /home/franki/apps/qt/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-counters.c:177: error: undefined reference to 'shm_open'
      
      /home/franki/apps/qt/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-counters.c:204: error: undefined reference to 'shm_unlink'
      
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      
      src/libmongoc/CMakeFiles/mongoc_shared.dir/build.make:1995: polecenia dla obiektu 'src/libmongoc/libmongoc-1.0.so' nie powiodły się
      
      make[2]: *** [src/libmongoc/libmongoc-1.0.so] Błąd 1
      
      CMakeFiles/Makefile2:1417: polecenia dla obiektu 'src/libmongoc/CMakeFiles/mongoc_shared.dir/all' nie powiodły się
      
      make[1]: *** [src/libmongoc/CMakeFiles/mongoc_shared.dir/all] Błąd 2
      
      Makefile:149: polecenia dla obiektu 'all' nie powiodły się
      
      make: *** [all] Błąd 2
      
      franki@franki:~/apps/qt/mongo-c-driver$
      
      

        1. android_compile.txt
          185 kB
          Marek Floriańczyk
        2. compile_output.txt
          46 kB
          Marek Floriańczyk

            Assignee:
            Unassigned Unassigned
            Reporter:
            marek.florianczyk@gmail.com Marek Floriańczyk
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: