Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with --enable-location #167

Open
drkhosla opened this issue Dec 7, 2015 · 1 comment
Open

Compile error with --enable-location #167

drkhosla opened this issue Dec 7, 2015 · 1 comment
Labels

Comments

@drkhosla
Copy link

drkhosla commented Dec 7, 2015

When I try to compile coovachilli with following option

./configure --prefix=/usr --enable-largelimits --enable-chilliredir --enable-chilliproxy --enable-chilliscript --with-poll --enable-libjson --with-openssl --enable-chilliradsec --enable-layer3 --enable-redirinject --enable-useragent --enable-location --enable-proxyvsa --enable-gardenext --enable-ipwhitelist --enable-uamdomainfile

I get an error

make[3]: Entering directory /root/coova-chilli/src' depbase=echo chilli.lo | sed 's|[^/]$|.deps/&|;s|.lo$||'`;
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -funroll-loops -pipe -I../bstring -DDEFCHILLICONF='"/usr/etc/chilli.conf"' -DDEFPIDFILE='"/usr/var/run/chilli.pid"' -DDEFSTATEDIR='"/usr/var/run"' -DSBINDIR='"/usr/sbin"' -I../json -g -O2 -MT chilli.lo -MD -MP -MF $depbase.Tpo -c -o chilli.lo chilli.c &&
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -funroll-loops -pipe -I../bstring -DDEFCHILLICONF="/usr/etc/chilli.conf" -DDEFPIDFILE="/usr/var/run/chilli.pid" -DDEFSTATEDIR="/usr/var/run" -DSBINDIR="/usr/sbin" -I../json -g -O2 -MT chilli.lo -MD -MP -MF .deps/chilli.Tpo -c chilli.c -fPIC -DPIC -o .libs/chilli.o
chilli.c: In function 'chilli_learn_location':
chilli.c:2964:9: error: 's_state' undeclared (first use in this function)
sizeof(s_state.pending_location));
^
chilli.c:2964:9: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *
* [chilli.lo] Error 1

When I compile without --enable-location I am able to compile it without any problem.

@sevan
Copy link
Member

sevan commented Dec 8, 2015

@gbaligh thanks.
The issue has highlighted (to me at least) that it's not possible to set --enable-location alone, it relies on other functionality to be enabled, which is not by default. It should be possible to take care of this with it autoconf so that setting --enable-location implies enabling its dependent flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants