OpenWrt Forum Archive

Topic: compiling coova-chilli ipk for whiterussian on wrt54g (mipsel)

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Im trying to compile the latest version of coova-chilli v1.2.9 to install on a linksys wrt54g running whiterussian but getting compile errors, if anyone could help i've posted the output below.

This is only happening with v 1.2.9, I successfully compiled 1.2.8 and 1.2.7 without any problems and got ipk packages at the end which installed no problems at all on the router.

/bin/bash ../libtool --tag=CC   --mode=compile mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I..   -I/home/oscam/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/oscam/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/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"'    -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -MT dhcp.lo -MD -MP -MF .deps/dhcp.Tpo -c -o dhcp.lo dhcp.c
libtool: compile:  mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/oscam/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/oscam/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/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\" -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -MT dhcp.lo -MD -MP -MF .deps/dhcp.Tpo -c dhcp.c  -fPIC -DPIC -o .libs/dhcp.o
dhcp.c: In function `dhcp_handler':
dhcp.c:3007: warning: unused variable `appconn'
make[8]: *** [dhcp.lo] Error 1
make[8]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1/build_mipsel/coova-chilli-1.2.9/src'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1/build_mipsel/coova-chilli-1.2.9/src'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1/build_mipsel/coova-chilli-1.2.9'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1/build_mipsel/coova-chilli-1.2.9'
make[4]: *** [/home/oscam/OpenWrt-SDK-Linux-i686-1/build_mipsel/coova-chilli-1.2.9/.built] Error 2
make[4]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1/package/coova-chilli'
make[3]: *** [coova-chilli-compile] Error 2
make[3]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1/package'
make[2]: *** [compile] Error 2
make[2]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/home/oscam/OpenWrt-SDK-Linux-i686-1'
make: *** [world] Error 2
oscam@oscam:~/OpenWrt-SDK-Linux-i686-1$

and the makefile im using

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=coova-chilli
PKG_VERSION:=1.2.9
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

PKG_SOURCE_URL:=http://ap.coova.org/chilli/
PKG_MD5SUM:=a493d0562fc3b05fe86d8ad65f7f2dc0
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

include $(TOPDIR)/include/package.mk
include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,COOVA_CHILLI,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

define Package/coova-chilli
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+kmod-tun
  TITLE:=Wireless LAN HotSpot controller (Coova Chilli Version)
  MAINTAINER:=David Bird <david@coova.com>
  URL:=http://www.coova.org/
endef

define Package/coova-chilli/description
        CoovaChilli is an open source access controller for wireless LAN
        access points and is based on ChilliSpot. It is used for authenticating
        users of a wireless (or wired) LAN. It supports web based login (UAM)
        which is today's standard for public HotSpots and it supports Wireless Protected
        Access (WPA) which is the standard of the future. Authentication,
        authorization and accounting (AAA) is handled by your favorite
        radius server.
endef

define Package/coova-chilli/conffiles
endef

define Build/Configure
  (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
                $(TARGET_CONFIGURE_OPTS) \
                sh bootstrap; \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(strip $(TARGET_CFLAGS))" \
                CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
                ac_cv_func_malloc_0_nonnull=yes \
                ac_cv_func_memcmp_working=yes \
                ac_cv_func_setvbuf_reversed=no \
                ./configure \
                        --target=$(GNU_TARGET_NAME) \
                        --host=$(GNU_TARGET_NAME) \
                        --build=$(GNU_HOST_NAME) \
                        --program-prefix="" \
                        --program-suffix="" \
                        --prefix=/usr \
                        --exec-prefix=/usr \
                        --bindir=/usr/bin \
                        --datadir=/usr/share \
                        --includedir=/usr/include \
                        --infodir=/usr/share/info \
                        --libdir=/usr/lib \
                        --libexecdir=/usr/lib \
                        --localstatedir=/var \
                        --mandir=/usr/share/man \
                        --sbindir=/usr/sbin \
                        --sysconfdir=/etc \
                        $(DISABLE_LARGEFILE) \
                        $(DISABLE_NLS) \
                        --enable-shared \
                        --disable-static \
                        --with-gnu-ld \
                        --with-openssl \
                        --enable-chilliproxy \
                        --enable-chilliradsec \
                        --enable-miniportal \
                        --enable-binstatusfile \
                        --enable-proxyvsa \
        );
endef

define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
endef

define Package/coova-chilli/install
        install -m0755 -d $(1)/etc $(1)/etc/init.d $(1)/etc/chilli
        install -m0755 -d $(1)/usr/sbin $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/etc/chilli.conf       $(1)/etc/
        $(CP) $(PKG_INSTALL_DIR)/etc/chilli/*          $(1)/etc/chilli/
        $(CP) $(PKG_INSTALL_DIR)/usr/sbin/chilli*      $(1)/usr/sbin/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.*     $(1)/usr/lib/
        install -m0755 ./files/up.sh                   $(1)/etc/chilli/ipup.sh
        install -m0755 ./files/down.sh                 $(1)/etc/chilli/ipdown.sh
        install -m0755 ./files/$(PKG_NAME).init        $(1)/etc/init.d/S90chilli
endef

$(eval $(call BuildPackage,coova-chilli))

Try  TARGET_CFLAGS += -Wno-error

White Russian is dead for such a long time now. Use Backfire :-)

jow wrote:

Try  TARGET_CFLAGS += -Wno-error

where should I put this?

Thanks

The discussion might have continued from here.