VUTBR / nf-tools

NetFlow processing tools
6 stars 3 forks source link

Libnf doesn't compile #16

Closed jwrona closed 8 years ago

jwrona commented 8 years ago
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -ggdb -I../include -I../nfdump/bin -I../ffilter -I../bzip2 -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -DLNF_THREADS -DNSEL -MT lnf_filter.lo -MD -MP -MF .deps/lnf_filter.Tpo -c lnf_filter.c  -fPIC -DPIC -o .libs/lnf_filter.o
lnf_filter.c: In function 'lnf_ff_lookup_func':
lnf_filter.c:56:13: error: request for member 'index' in something not a structure or union
   lvalue->id.index = lnf_fld_parse(fieldstr, NULL, NULL);
             ^
lnf_filter.c:58:17: error: request for member 'index' in something not a structure or union
   if (lvalue->id.index == LNF_FLD_ZERO_) {
                 ^
lnf_filter.c:62:34: error: request for member 'index' in something not a structure or union
   switch (lnf_fld_type(lvalue->id.index)) {

CentOS 7 with GCC 4.8.5

tpoder1 commented 8 years ago

Solved in 39846e2..f5656c8