# Building failure on Ubuntu

**URL:** <https://discourse.slicer.org/t/building-failure-on-ubuntu/3215>\
**Category:** Support\
**Tags:** build\
**Created:** [June 18, 2018, 3:50pm UTC](https://discourse.slicer.org/t/building-failure-on-ubuntu/3215 "2018-06-18T15:50:29Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![phcerdan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/phcerdan/32/1559_2.png) [@phcerdan](https://discourse.slicer.org/u/phcerdan)\
**Post date:** [October 1, 2018, 3:38pm UTC](https://discourse.slicer.org/t/building-failure-on-ubuntu/3215/10 "2018-10-01T15:38:20Z")

</div>

There is an open issue in libarchive about this: [https://github.com/libarchive/libarchive/issues/974](https://github.com/libarchive/libarchive/issues/974)

The fix would be to add the header in `libarchive/archive_pack_dev.c`.

```cpp
#include <sys/sysmacros.h>

```

I am not hitting the warning with gcc 8 in archlinux though.

---

_[View the full topic](https://discourse.slicer.org/t/building-failure-on-ubuntu/3215)._
