Skip to content

Building sentry library with curl(with AsynchDNS feature) cause an error #838

@Kostiantyn-Zakharchuk-GlobalLogic

Description

Description
I can't build sentry library with curl library with AsynchDNS feature

I've build curl library with AsynchDNS feature to use it in new sentry release 0.6.2. But it still cause issue for me.
image

When does the problem happen
Problem happens when I try to build sentry library with curl library

  • [x ] During build
  • During run-time
  • When capturing a hard crash

Environment

  • OS: [e.g. docker image ubuntu:20.04, 64-bit]
  • Compiler: [e.g. own arm toolchain]
  • CMake version and config: [
    -DCMAKE_TOOLCHAIN_FILE=<own_toolchain>
    -DSENTRY_BUILD_TESTS=OFF
    -DSENTRY_BUILD_EXAMPLES=OFF
    -DSENTRY_TRANSPORT="curl"
    -DSENTRY_BACKEND="breakpad"
    -DSENTRY_EXPORT_SYMBOLS=OFF
    -DCMAKE_BUILD_TYPE=MinSizeRel
    -DSENTRY_LIBRARY_TYPE=SHARED
    -DCURL_INCLUDE_DIR=""
    -DCURL_LIBRARY=""
    ]

Steps To Reproduce

Build curl:
cmake
-DCMAKE_INSTALL_PREFIX=
-DCMAKE_TOOLCHAIN_FILE=
-DCURL_USE_OPENSSL=OFF
-DENABLE_ARES=ON
-DCARES_LIBRARY=
-DCARES_INCLUDE_DIR=
Build sentry:
cmake
-DCMAKE_TOOLCHAIN_FILE=
-DSENTRY_BUILD_TESTS=OFF
-DSENTRY_BUILD_EXAMPLES=OFF
-DSENTRY_TRANSPORT="curl"
-DSENTRY_BACKEND="breakpad"
-DSENTRY_EXPORT_SYMBOLS=OFF
-DCMAKE_BUILD_TYPE=MinSizeRel
-DSENTRY_LIBRARY_TYPE=SHARED
-DCURL_INCLUDE_DIR=""
-DCURL_LIBRARY=""

Log output

image

-- The C compiler identification is Clang 12.0.0
-- The CXX compiler identification is Clang 12.0.0
-- The ASM compiler identification is Clang
-- Found assembler: /self/sdk-meta/prebuilt/toolchain/bin/armv7a-cros-linux-gnueabihf-clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /self/sdk-meta/prebuilt/toolchain/bin/armv7a-cros-linux-gnueabihf-clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /self/sdk-meta/prebuilt/toolchain/bin/armv7a-cros-linux-gnueabihf-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- SENTRY_TRANSPORT=curl
-- SENTRY_BACKEND=breakpad
-- SENTRY_LIBRARY_TYPE=SHARED
-- SENTRY_SDK_NAME=
-- 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 long
-- Check size of long - done
CMake Error at /cmake/share/cmake-3.20/Modules/FindCURL.cmake:175 (message):
CURL: Required feature AsynchDNS is not found
Call Stack (most recent call first):
CMakeLists.txt:277 (find_package)

-- Configuring incomplete, errors occurred!
See also "/self/build/sentry-native_build/CMakeFiles/CMakeOutput.log".
See also "/self/build/sentry-native_build/CMakeFiles/CMakeError.log".
make: *** [Makefile:130: build] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions