#2228 RHEL 7.2: Could NOT find Threads
Closed: Fixed Opened by cheimes.

I can't build packages on a fresh RHEL 7.2 machine because pthread.h from glibc-headers is missing:

CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for include file pthread.h - not found
-- Could NOT find Threads (missing:  Threads_FOUND) (found version "10.3.0-0.5.el7")

Suggested fix:
BuildRequires: glibc-headers


PS: It's an up-to-date RHEL 7.2 VM with minimal packages. I installed dependencies with:

sudo yum-builddep specs/pki-core.spec

The rpm-build package with rpmbuild command was also missing.

gcc and gcc-c++ are also missing. gcc provides glibc-headers. How about:

BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: rpm-build

https://fedoraproject.org/wiki/Packaging:Guidelines#BuildRequires_2

You may assume that enough of an environment exists for RPM to function and execute basic shell scripts, but you should not assume any other packages are present as RPM dependencies and anything brought into the buildroot by the build system may change over time.

Per PKI Bug Council of 06/23/2016: 10.3.4

NOTE: DS only includes "BuildRequires: gcc-c++"

# rpm -q --whatprovides /usr/include/pthread.h
glibc-headers
# rpm -q --whatrequires glibc-headers
glibc-devel
# rpm -q --whatrequires glibc-devel
...
gcc
...
# rpm -q --whatrequires gcc
...
gcc-c++
...

Added gcc-c++ as a build requirement.

Checked into master:

  • dabe965786bbb367ea04f131d8f4ad2167b3f1cd

Metadata Update from @cheimes:
- Issue assigned to mharmsen
- Issue set to the milestone: 10.3.4

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2348

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata