Errors when compiling grok on Ubuntu 9.04 32-bit

131 views
Skip to first unread message

Grig Gheorghiu

unread,
May 10, 2011, 3:07:48 PM5/10/11
to grok-users
Hello,

I am trying to install grok-1.20110308.1 on a 32-bit Ubuntu 9.04 EC2
instance. I installed the pre-reqs via

# apt-get install bison ctags flex gperf libevent-dev libpcre3-dev
libtokyocabinet-dev

When I run 'make grok' I get:

# make grok
cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux
grok.c -o grok.o
In file included from grok.c:1:
grok.h:39: error: expected specifier-qualifier-list before ‘TCTREE’
In file included from grok.h:130,
from grok.c:1:
grok_discover.h:9: error: expected specifier-qualifier-list before
‘TCTREE’
grok.c: In function ‘grok_init’:
grok.c:26: error: ‘grok_t’ has no member named ‘re’
grok.c:29: error: ‘grok_t’ has no member named ‘pcre_capture_vector’
grok.c:30: error: ‘grok_t’ has no member named ‘pcre_num_captures’
grok.c:31: error: ‘grok_t’ has no member named ‘max_capture_num’
grok.c:32: error: ‘grok_t’ has no member named ‘pcre_errptr’
grok.c:33: error: ‘grok_t’ has no member named ‘pcre_erroffset’
grok.c:34: error: ‘grok_t’ has no member named ‘logmask’
grok.c:35: error: ‘grok_t’ has no member named ‘logdepth’
grok.c:38: error: ‘grok_t’ has no member named ‘patterns’
grok.c:42: error: ‘grok_t’ has no member named ‘captures_by_id’
grok.c:43: error: ‘grok_t’ has no member named ‘captures_by_name’
grok.c:44: error: ‘grok_t’ has no member named ‘captures_by_subname’
grok.c:45: error: ‘grok_t’ has no member named
‘captures_by_capture_number’
grok.c:55: error: ‘grok_t’ has no member named ‘pcre_errptr’
grok.c:56: error: ‘grok_t’ has no member named ‘pcre_erroffset’
grok.c:59: error: ‘grok_t’ has no member named ‘pcre_errptr’
grok.c:61: error: ‘grok_t’ has no member named ‘pcre_erroffset’
grok.c: In function ‘grok_clone’:
grok.c:76: error: ‘grok_t’ has no member named ‘patterns’
grok.c:76: error: ‘grok_t’ has no member named ‘patterns’
grok.c:77: error: ‘grok_t’ has no member named ‘logmask’
grok.c:77: error: ‘grok_t’ has no member named ‘logmask’
grok.c:78: error: ‘grok_t’ has no member named ‘logdepth’
grok.c:78: error: ‘grok_t’ has no member named ‘logdepth’
grok.c: In function ‘grok_pcre_callout’:
grok.c:112: error: ‘grok_t’ has no member named ‘logmask’
grok.c:112: error: ‘grok_t’ has no member named ‘logdepth’
grok.c:117: error: ‘grok_t’ has no member named ‘logmask’
grok.c:117: error: ‘grok_t’ has no member named ‘logdepth’
grok.c:122: error: ‘grok_t’ has no member named ‘logmask’
grok.c:122: error: ‘grok_t’ has no member named ‘logdepth’
make: *** [grok.o] Error 1

Any suggestions appreciated.

Thanks!

Grig

Jordan Sissel

unread,
May 10, 2011, 3:17:10 PM5/10/11
to grok-users


On May 10, 12:07 pm, Grig Gheorghiu <grig.gheorg...@gmail.com> wrote:
> Hello,
>
> I am trying to install grok-1.20110308.1 on a 32-bit Ubuntu 9.04 EC2
> instance. I installed the pre-reqs via
>
> # apt-get install bison ctags flex gperf libevent-dev libpcre3-dev
> libtokyocabinet-dev
>
> When I run 'make grok' I get:
>
> # make grok
> cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux
> grok.c -o grok.o
> In file included from grok.c:1:
> grok.h:39: error: expected specifier-qualifier-list before ‘TCTREE’
> In file included from grok.h:130,
>                  from grok.c:1:
> grok_discover.h:9: error: expected specifier-qualifier-list before
> ‘TCTREE’

This is an indication that tokyocabinet is the incorrect version. What
version do you have installed?

-Jordan

Grig Gheorghiu

unread,
May 10, 2011, 3:25:48 PM5/10/11
to grok-users
On May 10, 12:17 pm, Jordan Sissel <j...@semicomplete.com> wrote:

> This is an indication that tokyocabinet is the incorrect version. What
> version do you have installed?
>

# dpkg -l | grep tokyo
ii libtokyocabinet-dev
1.2.1-1 Tokyo Cabinet Database Libraries
[developmen
ii libtokyocabinet3
1.2.1-1 Tokyo Cabinet Database Libraries
[runtime]

Jordan Sissel

unread,
May 10, 2011, 3:33:57 PM5/10/11
to grok-users
That's too old, unfortunately :(

Here's the install notes: https://github.com/jordansissel/grok/blob/master/INSTALL

Basically, you need tokyocabinet >= 1.4.9

It's a pretty easy project to build, so building a deb package with it
should be pretty easy (easier if you use fpm*)

*fpm - https://github.com/jordansissel/fpm#readme

-Jordan

Grig Gheorghiu

unread,
May 10, 2011, 3:41:28 PM5/10/11
to grok-users
OK, thanks. I guess I don't really need grok on the shipper side of
logstash, so I won't embark on this mini-project ;-)

Nice job with logstash BTW! Only observation regarding docs is that
the page at http://logstash.net/docs/1.0.2/getting-started-centralized
could use some splitting into sections.

Grig
Reply all
Reply to author
Forward
0 new messages