View previous topic :: View next topic |
Author |
Message |
dequan
Joined: 10 Apr 2010 Posts: 10
|
Posted: Sat Jul 09, 2011 12:31 pm Post subject: GetExternalIPAddress compile failure miniupnpd-1.5.20110623 |
|
|
Can't seem to compile the latest build with multiple external interface support.
Failing with:
Code: | bob@cat:~/miniupnpd-1.5.20110623# IPTABLESPATH=../iptables-1.4.7 make -f Makefile.linux
cc -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -I../iptables-1.4.7/include/ -DIPTABLES_143 -c -o upnpsoap.o upnpsoap.c
upnpsoap.c: In function âGetExternalIPAddressâ:
upnpsoap.c:276: error: ân_lan_addrâ undeclared (first use in this function)
upnpsoap.c:276: error: (Each undeclared identifier is reported only once
upnpsoap.c:276: error: for each function it appears in.)
upnpsoap.c:278: error: âlan_addrâ undeclared (first use in this function)
make: *** [upnpsoap.o] Error 1 |
I'm about to try a few previous revisions and find out when the problem was introduced.
Last edited by dequan on Sat Jul 09, 2011 1:02 pm; edited 1 time in total |
|
Back to top |
|
|
dequan
Joined: 10 Apr 2010 Posts: 10
|
Posted: Sat Jul 09, 2011 12:49 pm Post subject: |
|
|
All versions back to miniupnpd-1.5.20110516 fail with the above error.
miniupnpd-1.5.20110515 fails with the following error:
Code: | bobt@cat:~/miniupnpd-1.5.20110515# IPTABLESPATH=../iptables-1.4.7 make -f Makefile.linux
cc -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -I../iptables-1.4.7/include/ -DIPTABLES_143 -c -o miniupnpd.o miniupnpd.c
cc -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -I../iptables-1.4.7/include/ -DIPTABLES_143 -c -o upnphttp.o upnphttp.c
make: *** No rule to make target `upnpurns.h', needed by `upnpdescgen.o'. Stop. |
|
|
Back to top |
|
|
dequan
Joined: 10 Apr 2010 Posts: 10
|
Posted: Wed Jul 13, 2011 11:58 pm Post subject: |
|
|
After researching miniupnpd-1.0, I found that some declarations were missing that would not allow multiple external IP support.
upnpglobalvars.h
Code: | + #define MAX_LAN_ADDR (4)
+ extern int n_lan_addr;
+ extern struct lan_addr_s lan_addr[];
|
I can't actually remember, nor find, if there were any more additions to make this work.
The only problem I have noticed after compiling and running with this change is that the real public IP address is not found and defined as 0.0.0.0. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
|
Back to top |
|
|
|