[Chilli] 1.2.9 compilation problem (compiled as part of openwrt)
Frank Münnich
mail at frank-muennich.com
Fri Feb 3 11:45:28 UTC 2012
Hey Adam,
if you compile with OpenWRT and use the BuildRoot stuff, then you need
to alter the Makefile that comes with the packages.
Go to trunk (or whatever you have)/feeds/packages/net/coova-chilli and
edit Makefile.
Insert after the define Package/coova-chilli ... endef section the
following lines:
TARGET_CFLAGS+= -Wno-error=unused-but-set-variable
Also, if you want to pass to the configure script some arguments, then
that could be achieved via
CONFIGURE_ARGS+= --with-openssl etc
The former TARGET-CFLAGS tells the compiler to disregard the warning for
unused variables, which there are some in the source.
If you have any questions, please contact me directly. Just being a
novice. ;)
Best regards
Frank
On 02.02.2012 19:19, Adam Hammond wrote:
> FYI the same error is thrown when building an RPM from the same source.
>
>
> On 2 Feb 2012, at 16:45, Adam Hammond wrote:
>
>> Hi,
>>
>> There seems to be a problem compiling under openwrt if the --proxyvsa option is specified.
>>
>> Here's some output:
>>
>> libtool: compile: mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/build/builds/backfire-10.3.1-RC6/staging_dir/target-mips_r2_uClibc-0.9.30.1/usr/include -I/home/build/builds/backfire-10.3.1-RC6/staging_dir/target-mips_r2_uClibc-0.9.30.1/include -I/home/build/builds/backfire-10.3.1-RC6/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/include -I/home/build/builds/backfire-10.3.1-RC6/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/include -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing -O2 -fomit-frame-pointer -funroll-loops -pipe -I../bstring -DDEFCHILLICONF=\"/etc/chilli.conf\" -DDEFPIDFILE=\"/var/run/chilli.pid\" -DDEFSTATEDIR=\"/var/run\" -DSBINDIR=\"/usr/sbin\" -I../json -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -MT dhcp.lo -MD -MP -MF .deps/dhcp.Tpo -c dhcp.c -fPIC -DPIC -o .libs/dhcp.o
>> cc1: warnings being treated as errors
>> dhcp.c: In function 'dhcp_handler':
>> dhcp.c:3007: error: unused variable 'appconn'
>> make[7]: *** [dhcp.lo] Error 1
>> make[7]: Leaving directory `/home/build/builds/backfire-10.3.1-RC6/build_dir/target-mips_r2_uClibc-0.9.30.1/coova-chilli-1.2.9/src'
>> make[6]: *** [all-recursive] Error 1
>>
>> I've tried compiling it under several different versions of openwrt, all with the same error.
>>
>> I've compiled it manuallyfrom src, and DON'T get any error.
>>
>> I'm not quite sure how to fix this, but I'll plug away come back on this if I work it out.
>>
>> Adam
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
More information about the Chilli
mailing list