Hi
I have successfully compiled a few versions of DB Hub under the OpenWrt SDK. It is currently running on an SD card on a router and has been going for a couple months now.
What I want to be able to do is have the ability to run perl scripts from DB Hub so it can produce stats. and to do this I need to enable perl.
But when I try to compile DB Hub with --enable -perl , the following error comes up
mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT
-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl/5.8/CORE
-I/home/blue18/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include
-I/home/blue18/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include
-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -c perl_utils.c
In file included from /usr/lib/perl/5.8/CORE/op.h:497,
from /usr/lib/perl/5.8/CORE/perl.h:2754,
from perl_utils.c:27:
/usr/lib/perl/5.8/CORE/reentr.h:612: error: field `_crypt_struct' has
incomplete type
perl_utils.c: In function `perl_init':
perl_utils.c:220: warning: passing arg 2 of `perl_parse' from
incompatible pointer type
make[5]: *** [perl_utils.o] Error 1
make[5]: Leaving directory
`/home/blue18/OpenWrt-SDK-Linux-i686-1/build_mipsel/dbhub-0.440/src'
make[4]: *** [/home/blue18/OpenWrt-SDK-Linux-i686-1/build_mipsel/dbhub-0.440/.built]
Error 2
make[4]: Leaving directory `/home/blue18/OpenWrt-SDK-Linux-i686-1/package/dbhub'
make[3]: *** [dbhub-compile] Error 2
make[3]: Leaving directory `/home/blue18/OpenWrt-SDK-Linux-i686-1/package'
make[2]: *** [compile] Error 2
make[2]: Leaving directory `/home/blue18/OpenWrt-SDK-Linux-i686-1/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/home/blue18/OpenWrt-SDK-Linux-i686-1'
make: *** [world] Error 2
This is my make file
include $(TOPDIR)/rules.mk
PKG_NAME:=dbhub
PKG_VERSION:=0.440
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://optusnet.dl.sourceforge.net/sourceforge/dbhub
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(TOPDIR)/package/rules.mk
$(eval $(call PKG_template,DBHUB,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--without-libiconv-prefix \
--without-libintl-prefix \
--disable-nls \
--enable-perl \
);
## Add software specific configurable options above
## See : ./configure --help
touch $@
$(PKG_BUILD_DIR)/.built:
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)/usr/bin
$(MAKE) -C $(PKG_BUILD_DIR)/src \
$(TARGET_CONFIGURE_OPTS) \
prefix="$(PKG_INSTALL_DIR)/usr"
$(CP) $(PKG_BUILD_DIR)/src/dbhub $(PKG_INSTALL_DIR)/usr/bin
touch $@
$(IPKG_DBHUB):
install -d -m0755 $(IDIR_DBHUB)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/dbhub $(IDIR_DBHUB)/usr/bin
$(RSTRIP) $(IDIR_DBHUB)
$(IPKG_BUILD) $(IDIR_DBHUB) $(PACKAGE_DIR)
mostlyclean:
make -C $(PKG_BUILD_DIR) clean
rm $(PKG_BUILD_DIR)/.built
Im not sure what it all means. I have tried everything I can think of. Such as changing the make file around.
If you can help me out that would be great!
Cheers