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 

miniupnpd compilation error

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



Joined: 22 Feb 2013
Posts: 2

PostPosted: Fri Feb 22, 2013 4:45 pm    Post subject: miniupnpd compilation error Reply with quote

Hi,

I'm trying to compile the source code of miniupnpd. I have the iptables/netfilter sources installed (in /home/flo/tomato/release/src-rt/router/iptables/include) but I always get the following error:

mipsel-uclibc-gcc -Wall -Os -D_GNU_SOURCE -DLINUX26 -DCONFIG_BCMWL5 -pipe -DBCMWPA2 -funit-at-a-time -Wno-pointer-sign -mtune=mips32 -mips32 -DCONFIG_NVRAM_SIZE=60 -I/home/flo/tomato/release/src-rt/router/iptables/include -I/home/flo/tomato/release/src-rt/router/libnfnetlink/include -I/home/flo/tomato/release/src-rt/router/shared -c -o netfilter/iptcrdr.o netfilter/iptcrdr.c
netfilter/iptcrdr.c: In function 'get_redirect_rule':
netfilter/iptcrdr.c:242: error: 'iptc_handle_t' undeclared (first use in this function)
netfilter/iptcrdr.c:242: error: (Each undeclared identifier is reported only once
netfilter/iptcrdr.c:242: error: for each function it appears in.)
netfilter/iptcrdr.c:242: error: expected ';' before 'h'
netfilter/iptcrdr.c:249: error: 'h' undeclared (first use in this function)
netfilter/iptcrdr.c:293: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:294: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c: In function 'get_redirect_rule_by_index':
netfilter/iptcrdr.c:340: error: 'iptc_handle_t' undeclared (first use in this function)
netfilter/iptcrdr.c:340: error: expected ';' before 'h'
netfilter/iptcrdr.c:347: error: 'h' undeclared (first use in this function)
netfilter/iptcrdr.c:389: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:390: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c: At top level:
netfilter/iptcrdr.c:423: error: expected declaration specifiers or '...' before 'iptc_handle_t'
netfilter/iptcrdr.c: In function 'delete_rule_and_commit':
netfilter/iptcrdr.c:431: error: 'h' undeclared (first use in this function)
netfilter/iptcrdr.c: In function 'delete_redirect_and_filter_rules':
netfilter/iptcrdr.c:465: error: 'iptc_handle_t' undeclared (first use in this function)
netfilter/iptcrdr.c:465: error: expected ';' before 'h'
netfilter/iptcrdr.c:473: error: 'h' undeclared (first use in this function)
netfilter/iptcrdr.c:520: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:521: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:541: error: too many arguments to function 'delete_rule_and_commit'
netfilter/iptcrdr.c:583: error: too many arguments to function 'delete_rule_and_commit'
netfilter/iptcrdr.c: In function 'get_dnat_target':
netfilter/iptcrdr.c:640: error: invalid application of 'sizeof' to incomplete type 'struct ip_nat_multi_range'
netfilter/iptcrdr.c:640: error: invalid application of 'sizeof' to incomplete type 'struct ip_nat_multi_range'
netfilter/iptcrdr.c:640: error: invalid application of 'sizeof' to incomplete type 'struct ip_nat_multi_range'
netfilter/iptcrdr.c:646: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:647: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:648: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:648: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:649: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:650: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:650: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c:651: error: dereferencing pointer to incomplete type
netfilter/iptcrdr.c: In function 'iptc_init_verify_and_append':
netfilter/iptcrdr.c:663: error: 'iptc_handle_t' undeclared (first use in this function)
netfilter/iptcrdr.c:663: error: expected ';' before 'h'
netfilter/iptcrdr.c:664: error: 'h' undeclared (first use in this function)
netfilter/iptcrdr.c: In function 'get_portmappings_in_range':
netfilter/iptcrdr.c:847: error: 'iptc_handle_t' undeclared (first use in this function)
netfilter/iptcrdr.c:847: error: expected ';' before 'h'
netfilter/iptcrdr.c:860: error: 'h' undeclared (first use in this function)
make[4]: *** [netfilter/iptcrdr.o] Erreur 1

Does anyone know why I always get the following error ?

Thank you
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Sat Feb 23, 2013 9:24 am    Post subject: Reply with quote

add -DIPTABLES_143 to CFLAGS
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
fopagi



Joined: 22 Feb 2013
Posts: 2

PostPosted: Sat Feb 23, 2013 11:03 am    Post subject: Reply with quote

Thank you very much, it is working fine with that parameter.
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.