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 

GetExternalIPAddress compile failure miniupnpd-1.5.20110623

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



Joined: 10 Apr 2010
Posts: 10

PostPosted: Sat Jul 09, 2011 12:31 pm    Post subject: GetExternalIPAddress compile failure miniupnpd-1.5.20110623 Reply with quote

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



Joined: 10 Apr 2010
Posts: 10

PostPosted: Sat Jul 09, 2011 12:49 pm    Post subject: Reply with quote

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



Joined: 10 Apr 2010
Posts: 10

PostPosted: Wed Jul 13, 2011 11:58 pm    Post subject: Reply with quote

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


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Fri Jul 15, 2011 7:56 am    Post subject: Re: GetExternalIPAddress compile failure miniupnpd-1.5.20110 Reply with quote

sorry for the delay, here is the fixed version :
miniupnpd-1.5.20110715.tar.gz
_________________
Main miniUPnP author.
https://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 -> miniupnpd 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.