Hello all,
I am trying to port the Ganglia monitoring software to Kamikaze. I had been developing on r8221 but built a r8356 tree just to rule out any messing about I had done as the problem. It was ruled out - the problem exists in r8356.

I added ganglia to trunk/.config, and selected it for builtin. I performed make package/ganglia-compile


(cd .libs && rm -f libganglia.so && ln -s libganglia-3.0.4.so.0.0.0 libganglia.so)
i386-linux-uclibc-ar cru .libs/libganglia.a  become_a_nobody.o debug_msg.o daemon_init.o file.o dotconf.o error.o ganglia.o hash.o inetaddr.o llist.o my_inet_ntop.o rdwr.o readdir.o tcp.o protocol_xdr.o apr_net.o libgmond.o
i386-linux-uclibc-ranlib .libs/libganglia.a
creating libganglia.la
(cd .libs && rm -f libganglia.la && ln -s ../libganglia.la libganglia.la)
make[5]: Leaving directory `/home/bob/r8356/build_i386/ganglia-3.0.4/lib'
Making all in libmetrics
make[5]: Entering directory `/home/bob/r8356/build_i386/ganglia-3.0.4/libmetrics'
make[5]: *** No rule to make target `all'.  Stop.
make[5]: Leaving directory `/home/bob/r8356/build_i386/ganglia-3.0.4/libmetrics'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/bob/r8356/build_i386/ganglia-3.0.4'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/bob/r8356/build_i386/ganglia-3.0.4'
make[2]: *** [/home/bob/r8356/build_i386/ganglia-3.0.4/.built] Error 2
make[2]: Leaving directory `/home/bob/r8356/package/ganglia'
make[1]: *** [package/ganglia/compile] Error 2
make[1]: Leaving directory `/home/bob/r8356'
make: *** [package/ganglia-compile] Error 2
bob@sigil:~/r8356$




Here is the Makefile I am using:

bob@sigil:~/r8356$ cat package/ganglia/Makefile
include $(TOPDIR)/rules.mk

PKG_NAME:=ganglia
PKG_VERSION:=3.0.4
PKG_RELEASE:=1

PKG_SOURCE:=ganglia-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/ganglia
PKG_MD5SUM:=9a51023accb59b6ba76c10d7cb7322fa
PKG_CAT:=zcat

PKG_BUILD:=$(BUILD_DIR)/ganglia-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/ganglia
        SECTION:=net
        CATEGORY:=Network
        TITLE:= Ganglia net monitoring
        DESCRIPTION:=Ganglia net monitoring.
        URL:=http://ganglia.sourceforge.net
endef


define Package/ganglia/install
        $(INSTALL_DIR) $(1)/usr/sbin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/gmond/gmond $(1)/usr/sbin
       $(INSTALL_BIN) $(PKG_BUILD_DIR)/gmetric/gmetric $(1)/usr/sbin
endef

$(eval $(call BuildPackage,ganglia))
bob@sigil:~/r8356$


I did not define sections for configure and compile because the standard way of compiling ganglia is so straightforward - just ./configure and make. According to the instructions in the SDK (the dvi file) I don't need to use these sections if the build is so simple.