conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
971 stars 1.79k forks source link

rabbitmq-c/0.14.0: does not compile with ssl=True option #23561

Open grmcdorman opened 7 months ago

grmcdorman commented 7 months ago

Description

With the conanfile.py specified below, conan install -s compiler.version=16 --build=missing conanfile.py fails:

-- Looking for ENGINE_new
CMake Error at [redacted]/TryCompile-2yhj5m/cmTC_6c091Targets.cmake:21 (set_target_properties):
  The link interface of target "OpenSSL:SSL" contains:

    CONAN_LIB::openssl_OpenSSL_SSL_libssl_RELEASE

  but the target was not found
...

Did not try Visual 2022 (version 17), as that requires a build of OpenSSL that I'm not wanting to take the time right now.

Package and Environment Details

Conan profile

[settings] os=Windows os_build=WIndows arch=x86_64 arch_build=x86_64 compiler=Visual Studio compiler.version=17 build_type=Release

Steps to reproduce

conan install -s compiler.version=16 --build=missing conanfile.py

Logs

Conan 1 is on a deprecation path, please consider migrating to Conan 2
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
[build_requires]
[env]

rabbitmq-c/0.14.0: WARN: Package binary is corrupted, removing: bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044
Version ranges solved
    Version range '>=1.1 <4' required by 'rabbitmq-c/0.14.0' resolved to 'openssl/3.2.1' in local cache
    Version range '>=1.2.11 <2' required by 'openssl/3.2.1' resolved to 'zlib/1.3.1' in local cache
    Version range '>=3.22 <4' required by 'rabbitmq-c/0.14.0' resolved to 'cmake/3.25.2' in local cache

[conanfile.py](http://conanfile.py/): Installing package
Requirements
    openssl/3.2.1 from 'conancenter' - Cache
    rabbitmq-c/0.14.0 from 'conancenter' - Cache
    zlib/1.3.1 from 'artifactory' - Cache
Packages
    openssl/3.2.1:1cf626f618fdd256dd79c53f4d6cebfc2eaa1df7 - Cache
    rabbitmq-c/0.14.0:bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044 - Build
    zlib/1.3.1:3fb49604f9c2f729b85ba3115852006824e72cab - Cache
Build requirements
    cmake/3.25.2 from 'artifactory' - Cache
Build requirements packages
    cmake/3.25.2:0a420ff5c47119e668867cdb51baff0eca1fdb68 - Cache

Installing (downloading, building) binaries...
cmake/3.25.2: Already installed!
cmake/3.25.2: Appending PATH environment variable: [redacted].conan\data\cmake\3.25.2\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin
zlib/1.3.1: Already installed!
openssl/3.2.1: Already installed!
rabbitmq-c/0.14.0: Applying build-requirement: cmake/3.25.2
rabbitmq-c/0.14.0: WARN: Build folder is dirty, removing it: [redacted].conan\data\rabbitmq-c\0.14.0\_\_\build\bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044
rabbitmq-c/0.14.0: Copying sources to build folder
rabbitmq-c/0.14.0: Building your package in [redacted].conan\data\rabbitmq-c\0.14.0\_\_\build\bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044
rabbitmq-c/0.14.0: Generator txt created conanbuildinfo.txt
rabbitmq-c/0.14.0: Calling generate()
rabbitmq-c/0.14.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
rabbitmq-c/0.14.0: Preset 'default' added to CMakePresets.json. Invoke it manually using 'cmake --preset default'
rabbitmq-c/0.14.0: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE=[redacted].conan\data\rabbitmq-c\0.14.0\_\_\build\bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044\build\generators\conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW'
rabbitmq-c/0.14.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
rabbitmq-c/0.14.0: Aggregating env generators
rabbitmq-c/0.14.0: Calling build()
rabbitmq-c/0.14.0: CMake command: cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="[redacted].conan/data/rabbitmq-c/0.14.0/_/_/build/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="[redacted].conan/data/rabbitmq-c/0.14.0/_/_/package/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "[redacted].conan\data\rabbitmq-c\0.14.0\_\_\build\bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044\src"
-- Using Conan toolchain: [redacted].conan/data/rabbitmq-c/0.14.0/_/_/build/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.29.30154.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for poll
-- Looking for poll - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for posix_spawnp in rt
-- Looking for posix_spawnp in rt - not found
-- Conan: Component target declared 'OpenSSL::Crypto'
-- Conan: Component target declared 'OpenSSL::SSL'
-- Conan: Target declared 'openssl::openssl'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Including build module from '[redacted].conan/data/openssl/3.2.1/_/_/package/1cf626f618fdd256dd79c53f4d6cebfc2eaa1df7/lib/cmake/conan-official-openssl-variables.cmake'
-- 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 - not found
-- Found Threads: TRUE  
-- Looking for ENGINE_new
CMake Error at [redacted].conan/data/rabbitmq-c/0.14.0/_/_/build/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044/build/CMakeFiles/CMakeScratch/TryCompile-40ov0q/cmTC_8846fTargets.cmake:21 (set_target_properties):
  The link interface of target "OpenSSL::SSL" contains:

    CONAN_LIB::openssl_OpenSSL_SSL_libssl_RELEASE

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  [redacted].conan/data/rabbitmq-c/0.14.0/_/_/build/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044/build/CMakeFiles/CMakeScratch/TryCompile-40ov0q/CMakeLists.txt:16 (include)

CMake Error at [redacted].conan/data/cmake/3.25.2/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/share/cmake-3.25/Modules/CheckSymbolExists.cmake:145 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  [redacted].conan/data/cmake/3.25.2/_/_/package/0a420ff5c47119e668867cdb51baff0eca1fdb68/share/cmake-3.25/Modules/CheckSymbolExists.cmake:71 (__CHECK_SYMBOL_EXISTS_IMPL)
  CMakeLists.txt:133 (check_symbol_exists)

-- Configuring incomplete, errors occurred!
See also "[redacted].conan/data/rabbitmq-c/0.14.0/_/_/build/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044/build/CMakeFiles/CMakeOutput.log".
See also "[redacted].conan/data/rabbitmq-c/0.14.0/_/_/build/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044/build/CMakeFiles/CMakeError.log".
rabbitmq-c/0.14.0: ERROR: Package 'bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044' build failed
rabbitmq-c/0.14.0: 
rabbitmq-c/0.14.0: WARN: Build folder [redacted].conan\data\rabbitmq-c\0.14.0\_\_\build\bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044\build
ERROR: rabbitmq-c/0.14.0: Error in build() method, line 82
    cmake.configure()
    ConanException: Error 1 while executing cmake -G "Visual Studio 16 2019" -DCMAKE_TOOLCHAIN_FILE="[redacted].conan/data/rabbitmq-c/0.14.0/_/_/build/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="[redacted].conan/data/rabbitmq-c/0.14.0/_/_/package/bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "[redacted].conan\data\rabbitmq-c\0.14.0\_\_\build\bddf9cb8c61d7d47b8e800389f5b0f5b8a4f0044\src"
INVENTW commented 3 months ago

@grmcdorman have you made any progress on this since you reported it? I've run into the same problem and I don't know what the solution might be?

grmcdorman commented 3 months ago

@grmcdorman have you made any progress on this since you reported it? I've run into the same problem and I don't know what the solution might be?

We haven't attempted to fix this, we're simply using the old version. There do not appear to be any security issues with the old version, so there's no compelling reason to upgrade.