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 

compiling error

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
thepeople



Joined: 26 Apr 2007
Posts: 3

PostPosted: Thu Apr 26, 2007 7:02 pm    Post subject: compiling error Reply with quote

I am trying to compile RC4 for X-Wrt and I get the following error
Code:

miniupnpd.c: In function 'main':
miniupnpd.c:470: error: 'LOG_MINIUPNPD' undeclared (first use in this function)
miniupnpd.c:470: error: (Each undeclared identifier is reported only once
miniupnpd.c:470: error: for each function it appears in.)
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Apr 26, 2007 7:09 pm    Post subject: Re: compiling error Reply with quote

thepeople wrote:
I am trying to compile RC4 for X-Wrt and I get the following error
Code:

miniupnpd.c: In function 'main':
miniupnpd.c:470: error: 'LOG_MINIUPNPD' undeclared (first use in this function)
miniupnpd.c:470: error: (Each undeclared identifier is reported only once
miniupnpd.c:470: error: for each function it appears in.)


to fix that you can apply the following patch :
Code:

diff -u -r1.1 config.h.openwrt
--- config.h.openwrt    2 Dec 2006 15:34:09 -0000       1.1
+++ config.h.openwrt    26 Apr 2007 19:06:33 -0000
@@ -5,9 +5,13 @@
 #ifndef __CONFIG_H__
 #define __CONFIG_H__
 
+#define UPNP_VERSION   "20070228"
+
 #define OS_NAME        "OpenWRT"
 /* OS/version */
 #define OS_VERSION     "OpenWRT/WhiteRussian"
 #define OS_URL "http://openwrt.org/"
+
+#define LOG_MINIUPNPD  LOG_DAEMON
 
 #endif
Back to top
View user's profile Send private message Visit poster's website
thepeople



Joined: 26 Apr 2007
Posts: 3

PostPosted: Thu Apr 26, 2007 7:24 pm    Post subject: Reply with quote

That fixes that problem, getting a new error (maybe part of my makefile not sure yet)
Code:

make[3]: Entering directory `/home/travis/compile/kamikaze/build_mips/miniupnpd-1.0-RC4'
make[3]: *** No rule to make target `openbsd/getifstats.h', needed by `upnpsoap.o'.  Stop.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Apr 26, 2007 7:42 pm    Post subject: Reply with quote

thepeople wrote:
That fixes that problem, getting a new error (maybe part of my makefile not sure yet)
Code:

make[3]: Entering directory `/home/travis/compile/kamikaze/build_mips/miniupnpd-1.0-RC4'
make[3]: *** No rule to make target `openbsd/getifstats.h', needed by `upnpsoap.o'.  Stop.


try to "make depend"
or else remove dependencies from the end of the Makefile.
Back to top
View user's profile Send private message Visit poster's website
thepeople



Joined: 26 Apr 2007
Posts: 3

PostPosted: Thu Apr 26, 2007 7:52 pm    Post subject: Reply with quote

I found it
Code:
upnpsoap.o: upnpredirect.h openbsd/getifstats.h
should be
Code:
upnpsoap.o: upnpredirect.h getifstats.h


and
Code:
linux/getifstats.o: openbsd/getifstats.h
should be
Code:
linux/getifstats.o: getifstats.h
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs 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.