# A VTK error during make

**URL:** https://discourse.paraview.org/t/a-vtk-error-during-make/8017
**Category:** ParaView Support
**Created:** [September 17, 2021, 7:35am UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017 "2021-09-17T07:35:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Chong\_ZHENG](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chong_zheng/32/7612_2.png) [@Chong\_ZHENG](https://discourse.paraview.org/u/Chong_ZHENG)
#### Post date: [September 17, 2021, 7:35am UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/1 "2021-09-17T07:35:49Z")

</div>

I have the following error when I tried to make it, please help.

```auto
.../VTK/ThirdParty/hdf5/vtkhdf5/src/H5Oint.c:358:12: error: implicit declaration of function 'vtkhdf5_H5CX_get_ohdr_flags' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if(H5CX_get_ohdr_flags(&oh_flags) < 0)
           ^
.../VTK/ThirdParty/hdf5/vtkhdf5/src/vtk_hdf5_mangle.h:273:29: note: expanded from macro 'H5CX_get_ohdr_flags'
#define H5CX_get_ohdr_flags vtkhdf5_H5CX_get_ohdr_flags
                            ^
[3%] Generating the wrap hierarchy for ParaView::VTKExtensionsIOCore
.../VTK/ThirdParty/hdf5/vtkhdf5/src/H5Oint.c:358:12: note: did you mean 'vtkhdf5_H5O_get_oh_flags'?
.../VTK/ThirdParty/hdf5/vtkhdf5/src/vtk_hdf5_mangle.h:273:29: note: expanded from macro 'H5CX_get_ohdr_flags'
#define H5CX_get_ohdr_flags vtkhdf5_H5CX_get_ohdr_flags
                            ^
.../VTK/ThirdParty/hdf5/vtkhdf5/src/H5Oprivate.h:913:16: note: 'vtkhdf5_H5O_get_oh_flags' declared here
H5_DLL uint8_t H5O_get_oh_flags(const H5O_t *oh);
               ^
.../VTK/ThirdParty/hdf5/vtkhdf5/src/vtk_hdf5_mangle.h:1780:26: note: expanded from macro 'H5O_get_oh_flags'
#define H5O_get_oh_flags vtkhdf5_H5O_get_oh_flags
                         ^
[3%] Building C object VTK/ThirdParty/hdf5/vtkhdf5/src/CMakeFiles/vtkhdf5_src.dir/H5Olayout.c.o
1 error generated.

```

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 17, 2021, 8:40am UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/2 "2021-09-17T08:40:10Z")

</div>

@ben.boeckel , was this fixed already ?

---

<div class="post-metadata">

### Author: ![Chong\_ZHENG](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chong_zheng/32/7612_2.png) [@Chong\_ZHENG](https://discourse.paraview.org/u/Chong_ZHENG)
#### Post date: [September 18, 2021, 10:35am UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/3 "2021-09-18T10:35:55Z")

</div>

Please inform me if there is anything I can do.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 18, 2021, 11:32pm UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/4 "2021-09-18T23:32:40Z")

</div>

What version are you building? What compiler is this?

---

<div class="post-metadata">

### Author: ![Chong\_ZHENG](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chong_zheng/32/7612_2.png) [@Chong\_ZHENG](https://discourse.paraview.org/u/Chong_ZHENG)
#### Post date: [September 19, 2021, 10:13am UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/5 "2021-09-19T10:13:07Z")

</div>

I was using Mac OS 11.5.2 and Terminal.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 19, 2021, 3:31pm UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/6 "2021-09-19T15:31:02Z")

</div>

What version of ParaView?

---

<div class="post-metadata">

### Author: ![Chong\_ZHENG](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chong_zheng/32/7612_2.png) [@Chong\_ZHENG](https://discourse.paraview.org/u/Chong_ZHENG)
#### Post date: [September 20, 2021, 5:44am UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/7 "2021-09-20T05:44:22Z")

</div>

It is ParaView-v5.8.1.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 20, 2021, 6:19pm UTC](https://discourse.paraview.org/t/a-vtk-error-during-make/8017/8 "2021-09-20T18:19:08Z")

</div>

I don’t remember what change was made to fix this, but it looks like adding an include to `H5Oint.c` is probably the fix. You can add `#include "H5CXprivate.h"` to `ThirdParty/hdf5/vtkhdf5/src/H5Oint.c` after the `H5private.h` include.
