Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] poco/1.12.2: JWT tries to link Poco::Crypto but it can't be found #13577

Closed
Elnee opened this issue Oct 18, 2022 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@Elnee
Copy link
Contributor

Elnee commented Oct 18, 2022

Description

When building poco I have error while build JWT Poco library because it can't link to Poco::Crypto. I succesfully reproduced it in gitlab pipelines also.

Package and Environment Details

  • Package Name/Version: poco/1.12.2
  • Operating System+version: Fedora Linux 36
  • Compiler+version: GCC 12.2.1
  • Conan version: conan 1.53.0
  • Python version: Python 3.10.7

Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=12
compiler.libcxx=libstdc++
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

Just try to build and install Poco from sources.

Logs

Click to expand log
-- Conan: checking conan executable
-- Conan: Found program /home/elnee/.local/bin/conan
-- Conan: Version found Conan version 1.53.0
-- Conan executing: /home/elnee/.local/bin/conan install . --remote conancenter --build missing --settings build_type=Debug --settings compiler=gcc --settings compiler.version=12 --settings compiler.libcxx=libstdc++11
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

WARN: websocketpp/0.8.2: requirement openssl/1.1.1o overridden by your conanfile to openssl/1.1.1i 
WARN: websocketpp/0.8.2: requirement boost/1.79.0 overridden by your conanfile to boost/1.80.0 
WARN: amqp-cpp/4.3.16: requirement openssl/1.1.1q overridden by your conanfile to openssl/1.1.1i 
WARN: poco/1.12.2: requirement openssl/1.1.1q overridden by your conanfile to openssl/1.1.1i 
WARN: libmysqlclient/8.0.29: requirement openssl/1.1.1q overridden by poco/1.12.2 to openssl/1.1.1i 
conanfile.txt: Installing package
Requirements
    amqp-cpp/4.3.16 from 'conancenter' - Cache
    boost/1.80.0 from 'conancenter' - Cache
    bzip2/1.0.8 from 'conancenter' - Cache
    expat/2.4.8 from 'conancenter' - Cache
    fmt/9.1.0 from 'conancenter' - Cache
    fmtlog/2.2.1 from 'conancenter' - Cache
    gtest/cci.20210126 from 'conancenter' - Cache
    libbacktrace/cci.20210118 from 'conancenter' - Cache
    libmysqlclient/8.0.29 from 'conancenter' - Cache
    libpq/14.2 from 'conancenter' - Cache
    lz4/1.9.3 from 'conancenter' - Cache
    nlohmann_json/3.11.2 from 'conancenter' - Cache
    openssl/1.1.1i from 'conancenter' - Cache
    pcre2/10.40 from 'conancenter' - Cache
    poco/1.12.2 from 'conancenter' - Cache
    rapidjson/cci.20220822 from 'conancenter' - Cache
    sqlite3/3.39.3 from 'conancenter' - Cache
    websocketpp/0.8.2 from 'conancenter' - Cache
    zlib/1.2.12 from 'conancenter' - Cache
    zstd/1.5.2 from 'conancenter' - Cache
Packages
    amqp-cpp/4.3.16:048b18a3d3878c8f944d2ab0430b9c3ec0932bef - Cache
    boost/1.80.0:1671931156455a119d7c3f14d951ac5fdbc5cd10 - Cache
    bzip2/1.0.8:ad18e1e856ff78d73ad6f3c9a214f85abf2d0550 - Cache
    expat/2.4.8:2eb4223757563f932114c3351417cbe8392e690e - Cache
    fmt/9.1.0:0d8b943d676dc202f180a2598d04457e173d7b97 - Cache
    fmtlog/2.2.1:95560cbf945736175ccbb1ac6bf3a1953138f42b - Cache
    gtest/cci.20210126:e9736fd483ecabd23c9a588c3c3d5359d113bfd5 - Cache
    libbacktrace/cci.20210118:d13c97721d7bdc192ca6529684f2b79beeae8a7c - Cache
    libmysqlclient/8.0.29:1b23c8581a61809149bbfa80e7b4eb7d27ed0f5c - Cache
    libpq/14.2:d13c97721d7bdc192ca6529684f2b79beeae8a7c - Cache
    lz4/1.9.3:d13c97721d7bdc192ca6529684f2b79beeae8a7c - Cache
    nlohmann_json/3.11.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    openssl/1.1.1i:d13c97721d7bdc192ca6529684f2b79beeae8a7c - Cache
    pcre2/10.40:7e82c9c8d32cbe0951c733288be673b1886fa50a - Cache
    poco/1.12.2:9e1b0c3797981762694ed8c6f00b41c69c1e2e34 - Build
    rapidjson/cci.20220822:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    sqlite3/3.39.3:423c3ee42011b37f8a7a6a2c28aa0edfab60ff4d - Cache
    websocketpp/0.8.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    zlib/1.2.12:d13c97721d7bdc192ca6529684f2b79beeae8a7c - Cache
    zstd/1.5.2:a323f39846aa3d854d842186765e8538851a7f92 - Cache

Installing (downloading, building) binaries...
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: /home/elnee/.conan/data/bzip2/1.0.8/_/_/package/ad18e1e856ff78d73ad6f3c9a214f85abf2d0550/bin
expat/2.4.8: Already installed!
fmt/9.1.0: Already installed!
gtest/cci.20210126: Already installed!
libbacktrace/cci.20210118: Already installed!
libpq/14.2: Already installed!
lz4/1.9.3: Already installed!
nlohmann_json/3.11.2: Already installed!
openssl/1.1.1i: Already installed!
rapidjson/cci.20220822: Already installed!
sqlite3/3.39.3: Already installed!
sqlite3/3.39.3: Appending PATH env var with : /home/elnee/.conan/data/sqlite3/3.39.3/_/_/package/423c3ee42011b37f8a7a6a2c28aa0edfab60ff4d/bin
zlib/1.2.12: Already installed!
zstd/1.5.2: Already installed!
amqp-cpp/4.3.16: Already installed!
boost/1.80.0: Already installed!
fmtlog/2.2.1: Already installed!
libmysqlclient/8.0.29: Already installed!
pcre2/10.40: Already installed!
pcre2/10.40: Appending PATH environment variable: /home/elnee/.conan/data/pcre2/10.40/_/_/package/7e82c9c8d32cbe0951c733288be673b1886fa50a/bin
poco/1.12.2: WARN: Build folder is dirty, removing it: /home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34
poco/1.12.2: Copying sources to build folder
poco/1.12.2: Building your package in /home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34
poco/1.12.2: Generator txt created conanbuildinfo.txt
poco/1.12.2: Calling generate()
poco/1.12.2: 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
poco/1.12.2: Preset 'debug' added to CMakePresets.json. Invoke it manually using 'cmake --preset debug'
poco/1.12.2: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/build/generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0077=NEW -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Debug'
poco/1.12.2: 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
^[[1;6Cpoco/1.12.2: Aggregating env generators
poco/1.12.2: Calling build()
poco/1.12.2: CMake command: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/elnee/.conan/data/poco/1.12.2/_/_/package/9e1b0c3797981762694ed8c6f00b41c69c1e2e34" -DCMAKE_POLICY_DEFAULT_CMP0077="NEW" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "/home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/src"
-- Using Conan toolchain: /home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/build/generators/conan_toolchain.cmake
-- Conan toolchain: Setting CMAKE_POSITION_INDEPENDENT_CODE=ON (options.fPIC)
-- Conan toolchain: Setting BUILD_SHARED_LIBS = OFF
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking for C++14 compiler
-- Checking for C++14 compiler - available
-- Conan: Component target declared 'OpenSSL::Crypto'
-- Conan: Component target declared 'OpenSSL::SSL'
-- Conan: Target declared 'openssl::openssl'
-- Conan: Including build module from '/home/elnee/.conan/data/openssl/1.1.1i/_/_/package/d13c97721d7bdc192ca6529684f2b79beeae8a7c/lib/cmake/conan-official-openssl-variables.cmake'
-- Could NOT find APR (missing: APR_INCLUDE_DIR APR_LIBRARY) 
-- Could NOT find APRUTIL (missing: APRUTIL_INCLUDE_DIR APRUTIL_LIBRARY) 
-- Could NOT find Apache2 (missing: APACHE2_INCLUDE_DIR) 
-- Conan: Target declared 'libmysqlclient::libmysqlclient'
-- Conan: Target declared 'ZLIB::ZLIB'
-- Conan: Component target declared 'zstd::libzstd_static'
-- Conan: Target declared 'LZ4::lz4_static'
CMake Warning (dev) at CMakeLists.txt:140 (find_package):
  Policy CMP0074 is not set: find_package uses <PackageName>_ROOT variables.
  Run "cmake --help-policy CMP0074" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  Environment variable PostgreSQL_ROOT is set to:

    /home/elnee/.conan/data/libpq/14.2/_/_/package/d13c97721d7bdc192ca6529684f2b79beeae8a7c

  For compatibility, CMake is ignoring the variable.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Conan: Component target declared 'libpq::pgcommon'
-- Conan: Component target declared 'libpq::pgport'
-- Conan: Component target declared 'libpq::pq'
-- Conan: Target declared 'PostgreSQL::PostgreSQL'
-- Could NOT find ODBC (missing: ODBC_LIBRARY ODBC_INCLUDE_DIR) 
-- Building without tests & samples
-- Using external sqlite, zlib, pcre2, expat, ...
-- Conan: Component target declared 'PCRE2::8BIT'
-- Conan: Component target declared 'PCRE2::POSIX'
-- Conan: Component target declared 'PCRE2::16BIT'
-- Conan: Component target declared 'PCRE2::32BIT'
-- Conan: Target declared 'pcre2::pcre2'
-- Conan: Target declared 'BZip2::BZip2'
-- Conan: Including build module from '/home/elnee/.conan/data/bzip2/1.0.8/_/_/package/ad18e1e856ff78d73ad6f3c9a214f85abf2d0550/lib/cmake/conan-official-bzip2-variables.cmake'
-- Conan: Target declared 'EXPAT::EXPAT'
-- Found EXPAT: 2.4.8 (found version "2.4.8") 
-- SQLite Support Enabled
-- Conan: Component target declared 'SQLite::SQLite3'
-- MySQL Support Enabled
-- PostgreSQL Support Enabled
-- ODBC Support Disabled
-- CMake 3.22.2 successfully configured Poco using Unix Makefiles generator
-- Poco package version: 1.12.2
-- Building static libraries
-- [cmake] Installation target path: /home/elnee/.conan/data/poco/1.12.2/_/_/package/9e1b0c3797981762694ed8c6f00b41c69c1e2e34
-- [cmake] Use toolchain file:		/home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/build/generators/conan_toolchain.cmake
-- [cmake] Build for OS type:      Linux
-- [cmake] Build for OS version:   5.19.15-201.fc36.x86_64
-- [cmake] Build for CPU type:     x86_64
-- [cmake] Build type:             Debug
-- [cmake] Build with cxx flags:   -g -m64
-- [cmake] Build with c flags:     -g -m64
-- Building: Encodings
-- Building: XML
-- Building: JSON
-- Building: Util
-- Building: Net
-- Building: MongoDB
-- Building: Redis
-- Building: JWT
-- Building: Data
-- Building: ActiveRecord
-- Building: Zip
-- Configuring done
CMake Error at JWT/CMakeLists.txt:15 (add_library):
  Target "JWT" links to target "Poco::Crypto" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
poco/1.12.2: 
poco/1.12.2: ERROR: Package '9e1b0c3797981762694ed8c6f00b41c69c1e2e34' build failed
poco/1.12.2: WARN: Build folder /home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/build/Debug
ERROR: poco/1.12.2: Error in build() method, line 271
	cmake.configure()
	ConanException: Error 1 while executing cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="/home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/build/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/home/elnee/.conan/data/poco/1.12.2/_/_/package/9e1b0c3797981762694ed8c6f00b41c69c1e2e34" -DCMAKE_POLICY_DEFAULT_CMP0077="NEW" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Debug" "/home/elnee/.conan/data/poco/1.12.2/_/_/build/9e1b0c3797981762694ed8c6f00b41c69c1e2e34/src"
CMake Error at /home/elnee/work/build_common/conan.cmake:651 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/Conan.cmake:16 (conan_cmake_install)
  CMakeLists.txt:17 (include)


-- Configuring incomplete, errors occurred!
See also "/home/elnee/work/build_common/CMakeFiles/CMakeOutput.log".

@Elnee Elnee added the bug Something isn't working label Oct 18, 2022
@SpaceIm
Copy link
Contributor

SpaceIm commented Oct 18, 2022

That's because openssl/1.1.1i recipe is not maintained anymore (since #11663) and therefore did not get this fix: #12838

@Elnee
Copy link
Contributor Author

Elnee commented Oct 18, 2022

That's because openssl/1.1.1i recipe is not maintained anymore

Oh, thanks. What version should I use instead? Isn't it latest?

@uilianries
Copy link
Member

@Elnee You can try openssl/1.1.1q: https://conan.io/center/openssl

@Elnee
Copy link
Contributor Author

Elnee commented Oct 18, 2022

@uilianries thanks, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants