Topic: need help turning backfire in a upnp media renderer

hi,

on my way to roll my first package, the following appears too hard for me.

i wrote a makefile for gmediarenderer, it downloads the sources and configures properly. compile stops with this errors.

-----
cc1: warning: include location "/usr/include/upnp" is unsafe for cross-compilation
main.c:1: note: someone does not honour COPTS correctly, passed 0 times
In file included from main.c:34:
/home/markus/hotspot/openwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/upnp/ithread.h:153: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ithread_rwlockattr_t'
/home/markus/hotspot/openwrt/backfire/staging_dir/target-mipsel_uClibc-0.9.30.1/usr/include/upnp/ithread.h:164: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ithread_rwlock_t'
-----

the reason can not be the includes, they do a perfect job for other packages like libupnp-sample. my guess is, it is because of missing or wrong CFLAGS. well here is may makefile:

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

PKG_NAME:=gmediarender
PKG_VERSION:=0.0.6
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmrender/
PKG_MD5SUM:=4fc1d5ce6ef2c27fae01d3e3fdc46240

PKG_FIXUP:=libtool
PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/gmediarender
    CATEGORY:=Multimedia
    SECTION:=multimedia
    TITLE:=GMediaRender
    URL:=http://gmrender.nongnu.org/
    DEPENDS+= @!LINUX_2_4 +libpthread +libgstreamer-0.10 +libgobject-2.0 +libgmodule-2.0 +libxml2 +libgthread-2.0 +librt +libglib-2.0
endef

define Package/gmediarender/description
    GMediaRender is a UPnP media renderer for POSIX-compliant systems, such as GNU/Linux or UNIX.
    It implements the server component that provides UPnP controllers a means to render media content
    (audio, video and images) from a UPnP media server.
endef

define Build/Configure
    $(call Build/Configure/Default)
endef

define Package/gmediarender/install
    $(INSTALL_DIR) $(1)/etc $(1)/usr/bin $(1)/usr/share/$(PKG_NAME)
    $(INSTALL_DATA) $(PKG_BUILD_DIR)/usr/share/$(PKG_NAME)/* $(1)/usr/share/$(PKG_NAME)
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/usr/bin/* $(1)/usr/bin
    $(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/* $(1)/etc
endef

CONFIGURE_ARGS += \
    --disable-largefile \

TARGET_CFLAGS += \
    -Os \
    -pipe \
    -mips32 \
    -mtune=mips32 \
    -funit-at-a-time \
    -fhonour-copts \
    -msoft-float \
    -fpic \

EXTRA_LDFLAGS += \
    -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \

$(eval $(call BuildPackage,gmediarender))
-----


do i have to  patch gmediarenderers Makefile? i'm lost.

ideas?

/markus