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 

miniupnd instllation error

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



Joined: 18 Apr 2012
Posts: 6
Location: Banglore,India

PostPosted: Wed Apr 18, 2012 10:19 am    Post subject: miniupnd instllation error Reply with quote

I am trying to install miniupnpd and got following error while installation .

[root@mandar miniupnpd-1.5.20110620]# make -f Makefile.linux install
make: *** No rule to make target `-liptc', needed by `miniupnpd'. Stop.

what is this -liptc ?why it is required?
Thank You
Back to top
View user's profile Send private message Send e-mail
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Apr 18, 2012 11:04 am    Post subject: Re: miniupnd instllation error Reply with quote

Mandar wrote:
I am trying to install miniupnpd and got following error while installation .

[root@mandar miniupnpd-1.5.20110620]# make -f Makefile.linux install
make: *** No rule to make target `-liptc', needed by `miniupnpd'. Stop.

what is this -liptc ?why it is required?

Please try with the latest miniupnpd code available here. The makefiles where improved regarding libiptc.
Also make sure that iptables is correctly installed on your system.

libiptc is a library of netfilter/iptables. It is required by miniupnpd to manipulate the tables
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Mandar



Joined: 18 Apr 2012
Posts: 6
Location: Banglore,India

PostPosted: Wed Apr 18, 2012 11:37 am    Post subject: Reply with quote

THANK YOU for your help,
I tried compiling it again with miniupnpd-1.6.20120406 and iptable-1.4.11 but now i am getting following errors

[root@mandar miniupnpd-1.6.20120406]# IPTABLESPATH=/home/miniUPnP/miniupnpd-1.6.20120406/iptables-1.4.11 make -f Makefile.linux
cc -Wall -O -D_GNU_SOURCE -g -DDEBUG -ansi -I/home/miniUPnP/miniupnpd-1.6.20120406/iptables-1.4.11/include/ -DIPTABLES_143 -c -o upnpsoap.o upnpsoap.c
upnpsoap.c: In function ‘PinholeVerification’:
upnpsoap.c:1265:2: error: expected expression before ‘/’ token
upnpsoap.c:1266:2: error: expected expression before ‘/’ token
upnpsoap.c:1267:2: error: expected expression before ‘/’ token
upnpsoap.c:1270:29: error: expected expression before ‘/’ token
upnpsoap.c:1276:46: error: expected expression before ‘/’ token
upnpsoap.c:1269:31: warning: unused variable ‘p’
upnpsoap.c:1269:26: warning: unused variable ‘ai’
upnpsoap.c:1264:7: warning: unused variable ‘senderAddr’
upnpsoap.c:1261:6: warning: unused variable ‘n’
upnpsoap.c:1298:2: warning: no return statement in function returning non-void
upnpsoap.c: At top level:
upnpsoap.c:1300:2: error: expected identifier or ‘(’ before ‘if’
upnpsoap.c:1306:9: error: expected declaration specifiers or ‘...’ before string constant
upnpsoap.c:1306:89: error: expected declaration specifiers or ‘...’ before ‘senderAddr’
upnpsoap.c:1306:101: error: expected declaration specifiers or ‘...’ before ‘int_ip’
upnpsoap.c:1306:2: warning: data definition has no type or storage class
upnpsoap.c:1306:2: warning: type defaults to ‘int’ in declaration of ‘printf’
upnpsoap.c:1306:2: error: conflicting types for ‘printf’
upnpsoap.c:1306:101: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration
upnpsoap.c:1308:2: error: expected identifier or ‘(’ before ‘if’
upnpsoap.c:1308:2278: error: expected identifier or ‘(’ before ‘)’ token
upnpsoap.c:1318:2: error: expected identifier or ‘(’ before ‘if’
upnpsoap.c:1325:2: error: expected identifier or ‘(’ before ‘return’
upnpsoap.c:1326:1: error: expected identifier or ‘(’ before ‘}’ token
upnpsoap.c: In function ‘CheckPinholeWorking’:
upnpsoap.c:1622:5: error: expected expression before ‘/’ token
make: *** [upnpsoap.o] Error 1
Back to top
View user's profile Send private message Send e-mail
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Wed Apr 18, 2012 1:04 pm    Post subject: Reply with quote

well IGDv2 is not finished... it's no use compiling it unless you are developing on it Smile
if you remove the "-ansi" flag from CFLAGS in Makefile.linux, that should compile ok
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Mandar



Joined: 18 Apr 2012
Posts: 6
Location: Banglore,India

PostPosted: Thu Apr 19, 2012 6:48 am    Post subject: Reply with quote

THANK YOU.....it finally works fine...
Laughing
Back to top
View user's profile Send private message Send e-mail
Mandar



Joined: 18 Apr 2012
Posts: 6
Location: Banglore,India

PostPosted: Thu Apr 19, 2012 6:52 am    Post subject: Reply with quote

Its working on my x86 system.....now i want it to be work on ARM platform (I am using BeagleBone) is there any change in compilation/installation procedure? which package i have to cross compile?
Back to top
View user's profile Send private message Send e-mail
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Thu Apr 19, 2012 8:00 am    Post subject: Reply with quote

I dont know about your target platform and the cross compilation tools you are using.
miniupnpd should be linked with libiptc from iptables.
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Mandar



Joined: 18 Apr 2012
Posts: 6
Location: Banglore,India

PostPosted: Thu Apr 19, 2012 11:01 am    Post subject: Reply with quote

ok.....
if anyone using miniupnp or miniupnp daemon on ARM board please help me out ...
Back to top
View user's profile Send private message Send e-mail
twear



Joined: 01 Nov 2012
Posts: 80

PostPosted: Fri Nov 02, 2012 8:18 pm    Post subject: Reply with quote

were you able to figure this out? I'm fighting through it right now...
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 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.