# Undefined reference to \`uuid\_unparse'

**URL:** <https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369>\
**Category:** ROOT\
**Created:** [January 31, 2023, 4:02pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369 "2023-01-31T16:02:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![machiel](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/f05b48/32.png) [@machiel](https://root-forum.cern.ch/u/machiel)\
**Post date:** [January 31, 2023, 4:02pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369/1 "2023-01-31T16:02:08Z")

</div>

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:

```auto
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:

```auto
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

---

<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:** [January 31, 2023, 4:14pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369/2 "2023-01-31T16:14:35Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![machiel](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/f05b48/32.png) [@machiel](https://root-forum.cern.ch/u/machiel)\
**Post date:** [January 31, 2023, 5:21pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369/3 "2023-01-31T17:21:03Z")

</div>

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)

---

<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:** [January 31, 2023, 8:16pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369/4 "2023-01-31T20:16:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![machiel](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/f05b48/32.png) [@machiel](https://root-forum.cern.ch/u/machiel)\
**Post date:** [February 2, 2023, 12:27pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369/5 "2023-02-02T12:27:01Z")

</div>

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

Machiel

---

<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:** [February 2, 2023, 12:30pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369/6 "2023-02-02T12:30:52Z")

</div>

[Uncle Google → XRootD](https://www.google.com/search?q=XRootD)

---

<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:** [February 16, 2023, 12:31pm UTC](https://root-forum.cern.ch/t/undefined-reference-to-uuid-unparse/53369/7 "2023-02-16T12:31:15Z")

</div>

Closed on February 16, 2023, 12:31pm UTC

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