# Make Errors on OpenBSD 7.0 (Compiling Source)

**URL:** https://discuss.elastic.co/t/make-errors-on-openbsd-7-0-compiling-source/296662
**Category:** Beats
**Tags:** filebeat
**Created:** [February 8, 2022, 9:07pm UTC](https://discuss.elastic.co/t/make-errors-on-openbsd-7-0-compiling-source/296662 "2022-02-08T21:07:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jarbird](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jarbird](https://discuss.elastic.co/u/Jarbird)
#### Post date: [February 8, 2022, 9:07pm UTC](https://discuss.elastic.co/t/make-errors-on-openbsd-7-0-compiling-source/296662/1 "2022-02-08T21:07:02Z")

</div>

Hello,

I have perused the various OpenBSD topics regarding compiling beats (specifically filebeat) on OpenBSD, and have not found a solution to what I'm seeing.

OpenBSD 7.0 currently ships a filebeat version which is both old and missing components (particularly, modules that I am using). _This is not a complaint directed to OpenBSD maintainers._ I am not aware of official precompiled binaries for OpenBSD, as such I am compiling from source using these instructions:

```auto
https://www.elastic.co/guide/en/beats/devguide/current/beats-contributing.html

```

When it's time to run _make_ I'm using the following command within the bash shell:

```auto
cd ${GOPATH}/src/github.com/elastic/beats/filebeat && make -j24

```

I also tried without -j24 (the number of make jobs - There are 24 cores there), which doesn't change the situation which arises:

```auto
*** Parse error in /usr/local/share/beats/src/github.com/elastic/beats/filebeat: Need an operator in 'INSTALL_FLAG' (../libbeat/scripts/Makefile:29)
*** Parse error: Need an operator in 'INSTALL_CMD' (../libbeat/scripts/Makefile:30)
*** Parse error: Need an operator in 'MAGE_IMPORT_PATH' (../libbeat/scripts/Makefile:33)
No closing parenthesis in archive specification
*** Parse error: Error in archive specification: "(1 ,0)" (../libbeat/scripts/Makefile:111)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:113)
No closing parenthesis in archive specification
*** Parse error: Error in archive specification: "(1 ,1)" (../libbeat/scripts/Makefile:115)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:117)
*** Parse error: Missing dependency operator (../libbeat/scripts/Makefile:120)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:122)
*** Parse error: Need an operator in 'MAGE_IMPORT_PATH' (../dev-tools/make/mage-install.mk:4)
*** Parse error: Need an operator in 'MAGE_PRESENT' (../dev-tools/make/mage-install.mk:8)
*** Parse error: Need an operator in 'endif' (../dev-tools/make/mage-install.mk:12)
*** Parse error: Need an operator in 'CHECK_HEADERS_DISABLED' (../libbeat/scripts/Makefile:154)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:156)
*** Parse error: Need an operator in 'CHECK_HEADERS_DISABLED' (../libbeat/scripts/Makefile:160)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:162)
*** Parse error: Need an operator in 'EXCLUDE_COMMON_UPDATE_TARGET' (../libbeat/scripts/Makefile:347)
*** Parse error: Missing dependency operator (../libbeat/scripts/Makefile:352)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:355)
*** Parse error: Missing dependency operator (../libbeat/scripts/Makefile:357)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:361)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:368)
*** Parse error: Need an operator in 'NO_COLLECT' (../libbeat/scripts/Makefile:480)
*** Parse error: Need an operator in 'endif' (../libbeat/scripts/Makefile:483)

```

Here is some information on the environment:

```auto
bash-5.1# echo $SHELL ; bash --version | head -n 1 ; echo $GOPATH ; echo $PATH
/usr/local/bin/bash
GNU bash, version 5.1.8(1)-release (x86_64-unknown-openbsd7.0)
/usr/local/share/beats
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share/beats/bin

```

I have run into strange formatting issues unrelated to this project and reaching at a straw, i tried dos2unix on the mentioned files (_this may be defined instead as desperate?_) and that does not change the situation.

I also have some alpine linux log sources, and this approach works just fine there. So it may be OpenBSD specific.

Any ideas what's going on here?

---

<div class="post-metadata">

### Author: ![Jarbird](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jarbird](https://discuss.elastic.co/u/Jarbird)
#### Post date: [February 16, 2022, 12:08am UTC](https://discuss.elastic.co/t/make-errors-on-openbsd-7-0-compiling-source/296662/2 "2022-02-16T00:08:51Z")

</div>

I have since learned that the OSS version does not have the netflow capability that I need, so attempting to compile this on OpenBSD does not meet my needs.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [March 16, 2022, 2:08am UTC](https://discuss.elastic.co/t/make-errors-on-openbsd-7-0-compiling-source/296662/3 "2022-03-16T02:08:58Z")

</div>

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