View previous topic :: View next topic |
Author |
Message |
thepeople
Joined: 26 Apr 2007 Posts: 3
|
Posted: Thu Apr 26, 2007 7:02 pm Post subject: compiling error |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Thu Apr 26, 2007 7:09 pm Post subject: Re: compiling error |
|
|
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 |
|
|
thepeople
Joined: 26 Apr 2007 Posts: 3
|
Posted: Thu Apr 26, 2007 7:24 pm Post subject: |
|
|
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 |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1589
|
Posted: Thu Apr 26, 2007 7:42 pm Post subject: |
|
|
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 |
|
|
thepeople
Joined: 26 Apr 2007 Posts: 3
|
Posted: Thu Apr 26, 2007 7:52 pm Post subject: |
|
|
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 |
|
|
|