View previous topic :: View next topic |
Author |
Message |
Trigg
Joined: 04 Aug 2012 Posts: 1 Location: China
|
Posted: Sat Aug 04, 2012 12:59 pm Post subject: miniupnpd Compilations error CentOS 5.8 |
|
|
hi. guys. when i compilation miniupnpd on my CentOS. I get these info:
linux/getroute.c: In function ‘get_src_for_route_to’:
linux/getroute.c:142: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 4 has type ‘unsigned int’
cc -Os -fno-strict-aliasing -fno-common -D_GNU_SOURCE -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement -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:243: warning: ISO C90 forbids mixed declarations and code
netfilter/iptcrdr.c:249: error: ‘h’ undeclared (first use in this function)
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:341: warning: ISO C90 forbids mixed declarations and code
netfilter/iptcrdr.c:347: error: ‘h’ undeclared (first use in this function)
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:466: warning: ISO C90 forbids mixed declarations and code
netfilter/iptcrdr.c:473: error: ‘h’ undeclared (first use in this function)
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 ‘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:848: warning: ISO C90 forbids mixed declarations and code
netfilter/iptcrdr.c:860: error: ‘h’ undeclared (first use in this function)
make: *** [netfilter/iptcrdr.o] Error 1
what can I do? thanks. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Sat Aug 11, 2012 5:26 am Post subject: |
|
|
problems with iptables/netfilter headers...
I thought I got rid of theses...
What version of miniupnpd are you trying to compile ? _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|