Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10772

ROOT linked against system libpng even if custom one provided

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: High
    • Resolution: Clarified
    • Affects Version/s: 6.20/02
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      Vanilla CC7 with devtoolset-7

      Description

      In ALICE, we build our own libpng and indicate this to ROOT when we build. Unfortunately, anyway root gets linked against the one on the system resulting in problems when the package is relocated to other machines which do not have it installed. In particular when the version is not identical (CC7 has libpng 1.5, while we provide lib png 1.6).

      Please find the cmake line below [1]. Libpng is found:

      -- Found PNG: /tmp/o2/sw/slc7_x86-64/libpng/v1.6.34-58/lib/libpng.so (found version "1.6.34")

      After root has build, it is linked against (ldd output){{}}

      libpng15.so.15 => /lib64/libpng15.so.15 (0x00007fc78b944000)

      The full log is attached.{{}}

      [1] cmake /tmp/o2/sw/SOURCES/ROOT/8289f4bd13/0 -DCMAKE_BUILD_TYPE=RELWITHDEBINFO -DCMAKE_INSTALL_PREFIX=/tmp/o2/sw/slc7_x86-64/ROOT/8289f4bd13-1 -Dalien=OFF -DMONALISA_DIR=/tmp/o2/sw/slc7_x86-64/AliEn-Runtime/v2-19-le-64 -DXROOTD_ROOT_DIR=/tmp/o2/sw/slc7_x86-64/XRootD/v4.11.1-37 -Dcxx17=ON -Dfreetype=ON -Dbuiltin_freetype=OFF -Dpcre=OFF -Dbuiltin_pcre=ON -Dsqlite=OFF -Dpyroot=ON -Darrow=ON -DARROW_HOME=/tmp/o2/sw/slc7_x86-64/arrow/v0.17.0-4 -DCMAKE_CXX_COMPILER=c++ -DCMAKE_C_COMPILER=cc -Dfortran=OFF -DCMAKE_LINKER=c++ -DCMAKE_EXE_LINKER_FLAGS=-L/tmp/o2/sw/slc7_x86-64/GCC-Toolchain/v7.3.0-alice2-10/lib64 -DOPENSSL_ROOT=/tmp/o2/sw/slc7_x86-64/AliEn-Runtime/v2-19-le-64 -DOPENSSL_INCLUDE_DIR=/tmp/o2/sw/slc7_x86-64/AliEn-Runtime/v2-19-le-64/include -DLIBXML2_ROOT=/tmp/o2/sw/slc7_x86-64/AliEn-Runtime/v2-19-le-64 -DGSL_DIR=/tmp/o2/sw/slc7_x86-64/GSL/v1.16-55 -DPNG_INCLUDE_DIRS=/tmp/o2/sw/slc7_x86-64/libpng/v1.6.34-58/include -DPNG_LIBRARY=/tmp/o2/sw/slc7_x86-64/libpng/v1.6.34-58/lib/libpng.so -DZLIB_ROOT=/tmp/o2/sw/slc7_x86-64/zlib/v1.2.8-66 -Dpgsql=OFF -Dminuit2=ON -Dpythia6_nolink=ON -Droofit=ON -Dhttp=ON -Droot7=OFF -Dsoversion=ON -Dshadowpw=OFF -Dvdt=ON -Dbuiltin_vdt=ON -Dmonalisa=ON -Dkrb5=OFF -Dgviz=OFF -Dbuiltin_davix=OFF -Dbuiltin_afterimage=ON -Dvmc=ON -Ddavix=OFF -DPYTHON_PREFER_VERSION=3 -DPYTHON_EXECUTABLE=/tmp/o2/sw/slc7_x86-64/Python/v3.6.10-36/bin/python3 -DPYTHON_INCLUDE_DIR=/tmp/o2/sw/slc7_x86-64/Python/v3.6.10-36/include/python3.6m -DPYTHON_LIBRARIES= -DPython_EXECUTABLE=/tmp/o2/sw/slc7_x86-64/Python/v3.6.10-36/bin/python3 -DPython_INCLUDE_DIR=/tmp/o2/sw/slc7_x86-64/Python/v3.6.10-36/include/python3.6m -DPython_INCLUDE_DIRS=/tmp/o2/sw/slc7_x86-64/Python/v3.6.10-36/include/python3.6m -DPYTHON_LIBRARIES= '-DCMAKE_PREFIX_PATH=/tmp/o2/sw/slc7_x86-64/FreeType/v2.10.1-12;;/tmp/o2/sw/slc7_x86-64/GSL/v1.16-55;/tmp/o2/sw/slc7_x86-64/AliEn-Runtime/v2-19-le-64;/tmp/o2/sw/slc7_x86-64/Python/v3.6.10-36;/tmp/o2/sw/slc7_x86-64/Python-modules/1.0-119;/tmp/o2/sw/slc7_x86-64/libpng/v1.6.34-58;/tmp/o2/sw/slc7_x86-64/lzma/v5.2.3-30'

        Attachments

          Activity

            People

            Assignee:
            oshadura Oksana Shadura
            Reporter:
            jgrosseo Jan Fiete Grosse-Oetringhaus
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: