question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[bug] cmake in (profile) build_requires result in openssl conflict error

See original GitHub issue

Environment Details (include every applicable attribute)

  • Operating System+version: OpenSuse Linux Leap 15.2
  • Compiler+version: gcc 10.2.1
  • Conan version: 1.36.0
  • Python version: 3.6.12

Steps to reproduce (Include if Applicable)

I have the following build_requirements in my profile:

[build_requires]
ninja/1.10.2
cmake/3.20.0

In my top level recipe I have the following requirements:

def requirements(self):
        self.requires("zlib/1.2.11")
        self.requires("qt/5.15.2")
        self.requires("openssl/1.1.1k")
        if self.options.doc:
            self.requires("doxygen/1.8.20")

When calling conan install on this recipe Conan prints the following conflict:

ERROR: Conflict in cmake/3.20.0:
    'cmake/3.20.0' requires 'openssl/1.1.1j' while 'qt/5.15.2' requires 'openssl/1.1.1k'.
    To fix this conflict you need to override the package 'openssl' in your root package.

This looks like a bug to me because openssl is already overridden in the root package recipe.

When I downgrade the openssl requirement in my top level recipe to openssl/1.1.1j Conan no longer reports a conflict error.

Logs (Executed commands with output) (Include/Attach if Applicable)

wdobbe@linux-wdobbe:~/build/qtftp> conan install ~/crdata/git/qtftp/ Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.cppstd=17 compiler.libcxx=libstdc++11 compiler.version=10 os=Linux os_build=Linux [options] [build_requires] *: ninja/1.10.2, cmake/3.20.0 [env] CC=/usr/bin/gcc-10 CXX=/usr/bin/g+±10 ERROR: Conflict in cmake/3.20.0: ‘cmake/3.20.0’ requires ‘openssl/1.1.1j’ while ‘qt/5.15.2’ requires ‘openssl/1.1.1k’. To fix this conflict you need to override the package ‘openssl’ in your root package.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jellespijkercommented, Sep 9, 2021

Hi @czoido Sorry for the late response, the notification got buried under a lot of other notification. I tried your suggestion and that fixes it indeed. Thank you for your help.

1reaction
franramirez688commented, Aug 4, 2021

Thanks a lot for your comment @jellespijker Those projects look quite interesting and you have done a great job with the conanfile-recipes 👏 Given your explanation, I definitely think it’s a problem related to the graph resolution for your current configuration (it looks like a beautiful corner-case) and it’s something that @memsharded will have to look into.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[CMake] Problem building CMake with system OPENSSL
Hello, I tried out the 3.6.0-rc1 and my problem building CMake still exists. I created a Dockerfile to reproduce my problem: ...
Read more >
Changelog — conan 1.56.0 documentation
Bugfix: conan info --build-order was showing duplicated nodes for build-requires and private dependencies. Fix: Fixed failure with the alias packages when the ...
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/21 18 ...
Bug:128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >
What Do I Do When the Error Message Indicating SO File ...
When you run the yum install -y openssl-devel command to install openssl-devel, an error message indicating that SO file conflict occurs is displayed, ......
Read more >
other.xml.gz - Linux @ CERN
Move cmake files to libdir to avoid multilib conflicts. ... to work around an installator bug - Resolves: #540437 - fix rpmlint errors...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found