conan-io / conan-center-index

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

[package] openssl/3.1.3: installation of libcurl is failing because of openssl #20419

Open FleetAdmiralJakob opened 1 year ago

FleetAdmiralJakob commented 1 year ago

Description

I just wanted to install libcurl and run into this

Package and Environment Details

Conan profile

[settings] arch=x86_64 build_type=Release compiler=gcc compiler.cppstd=gnu17 compiler.libcxx=libstdc++11 compiler.version=13 os=Windows

Steps to reproduce

  1. Create new CMake project with Clion

  2. Using the CLion Conan plugin to generate the conan files

  3. Adding libcurl with the Conan Plugin

  4. Updating the CMakeLists.txt to this:

    
    cmake_minimum_required(VERSION 3.26)
    project(ai_cli_meal C)

set(CMAKE_C_STANDARD 17) set(CMAKE_CXX_STANDARD 17)

enable_language(CXX)

find_package(CURL REQUIRED)

add_executable(ai_cli_meal main.c)

target_link_libraries(ai_cli_meal CURL::libcurl)

5. Building the CMake Program

### Logs

<details><summary>Click to expand a part of the logs</summary>

rm -f apps/openssl.exe ${LDCMD:-/c/users/jakob/appdata/local/programs/clion/bin/mingw/bin/gcc.exe} -m64 -m64 -g -m64 -g -L. -LC:/Users/jakob/.conan2/p/b/zlibaae60370c1b7d/p/lib/z.lib -m64 -m64 \ -o apps/openssl.exe \ apps/lib/openssl-bin-cmp_mock_srv.obj \ apps/openssl-bin-asn1parse.obj apps/openssl-bin-ca.obj \ apps/openssl-bin-ciphers.obj apps/openssl-bin-cmp.obj \ apps/openssl-bin-cms.obj apps/openssl-bin-crl.obj \ apps/openssl-bin-crl2pkcs7.obj apps/openssl-bin-dgst.obj \ apps/openssl-bin-dhparam.obj apps/openssl-bin-dsa.obj \ apps/openssl-bin-dsaparam.obj apps/openssl-bin-ec.obj \ apps/openssl-bin-ecparam.obj apps/openssl-bin-enc.obj \ apps/openssl-bin-engine.obj apps/openssl-bin-errstr.obj \ apps/openssl-bin-fipsinstall.obj apps/openssl-bin-gendsa.obj \ apps/openssl-bin-genpkey.obj apps/openssl-bin-genrsa.obj \ apps/openssl-bin-info.obj apps/openssl-bin-kdf.obj \ apps/openssl-bin-list.obj apps/openssl-bin-mac.obj \ apps/openssl-bin-nseq.obj apps/openssl-bin-ocsp.obj \ apps/openssl-bin-openssl.obj \ apps/openssl-bin-openssl.res.obj apps/openssl-bin-passwd.obj \ apps/openssl-bin-pkcs12.obj apps/openssl-bin-pkcs7.obj \ apps/openssl-bin-pkcs8.obj apps/openssl-bin-pkey.obj \ apps/openssl-bin-pkeyparam.obj apps/openssl-bin-pkeyutl.obj \ apps/openssl-bin-prime.obj apps/openssl-bin-progs.obj \ apps/openssl-bin-rand.obj apps/openssl-bin-rehash.obj \ apps/openssl-bin-req.obj apps/openssl-bin-rsa.obj \ apps/openssl-bin-rsautl.obj apps/openssl-bin-s_client.obj \ apps/openssl-bin-s_server.obj apps/openssl-bin-s_time.obj \ apps/openssl-bin-sess_id.obj apps/openssl-bin-smime.obj \ apps/openssl-bin-speed.obj apps/openssl-bin-spkac.obj \ apps/openssl-bin-srp.obj apps/openssl-bin-storeutl.obj \ apps/openssl-bin-ts.obj apps/openssl-bin-verify.obj \ apps/openssl-bin-version.obj apps/openssl-bin-x509.obj \ apps/libapps.a -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32 make[1]: Leaving directory '/c/Users/jakob/.conan2/p/b/opensc5ad9e4d91590/b/src'

openssl/3.1.3: RUN: perl C:\Users\jakob.conan2\p\b\opensc5ad9e4d91590\b\src/configdata.pm --dump Can't open perl script "C:Usersjakob.conan2pbopensc5ad9e4d91590bsrc/configdata.pm": No such file or directory

openssl/3.1.3: ERROR: Package '2b708c6e2e6a9f9c0b5079d720ff403abc8ccea0' build failed openssl/3.1.3: WARN: Build folder C:\Users\jakob.conan2\p\b\opensc5ad9e4d91590\b\build-debug


Recipe 'openssl/3.1.3' cannot build its binary It is possible that this recipe is not Conan 2.0 ready If the recipe comes from ConanCenter, report it at https://github.com/conan-io/conan-center-index/issues If it is your recipe, check if it is updated to 2.0


ERROR: openssl/3.1.3: Error in build() method, line 520 self.run(f"{self._perl} {self.source_folder}/configdata.pm --dump") ConanException: Error 2 while executing CMake Error at conan_provider.cmake:386 (message): Conan install failed='1' Call Stack (most recent call first): conan_provider.cmake:477 (conan_install) CMakeLists.txt:9 (find_package)

-- Configuring incomplete, errors occurred!

[Failed to reload]



</details>
AbrilRBS commented 1 year ago

Hi @FleetAdmiralJakob thanks a lot for your report

This will be fixed once https://github.com/conan-io/conan-center-index/pull/20448 is merged :)