error compiling NDpi
I have tried to build a package from NDpi (http://www.ntop.org/products/ndpi/) this guide https://github.com/betolj/ndpi-netfilter/blob/master/ndpi.install but when trying to compile I get this error,
ispos:/home/develop/nDPI# make
make all-recursive
make[1]: Entering directory ‘/home/develop/nDPI’
Making all in src/lib
make[2]: Entering directory ‘/home/develop/nDPI/src/lib’
/bin/bash ../../libtool —tag=CC —mode=compile gcc -DHAVE_CONFIG_H -I.
-I../.. -I../../src/include/ -I../../src/lib/third_party/include/ -g
-O2 -MT libndpi_la-ndpi_main.lo -MD -MP -MF
.deps/libndpi_la-ndpi_main.Tpo -c -o libndpi_la-ndpi_main.lo `test
-f ‘ndpi_main.c’ || echo ‘./’`ndpi_main.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include/
-I../../src/lib/third_party/include/ -g -O2 -MT
libndpi_la-ndpi_main.lo -MD -MP -MF .deps/libndpi_la-ndpi_main.Tpo
-c ndpi_main.c -fPIC -DPIC -o .libs/libndpi_la-ndpi_main.o
In file included from ../../src/include/ndpi_unix.h:28:0,
from ../../src/include/ndpi_main.h:67,
from ../../src/include/ndpi_api.h:29,
from ndpi_main.c:32:
../../src/include/linux_compat.h:51:3: error: unknown type name
‘u_char’
u_char h_dest[6]; /* destination eth addr */
^
…………………………………………………………….
I’m sure it has something to do with musl libc , that in debian compiles without problems, any advice to solve this problem?
(from redmine: issue id 3526, created on 2014-11-18, closed on 2014-12-09)