miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

minissdpd on openwrt ar71xx

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
cammar



Joined: 06 Mar 2015
Posts: 2

PostPosted: Fri Mar 06, 2015 9:23 pm    Post subject: minissdpd on openwrt ar71xx Reply with quote

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
View user's profile Send private message
cammar



Joined: 06 Mar 2015
Posts: 2

PostPosted: Mon Mar 30, 2015 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1454

PostPosted: Sun Apr 05, 2015 9:49 pm    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.