Hey Guys, I am using the same versions of gcc-c++ and glibc (gcc-c++ 4.8.5 & glibc 2.17) on RHEL7 and CENTOS7, but I get a compile time error ONLY on CENTOS7: /usr/bin/ld: CMakeFiles/GTest.Test.dir/gtest/gtest-all.cc.o: *undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'* //usr/lib64/libpthread.so.0: *error adding symbols: DSO missing from command line* I am looking for hints what could be wrong... The versions appear to be absolutely the same, so I it makes no sense to me.... Some info about the versions: CENTOS: [vmtest@sofumcentos07 ~]$ sudo yum info glibc Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.wwfx.net * extras: mirror.wwfx.net * updates: mirror.wwfx.net Installed Packages Name : glibc Arch : x86_64 Version : 2.17 Release : 292.el7 Size : 13 M Repo : installed >From repo : base Summary : The GNU libc libraries URL : http://www.gnu.org/software/glibc/ License : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ Description : The glibc package contains standard libraries which are used by : multiple programs on the system. In order to save disk space and : memory, as well as to make upgrading easier, common system code is : kept in one place and shared between programs. This particular package : contains the most important sets of shared libraries: the standard C : library and the standard math library. Without these two libraries, a : Linux system will not function. [vmtest@sofumcentos07 ~]$ cat /etc/*release* CentOS Linux release 7.7.1908 (Core) Derived from Red Hat Enterprise Linux 7.7 (Source) NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7" CentOS Linux release 7.7.1908 (Core) CentOS Linux release 7.7.1908 (Core) cpe:/o:centos:centos:7 [vmtest@sofumcentos07 ~]$ sudo yum info gcc-c++ Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.wwfx.net * extras: mirror.wwfx.net * updates: mirror.wwfx.net Installed Packages Name : gcc-c++ Arch : x86_64 Version : 4.8.5 Release : 39.el7 Size : 16 M Repo : installed >From repo : base Summary : C++ support for GCC URL : http://gcc.gnu.org License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Description : This package adds C++ support to the GNU Compiler Collection. : It includes support for most of the current C++ specification, : including templates and exception handling. RHEL: [vmtest@sofumcentos07 ~]$ sudo yum info glibc Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.wwfx.net * extras: mirror.wwfx.net * updates: mirror.wwfx.net Installed Packages Name : glibc Arch : x86_64 Version : 2.17 Release : 292.el7 Size : 13 M Repo : installed >From repo : base Summary : The GNU libc libraries URL : http://www.gnu.org/software/glibc/ License : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+ Description : The glibc package contains standard libraries which are used by : multiple programs on the system. In order to save disk space and : memory, as well as to make upgrading easier, common system code is : kept in one place and shared between programs. This particular package : contains the most important sets of shared libraries: the standard C : library and the standard math library. Without these two libraries, a : Linux system will not function. [vmtest@sofumrhel07 ~]$ cat /etc/*release* NAME="Red Hat Enterprise Linux Server" VERSION="7.0 (Maipo)" ID="rhel" ID_LIKE="fedora" VERSION_ID="7.0" PRETTY_NAME="Red Hat Enterprise Linux" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.0:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.0 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION=7.0 Red Hat Enterprise Linux Server release 7.0 (Maipo) Red Hat Enterprise Linux Server release 7.0 (Maipo) cpe:/o:redhat:enterprise_linux:7.0:ga:server [vmtest@sofumrhel07 ~]$ sudo yum info gcc-c++ [sudo] password for vmtest: Loaded plugins: langpacks, product-id, subscription-manager Installed Packages Name : gcc-c++ Arch : x86_64 Version : 4.8.5 Release : 39.el7 Size : 16 M Repo : installed >From repo : rhel-7-server-rpms Summary : C++ support for GCC URL : http://gcc.gnu.org License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD Description : This package adds C++ support to the GNU Compiler Collection. : It includes support for most of the current C++ specification, : including templates and exception handling.