# 2.6-beta build error

**URL:** https://community.zeek.org/t/2-6-beta-build-error/5469
**Category:** Development
**Tags:** development
**Created:** [September 20, 2018, 7:13pm UTC](https://community.zeek.org/t/2-6-beta-build-error/5469 "2018-09-20T19:13:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Michael\_Dopheide](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Michael\_Dopheide](https://community.zeek.org/u/Michael_Dopheide)
#### Post date: [September 20, 2018, 7:13pm UTC](https://community.zeek.org/t/2-6-beta-build-error/5469/1 "2018-09-20T19:13:36Z")

</div>

I’m hitting the same error when trying to build release/2.6 or master:

[99%] In file included from /usr/local/src/bro/src/Func.cc:702:0:  
bro.bif: In constructor ‘MMDB::MMDB(const char\*, stat)’:  
bro.bif:3630:47: error: cannot convert ‘stat’ to ‘\_\_dev\_t {aka long unsigned int}’ in initialization

CentOS Linux release 7.5.1804

Let me know if you need any other information. As a point of comparison, bro-2.5-897 builds fine.

-Dop

---

<div class="post-metadata">

### Author: ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)
#### Post date: [September 21, 2018, 2:22pm UTC](https://community.zeek.org/t/2-6-beta-build-error/5469/2 "2018-09-21T14:22:18Z")

</div>

Looks like travis-ci didn't catch this because the travis-job script does not install libmaxminddb-devel/libmaxminddb-dev  
so bro is not built with mmdb support.

---

<div class="post-metadata">

### Author: ![Jon\_Siwek](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jon\_Siwek](https://community.zeek.org/u/Jon_Siwek)
#### Post date: [September 21, 2018, 3:24pm UTC](https://community.zeek.org/t/2-6-beta-build-error/5469/3 "2018-09-21T15:24:23Z")

</div>

Thanks, it's fixed by a simple patch [1] now in master.

- Jon

[1] [https://github.com/bro/bro/commit/d7097635f4b1ec9adca548b81ee42968629987a5](https://github.com/bro/bro/commit/d7097635f4b1ec9adca548b81ee42968629987a5)

---

<div class="post-metadata">

### Author: ![Azoff\_Justin\_S](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Azoff\_Justin\_S](https://community.zeek.org/u/Azoff_Justin_S)
#### Post date: [September 21, 2018, 4:58pm UTC](https://community.zeek.org/t/2-6-beta-build-error/5469/4 "2018-09-21T16:58:14Z")

</div>

That fixed the build, but I think I found a new issue.

If bro is built with maxminddb support but the db files are not present yet, bro logs this twice for each connection:

1537548892.975875 Reporter::ERROR Failed to open GeoIP location database (lookup\_location(Conn::c$id$resp\_h)) /srv/bro/spool/installed-scripts-do-not-touch/site/ncsa/./bro-scripts/./conn-add-geodata.bro, line 23  
1537548892.978846 Reporter::ERROR Failed to open GeoIP location database (lookup\_location(Conn::c$id$orig\_h)) /srv/bro/spool/installed-scripts-do-not-touch/site/ncsa/./bro-scripts/./conn-add-geodata.bro, line 19

I think I remember the older geoip bifs logging this as well, but only once at startup, not once per call to lookup\_location.

---

<div class="post-metadata">

### Author: ![Jon\_Siwek](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@Jon\_Siwek](https://community.zeek.org/u/Jon_Siwek)
#### Post date: [September 21, 2018, 6:32pm UTC](https://community.zeek.org/t/2-6-beta-build-error/5469/5 "2018-09-21T18:32:01Z")

</div>

Yes, looks like it used to be that way. Changed via [1] now in master.

- Jon

[1] [https://github.com/bro/bro/commit/2ede95422bab0c4853b8db7cc15fe5c6e77aa75a](https://github.com/bro/bro/commit/2ede95422bab0c4853b8db7cc15fe5c6e77aa75a)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)
#### Post date: [May 6, 2022, 3:46pm UTC](https://community.zeek.org/t/2-6-beta-build-error/5469/6 "2022-05-06T15:46:05Z")

</div>


