Undefined reference to `uuid_unparse'

ROOT Version: v6.26.10
Platform: Ubuntu 16.04
Compiler: GNU Make 4.1

I am trying to compile ROOT and get the following errors:

XrdCl/libXrdCl.so.3.0.0: undefined reference to 'uuid_unparse'
XrdCl/libXrdCl.so.3.0.0: undefined reference to 'uuid_generate'

In XROOTD-build-out.log:
src/CMakeFiles/xrdpfc_print.dir/build.make:120: recipe for target 'src/xrdpfc_print' failed

In: XROOTD-build-err.log:

XrdCl/libXrdCl.so.3.0.0: undefined reference to 'uuid_unparse'
XrdCl/libXrdCl.so.3.0.0: undefined reference to 'uuid_generate'
collect2: error: ld returned 1 exit status
make[5]: *** [src/xrdpfc_print] Error 1
make[4]: *** [src/CMakeFiles/xrdpfc_print.dir/all] Error 2
make[3]: *** [all] Error 2

Alternatively, if there is a root v6 binary that I can directly download, but which is compiled with the “-DCMAKE_CXX_STANDARD=17”, that would work for me too.

Best regards,

Machiel Kolstein

On Ubuntu 16.04, the default compiler is GCC 5.4, so you are mostly limited to “-std=c++14” (well, some C++17 features are also available, so “-std=c++17” may sometimes work, too).

For the missing functions, try: sudo apt install uuid-dev

1 Like

I already installed (with difficulty) a gcc-7 (and g+±7) on my Ubuntu16.
$ gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~16.04) 7.5.0

I also already installed uuid (sudo apt-get install uuid)
My cmake version is: cmake version 3.18.2
Is there something else I should update?
(make --version: GNU Make 4.1 Built for x86_64-pc-linux-gnu)

Try to add -Dxrootd=OFF when configuring ROOT (switches the support for XRootD off).

Hi,
Thanks for your reply. This helped and it now compiled correctly. Out of curiosity: what is XRootD exactly?
Cheers,

Machiel

Uncle Google → XRootD

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