# multiple definition of \`exodus\_unused\_symbol\_dummy\_1' when building VTK 8.2.0

**URL:** https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744
**Category:** Support
**Created:** [June 16, 2023, 1:07pm UTC](https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744 "2023-06-16T13:07:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RavenWorks](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/ee7513/32.png) [@RavenWorks](https://discourse.vtk.org/u/RavenWorks)
#### Post date: [June 16, 2023, 1:07pm UTC](https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744/1 "2023-06-16T13:07:23Z")

</div>

I’m trying to build VTK 8.2.0 on Arch Linux on a Steam Deck, in hopes of using it with an Azure Kinect for photogrammetry… it’s been QUITE a journey getting all the right dependencies installed, but I’ve finally hit an error that seems to be related to VTK itself, or at least something it comes bundled with:

```auto
[89%] Linking C shared library ../../../lib/libvtkexodusII-8.2.so
/usr/bin/ld: CMakeFiles/vtkexodusII.dir/src/ex_open_par.c.o:/home/deck/projects/VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c:477: multiple definition of `exodus_unused_symbol_dummy_1'; CMakeFiles/vtkexodusII.dir/src/ex_create_par.c.o:/home/deck/projects/VTK-8.2.0/ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c:617: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [ThirdParty/exodusII/vtkexodusII/CMakeFiles/vtkexodusII.dir/build.make:4436: lib/libvtkexodusII-8.2.so.1] Error 1
make[1]: *** [CMakeFiles/Makefile2:5607: ThirdParty/exodusII/vtkexodusII/CMakeFiles/vtkexodusII.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

```

Googling turned up this thread: [https://gitlab.kitware.com/vtk/vtk/-/issues/17774](https://gitlab.kitware.com/vtk/vtk/-/issues/17774) which suggests that this is fixed already? Does anyone have any idea why it would still be happening for me?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [June 17, 2023, 11:17pm UTC](https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744/2 "2023-06-17T23:17:23Z")

</div>

Because it was fixed in 9.0, not any (released) version of 8.2. Looking at the MR that fixed it, it did not go into the 8.2 maintenance branch either.

---

<div class="post-metadata">

### Author: ![apyh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/apyh/32/7325_2.png) [@apyh](https://discourse.vtk.org/u/apyh)
#### Post date: [June 22, 2023, 2:41am UTC](https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744/3 "2023-06-22T02:41:40Z")

</div>

Super easy to fix - go to `ThirdParty/exodusII/vtkexodusII/src/ex_create_par.c` and `ThirdParty/exodusII/vtkexodusII/src/ex_open_par.c` and replace

```auto
const char exodus_unused_symbol_dummy_1;

```

with

```auto
const char exodus_unused_symbol_dummy_ex_create_par;

```

should solve your compile issues!

You can also go to `ThirdParty/exodusII/update.sh` and change the `tag` to `readonly tag="for/vtk-20200128-7.24f-v2019-12-18"`

---

<div class="post-metadata">

### Author: ![RavenWorks](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/r/ee7513/32.png) [@RavenWorks](https://discourse.vtk.org/u/RavenWorks)
#### Post date: [June 22, 2023, 10:43am UTC](https://discourse.vtk.org/t/multiple-definition-of-exodus-unused-symbol-dummy-1-when-building-vtk-8-2-0/11744/4 "2023-06-22T10:43:52Z")

</div>

That worked, thank you!
