# \[resolved\] Error when trying to build packetbeat from sources

**URL:** https://discuss.elastic.co/t/resolved-error-when-trying-to-build-packetbeat-from-sources/27137
**Category:** Beats
**Created:** [August 10, 2015, 3:12pm UTC](https://discuss.elastic.co/t/resolved-error-when-trying-to-build-packetbeat-from-sources/27137 "2015-08-10T15:12:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Keylor42](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@Keylor42](https://discuss.elastic.co/u/Keylor42)
#### Post date: [August 10, 2015, 3:12pm UTC](https://discuss.elastic.co/t/resolved-error-when-trying-to-build-packetbeat-from-sources/27137/1 "2015-08-10T15:12:03Z")

</div>

Hello everyone,

I would like to implement the memcached protocol for Packetbeat and so to begin I try to compile packetbeat from the github sources. But when I run make, I have some errors and I can't find a solution around the web :

```
$make
# first make sure we have godep
go get github.com/tools/godep
/home/users/mydir/gocode/bin/godep go build
# github.com/tsg/gopacket/pcap
could not determine kind of name for C.PCAP_ERROR_IFACE_NOT_UP
could not determine kind of name for C.pcap_free_datalinks
could not determine kind of name for C.pcap_offline_filter
godep: go exit status 2
make: *** [packetbeat] Error 1

```

I understand that the error comes from pcap library, which is installed on my Suse Linux. But I don't know what to do from now and any help would be welcomed.

EDIT : problem solved. It was coming from a wrong version of libpcap.so

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [August 10, 2015, 3:24pm UTC](https://discuss.elastic.co/t/resolved-error-when-trying-to-build-packetbeat-from-sources/27137/2 "2015-08-10T15:24:16Z")

</div>

Hi,

First of all it's good that you mentioned memcache because @steffens is already working on it! His work in progress is here: [https://github.com/urso/packetbeat/tree/feature/proto-memcache](https://github.com/urso/packetbeat/tree/feature/proto-memcache)

Regarding the error, I'm not sure but I found a possible hint in this question [here](http://stackoverflow.com/questions/12591773/error-could-not-determine-kind-of-name-for-c-stdout-when-building-example-from) (not the accepted answer, the one about the locale). So maybe check that the gcc output seems to make sense.

---

<div class="post-metadata">

### Author: ![Keylor42](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@Keylor42](https://discuss.elastic.co/u/Keylor42)
#### Post date: [August 11, 2015, 7:41am UTC](https://discuss.elastic.co/t/resolved-error-when-trying-to-build-packetbeat-from-sources/27137/3 "2015-08-11T07:41:21Z")

</div>

Great news for the memcached protocol. Any idea about when it will be available ?

The solution you gave doesn't work but maybe it's indeed a problem with gcc or C code. I'll find out.

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [August 11, 2015, 1:35pm UTC](https://discuss.elastic.co/t/resolved-error-when-trying-to-build-packetbeat-from-sources/27137/4 "2015-08-11T13:35:51Z")

</div>

It will be in beta3, we target it for around 3 weeks from now.

---

<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: [July 5, 2017, 9:58pm UTC](https://discuss.elastic.co/t/resolved-error-when-trying-to-build-packetbeat-from-sources/27137/5 "2017-07-05T21:58:59Z")

</div>


