View previous topic :: View next topic |
Author |
Message |
cammar
Joined: 06 Mar 2015 Posts: 2
|
Posted: Fri Mar 06, 2015 9:23 pm Post subject: minissdpd on openwrt ar71xx |
|
|
Hello,
I'm trying to install minisspdp on openwrt ar71xx. How do I build it or could someone share a ipk file? I found some package online, but they were 1) old version and 2) not running after installation.
Thanks |
|
Back to top |
|
 |
cammar
Joined: 06 Mar 2015 Posts: 2
|
Posted: Mon Mar 30, 2015 7:03 pm Post subject: |
|
|
I end up with following error:
Code: | getroute.o: In function `get_src_for_route_to':
getroute.c:(.text+0x84): undefined reference to `nfnl_addattr_l'
getroute.c:(.text+0x9c): undefined reference to `nfnl_addattr_l'
collect2: error: ld returned 1 exit status |
I guess the library libnfnetlink is missing, any ideas how to fix this issue?
Code: |
include $(TOPDIR)/rules.mk
PKG_NAME:=minissdpd
PKG_VERSION:=1.3
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://miniupnp.free.fr/files/
PKG_MD5SUM:=e9e53869bb725e931cae74b20d4a39be
include $(INCLUDE_DIR)/package.mk
define Package/minissdpd
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libnfnetlink
TITLE:=Simple Service Discovery Protocol daemon
URL:=http://miniupnp.free.fr/minissdpd.html
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
endef
define Package/minissdpd/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config
$(INSTALL_BIN) $(PKG_BUILD_DIR)/minissdpd $(1)/usr/bin/minissdpd
$(INSTALL_BIN) ./files/minissdpd.init $(1)/etc/init.d/minissdpd
$(INSTALL_CONF) ./files/minissdpd.config $(1)/etc/config/minissdpd
endef
$(eval $(call BuildPackage,minissdpd))
|
|
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
Posted: Sun Apr 05, 2015 9:49 pm Post subject: |
|
|
make sure the link command line includes -lnfnetlink.
Code: | gcc minissdpd.o openssdpsocket.o daemonize.o upnputils.o ifacewatch.o getroute.o getifaddr.o asyncsendto.o -lnfnetlink -o minissdpd |
_________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|