[Chilli] Build fails on FreeBSD

Outback Dingo outbackdingo at gmail.com
Mon Aug 27 22:56:29 UTC 2012


On Mon, Aug 27, 2012 at 6:37 PM, Sevan / Venture37 <venture37 at gmail.com> wrote:
> Hi Dave,
> As requested, built r473 from svn, build fails with following error,
> disabling IPv6 support or commenting out line 532 in pkt.h allows the build
> to complete sucessfully.
>
>
> Sevan
>
> /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..
> -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-stric
> t-aliasing -O2 -fomit-frame-pointer -funroll-loops -pipe -I../bstring
> -DDEFCHILLICONF='"/usr/local/etc/chilli.conf"' -DDEFPIDFIL
> E='"/var/run/chilli.pid"' -DDEFSTATEDIR='"/var/run"'
> -DSBINDIR='"/usr/local/sbin"'    -g -O2 -MT chilli.lo -MD -MP -MF .deps/chi
> lli.Tpo -c -o chilli.lo chilli.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -Wall -Werror
> -fno-builtin -fno-strict-aliasing -O2 -fomit-frame-p
> ointer -funroll-loops -pipe -I../bstring
> -DDEFCHILLICONF=\"/usr/local/etc/chilli.conf\"
> -DDEFPIDFILE=\"/var/run/chilli.pid\" -DD
> EFSTATEDIR=\"/var/run\" -DSBINDIR=\"/usr/local/sbin\" -g -O2 -MT chilli.lo
> -MD -MP -MF .deps/chilli.Tpo -c chilli.c  -fPIC -DPIC
>  -o .libs/chilli.o
> In file included from tun.h:24,
>                  from chilli.h:25,
>                  from chilli.c:20:
> pkt.h:532:1: error: "tcp6hdr" redefined
> In file included from system.h:155,
>                  from chilli.h:23,
>                  from chilli.c:20:
> /usr/include/netinet/tcp.h:44:1: error: this is the location of the previous
> definition
> gmake[3]: *** [chilli.lo] Error 1

sounds like a simple if defined would fix that instead of the
commenting out viable code.

> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli


More information about the Chilli mailing list