# "root-config --glibs" output does not match files in libs/ directory

**URL:** <https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921>\
**Category:** ROOT\
**Tags:** rdataframe\
**Created:** [June 15, 2020, 3:56pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921 "2020-06-15T15:56:54Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![pibion](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pibion/32/11745_2.png) [@pibion](https://root-forum.cern.ch/u/pibion)\
**Post date:** [June 15, 2020, 3:56pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/1 "2020-06-15T15:56:55Z")

</div>

* * *

_ROOT Version:_ 6.20.02  
_Platform:_ Scientific Linux 6  
_Compiler:_ gcc 7.3.1

* * *

I’m trying to compile a package (rootana) against ROOT and am getting the following error:

```auto
g++ -o libAnalyzer/analyzer_example.exe -g -O2 -Wall -Wuninitialized -I./include -DHAVE_LIBZ -DHAVE_ROOT -pthread -std=c
++11 -m64 -I/cdms/app/home/nexusdaq/packages/root-6.20.02/include -DHAVE_ROOT_XML -DHAVE_ROOT_HTTP -DHAVE_THTTP_SERVER -
DHAVE_LIBNETDIRECTORY -DHAVE_XMLSERVER libAnalyzer/analyzer_example.o lib/librootana.a -L/cdms/app/home/nexusdaq/packag
es/root-6.20.02/lib -L/cdms/app/home/nexusdaq/packages/root-6.20.02/lib -lGui -lCore -lImt -lRIO -lNet -lHist -lGraf -lG
raf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lR
OOTDataFrame -pthread -lm -ldl -rdynamic -lThread -lXMLParser -lXMLIO -lRHTTP -lm -lz -lpthread -Wl,-rpath,/cdms/app/hom
e/nexusdaq/packages/root-6.20.02/lib
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lGui
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lPostscript
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lROOTDataFrame
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lXMLIO
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lRHTTP

```

The reason I’m posting this on the ROOT forum is that I’m seeing a mismatch between what ROOT reports as the libraries it knows about and the files in the `libs/` directory:

```auto
$ root-config --glibs
-L/cdms/app/home/nexusdaq/packages/root-6.20.02/lib -lGui -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -pthread -lm -ldl -rdynamic

```

Whereas if I look in the `libs/` directory of my ROOT installation there is definitely no e.g. `libGui.so`.

Does anyone know why `root-config --glibs` doesn’t match up with the library files I see on disk? Or have ideas on how to avoid these errors?

I’ve seen a suggestion to `yum install root-tree-dataframe -y` but I can’t find any documentation on the ROOT site about this package.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 15, 2020, 4:22pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/2 "2020-06-15T16:22:44Z")

</div>

Try: `root-config --features`

---

<div class="post-metadata">

**Author:** ![pibion](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pibion/32/11745_2.png) [@pibion](https://root-forum.cern.ch/u/pibion)\
**Post date:** [June 15, 2020, 4:45pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/3 "2020-06-15T16:45:48Z")

</div>

Interesting, this still doesn’t quite line up with the files in my `libs/` directory. Notably, there’s no libROOTDataFrame.so file

```auto
$ root-config --features
cxx11 asimage builtin_afterimage builtin_clang builtin_davix builtin_fftw3 builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_lz4 builtin_lzma builtin_pcre builtin_tbb builtin_vdt builtin_xxhash builtin_zstd clad dataframe davix exceptions fftw3 gdml http imt mlp mysql opengl pgsql pyroot roofit runtime_cxxmodules shared sqlite ssl tmva tmva-cpu tmva-pymva spectrum vdt x11 xml

```

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 15, 2020, 4:57pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/4 "2020-06-15T16:57:13Z")

</div>

Can it be that the building of ROOT died in the middle and so not all libraries were built?

@Axel Is the “devtoolset-7” supported on a “SL6” yet?

---

<div class="post-metadata">

**Author:** ![pibion](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pibion/32/11745_2.png) [@pibion](https://root-forum.cern.ch/u/pibion)\
**Post date:** [June 15, 2020, 5:06pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/5 "2020-06-15T17:06:58Z")

</div>

@Wile_E_Coyote oh yikes you’re exactly right. My build log indicates issues with building ROOTDataFrame against sqlite3:

```auto
/cdms/app/home/nexusdaq/packages/root/tree/dataframe/src/RSqliteDS.cxx: In function ‘int {anonymous}::VfsRdOnlyOpen(sqlite3_vfs*, const char*, sqlite3_file*, int, int*)’:
/cdms/app/home/nexusdaq/packages/root/tree/dataframe/src/RSqliteDS.cxx:195:4: error: too many initializers for ‘const sqlite3_io_methods’
    };

```

---

<div class="post-metadata">

**Author:** ![pibion](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pibion/32/11745_2.png) [@pibion](https://root-forum.cern.ch/u/pibion)\
**Post date:** [June 15, 2020, 5:10pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/6 "2020-06-15T17:10:50Z")

</div>

It looks like a solution to this might be in the last post at [Problems compiling root with gcc 9.1](https://root-forum.cern.ch/t/problems-compiling-root-with-gcc-9-1/34423/15).

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 16, 2020, 8:50pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/7 "2020-06-16T20:50:38Z")

</div>

Hi,  
if you don’t need support for sqlite files in ROOT, you can build with `-Dsqlite=OFF`, that should avoid compilation errors in `RSqliteDS.cxx`. Now about why you get those errors, I think it’s because the sqlite version you have installed is too old for ROOT. @jblomer can confirm (if that’s the case, should/can/do we diagnose too old sqlite versions in our cmake configuration?).

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [June 16, 2020, 9:51pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/8 "2020-06-16T21:51:00Z")

</div>

Thanks for the problem report! Yes, it is a problem with older versions of sqlite. I think the code could be easily changed to work with older sqlite versions, too. [Ticket created](https://sft.its.cern.ch/jira/browse/ROOT-10858).

---

<div class="post-metadata">

**Author:** ![pibion](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pibion/32/11745_2.png) [@pibion](https://root-forum.cern.ch/u/pibion)\
**Post date:** [June 16, 2020, 9:59pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/9 "2020-06-16T21:59:49Z")

</div>

I do not need sqlite and when I turn it off I no longer get this particular error. Right now I’m using the following arguments:

```auto
cmake -D builtin_fftw3:BOOL=ON -Dbuiltin_afterimage=ON -Dsqlite=OFF -Dbuiltin_xrootd=ON -Dhttp=ON ../root_6.20.06

```

However, I’ve been getting a slew of “error adding symbols: File in wrong format” issues, with

- /usr/lib/libgif.so
- /usr/lib/libtiff.so
- /usr/lib/libgl.so

I think the issue may be that it’s trying to link against libraries in `/usr/lib` rather than `/usr/lib64` but I’m not sure how to force it to change where it’s linking.

For the gif and tiff libraries I installed recent versions with spack, but I’m not able to install the gl libraries with spack.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 16, 2020, 10:07pm UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/10 "2020-06-16T22:07:49Z")

</div>

Uhm I’m afraid I do not have enough experience with SL6 to help with libgl.

As an alternative to building ROOT yourself, however, I can suggest installing ROOT in a conda environment – if it works for your usecase/platform. It’s easy and quick to get it up, and it just works on 99% of the linux platforms. More information [in this blog post](https://iscinumpy.gitlab.io/post/root-conda/).

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 17, 2020, 7:16am UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/11 "2020-06-17T07:16:35Z")

</div>

You probably need to install “giflib-devel”, “libtiff-devel” and “mesa-libGL-devel” packages.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 17, 2020, 7:39am UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/12 "2020-06-17T07:39:53Z")

</div>

Little update: ROOT does not support SL6+devtoolset, and SL6 is very near to end of life so it’s unlikely to happen, I’m afraid.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 17, 2020, 8:14am UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/13 "2020-06-17T08:14:58Z")

</div>

I explicitly asked this question here …

> [@"root-config --glibs" output does not match files in libs/ directory](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/4):
>
> Can it be that the building of ROOT died in the middle and so not all libraries were built? @Axel Is the “devtoolset-7” supported on a “SL6” yet?

I guess I would appreciate a “renewed” official statement from @Axel concerning building and using ROOT 6 with “devtoolset-8” and “devtoolset-7” on SL[C]6 / CentOS6 and SL7 / CentOS7 (e.g. maybe some “devtoolset” is known to work on one of them). Even if these system may seem outdated, there are still many batch clusters which use them. The old statement:

> [@Devtoolset/gcc-toolset compatibility](https://root-forum.cern.ch/t/devtoolset-gcc-toolset-compatibility/38286/2):
>
> This still holds: Anyone reading this and willing to come up with a pull request for it is very welcome to ping me (also privately) to get some hints on what needs to be done. Until then: no devtoolset, please. Axel.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [June 17, 2020, 9:28am UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/14 "2020-06-17T09:28:36Z")

</div>

Nothing changed: we have not received a PR (or an offer to work on one with our guidance), and CERN isn’t increasing its investment in cling. As is, devtoolset is not supported in cling. Instead, one can install the full compiler (GCC \>= 4.8) and use that on SLC6.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 17, 2020, 9:35am UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/15 "2020-06-17T09:35:58Z")

</div>

What about “devtoolset-[78]” on SL7 / CentOS7?

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 1, 2020, 9:36am UTC](https://root-forum.cern.ch/t/root-config-glibs-output-does-not-match-files-in-libs-directory/39921/16 "2020-07-01T09:36:01Z")

</div>

Closed on July 1, 2020, 9:36am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
