[Chilli] 1.2.9 compilation problem (compiled as part of openwrt)
adam at freerunr.com
Wed Feb 8 10:35:39 UTC 2012
Thanks for the tip Frank,
Just in ase anyone reads this at some point in the future, the version of gcc in openwrt BuildRoot (at the time of writing) is 4.3.3 so the flag "-Wno-error=unused-but-set-variable" won't work there.
Works a treat if you're using a newer version of gcc (4.6 onwards I think).
On 3 Feb 2012, at 11:45, Frank Münnich wrote:
> 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
> 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:
>>> 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: *** [dhcp.lo] Error 1
>>> make: 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: *** [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.
>> Chilli mailing list
>> Chilli at coova.org
> Chilli mailing list
> Chilli at coova.org
More information about the Chilli