View previous topic :: View next topic |
Author |
Message |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Thu Jun 30, 2011 7:43 pm Post subject: |
|
|
Code: |
Index: iptcrdr.c
===================================================================
RCS file: /usr/local/cvsroot/miniupnp/miniupnpd/linux/iptcrdr.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- iptcrdr.c 4 Jun 2011 08:57:41 -0000 1.43
+++ iptcrdr.c 20 Jun 2011 14:03:24 -0000 1.44
@@ -1,4 +1,4 @@
-/* $Id: iptcrdr.c,v 1.43 2011/06/04 08:57:41 nanard Exp $ */
+/* $Id: iptcrdr.c,v 1.44 2011/06/20 14:03:24 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2011 Thomas Bernard
@@ -43,6 +43,11 @@
#define IPTC_HANDLE iptc_handle_t
#endif
+/* IPT_ALIGN was renamed XT_ALIGN in iptables-1.4.11 */
+#ifndef IPT_ALIGN
+#define IPT_ALIGN XT_ALIGN
+#endif
+
#include "iptcrdr.h"
#include "../upnpglobalvars.h"
@@ -883,7 +888,8 @@
array = realloc(array, sizeof(unsigned short)*capacity);
if(!array)
{
- syslog(LOG_ERR, "get_portmappings_in_range() : realloc(%lu) error", sizeof(unsigned short)*capacity);
+ syslog(LOG_ERR, "get_portmappings_in_range() : realloc(%u) error",
+ (unsigned)sizeof(unsigned short)*capacity);
*number = 0;
break;
}
|
_________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Thu Jun 30, 2011 7:46 pm Post subject: |
|
|
pva wrote: | BTW, do I interpret miniupnpd versions correctly?
1.5 - is stable
1.5.YYYYMMDD - are release candidates for 1.6? |
more or less... indeed I try to release a new version when I think it is stable.
I think I'll release a 1.6 soon. I had not much feedback about bugs introduced with new features, so I guess it not so bad _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
SoLoR
Joined: 30 May 2009 Posts: 36
|
Posted: Tue Jul 26, 2011 7:43 am Post subject: |
|
|
There is a problem with compiling with kernel 3.0 headers (or maybe its new iptables 1.4.12?)....
Code: | mih miniupnpd-1.6 # make
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o miniupnpd.o miniupnpd.c
In file included from /usr/include/asm/sigcontext.h:5:0,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:339,
from miniupnpd.c:35:
/usr/src/linux/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnphttp.o upnphttp.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpdescgen.o upnpdescgen.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpsoap.o upnpsoap.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpreplyparse.o upnpreplyparse.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o minixml.o minixml.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpredirect.o upnpredirect.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o getifaddr.o getifaddr.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o daemonize.o daemonize.c
In file included from /usr/include/asm/sigcontext.h:5:0,
from /usr/include/bits/sigcontext.h:28,
from /usr/include/signal.h:339,
from daemonize.c:16:
/usr/src/linux/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpglobalvars.o upnpglobalvars.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o options.o options.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnppermissions.o upnppermissions.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o minissdp.o minissdp.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o natpmp.o natpmp.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpevents.o upnpevents.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnputils.o upnputils.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o getconnstatus.o getconnstatus.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o linux/getifstats.o linux/getifstats.c
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o linux/ifacewatcher.o linux/ifacewatcher.c
In file included from /usr/src/linux/include/linux/netlink.h:5:0,
from linux/ifacewatcher.c:41:
/usr/src/linux/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
cc -I/usr/src/linux/include -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o netfilter/iptcrdr.o netfilter/iptcrdr.c
In file included from /usr/include/libiptc/libiptc.h:5:0,
from netfilter/iptcrdr.c:16:
/usr/src/linux/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
In file included from /usr/src/linux/include/net/netfilter/nf_nat.h:4:0,
from netfilter/iptcrdr.c:32:
/usr/src/linux/include/net/netfilter/nf_conntrack_tuple.h: In function ‘__nf_ct_tuple_src_equal’:
/usr/src/linux/include/net/netfilter/nf_conntrack_tuple.h:152:2: warning: implicit declaration of function ‘nf_inet_addr_cmp’
In file included from /usr/src/linux/include/linux/list.h:6:0,
from /usr/src/linux/include/net/netfilter/nf_nat.h:51,
from netfilter/iptcrdr.c:32:
/usr/src/linux/include/linux/poison.h: At top level:
/usr/src/linux/include/linux/poison.h:23:0: warning: "LIST_POISON2" redefined
netfilter/iptcrdr.c:30:0: note: this is the location of the previous definition
In file included from /usr/src/linux/include/net/netfilter/nf_nat.h:51:0,
from netfilter/iptcrdr.c:32:
/usr/src/linux/include/linux/list.h:24:42: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h:24:42: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/src/linux/include/linux/list.h: In function ‘INIT_LIST_HEAD’:
/usr/src/linux/include/linux/list.h:26:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:27:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:39:17: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘__list_add’:
/usr/src/linux/include/linux/list.h:41:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:42:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:43:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:44:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:60:59: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_add’:
/usr/src/linux/include/linux/list.h:62:28: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:62:2: warning: passing argument 1 of ‘__list_add’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:37:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:62:2: warning: passing argument 2 of ‘__list_add’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:37:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:74:64: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_add_tail’:
/usr/src/linux/include/linux/list.h:76:22: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:76:2: warning: passing argument 1 of ‘__list_add’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:37:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:76:2: warning: passing argument 3 of ‘__list_add’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:37:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:86:63: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘__list_del’:
/usr/src/linux/include/linux/list.h:88:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:89:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:99:44: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘__list_del_entry’:
/usr/src/linux/include/linux/list.h:101:18: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:101:31: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:104:36: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_del’:
/usr/src/linux/include/linux/list.h:106:18: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:106:31: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:107:7: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:108:7: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:123:12: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_replace’:
/usr/src/linux/include/linux/list.h:125:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:125:17: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:126:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:127:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:127:17: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:128:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:132:13: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_replace_init’:
/usr/src/linux/include/linux/list.h:134:2: warning: passing argument 1 of ‘list_replace’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:122:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:134:2: warning: passing argument 2 of ‘list_replace’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:122:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:135:2: warning: passing argument 1 of ‘INIT_LIST_HEAD’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:24:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:142:41: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_del_init’:
/usr/src/linux/include/linux/list.h:144:2: warning: passing argument 1 of ‘__list_del_entry’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:99:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:145:2: warning: passing argument 1 of ‘INIT_LIST_HEAD’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:24:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:153:61: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_move’:
/usr/src/linux/include/linux/list.h:155:2: warning: passing argument 1 of ‘__list_del_entry’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:99:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:156:2: warning: passing argument 1 of ‘list_add’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:60:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:156:2: warning: passing argument 2 of ‘list_add’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:60:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:165:14: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_move_tail’:
/usr/src/linux/include/linux/list.h:167:2: warning: passing argument 1 of ‘__list_del_entry’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:99:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:168:2: warning: passing argument 1 of ‘list_add_tail’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:74:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:168:2: warning: passing argument 2 of ‘list_add_tail’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:74:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:177:18: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_is_last’:
/usr/src/linux/include/linux/list.h:179:13: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:186:43: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_empty’:
/usr/src/linux/include/linux/list.h:188:13: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:204:51: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_empty_careful’:
/usr/src/linux/include/linux/list.h:206:31: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:207:40: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:214:44: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_rotate_left’:
/usr/src/linux/include/linux/list.h:218:2: warning: passing argument 1 of ‘list_empty’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:186:19: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:219:15: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:220:3: warning: passing argument 1 of ‘list_move_tail’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:164:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:220:3: warning: passing argument 2 of ‘list_move_tail’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:164:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:228:49: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_is_singular’:
/usr/src/linux/include/linux/list.h:230:2: warning: passing argument 1 of ‘list_empty’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:186:19: note: expected ‘const struct list_head *’ but argument is of type ‘const struct list_head *’
/usr/src/linux/include/linux/list.h:230:35: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:230:49: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:234:34: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘__list_cut_position’:
/usr/src/linux/include/linux/list.h:236:37: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:237:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:237:19: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:238:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:239:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:240:7: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:241:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:242:11: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:260:34: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_cut_position’:
/usr/src/linux/include/linux/list.h:262:2: warning: passing argument 1 of ‘list_empty’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:186:19: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:264:2: warning: passing argument 1 of ‘list_is_singular’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:228:19: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:265:8: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:268:3: warning: passing argument 1 of ‘INIT_LIST_HEAD’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:24:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:270:3: warning: passing argument 1 of ‘__list_cut_position’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:233:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:270:3: warning: passing argument 2 of ‘__list_cut_position’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:233:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:270:3: warning: passing argument 3 of ‘__list_cut_position’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:233:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:275:13: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘__list_splice’:
/usr/src/linux/include/linux/list.h:277:32: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:278:31: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:280:7: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:281:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:283:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:284:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:293:12: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_splice’:
/usr/src/linux/include/linux/list.h:295:2: warning: passing argument 1 of ‘list_empty’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:186:19: note: expected ‘const struct list_head *’ but argument is of type ‘const struct list_head *’
/usr/src/linux/include/linux/list.h:296:33: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:296:3: warning: passing argument 1 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘const struct list_head *’ but argument is of type ‘const struct list_head *’
/usr/src/linux/include/linux/list.h:296:3: warning: passing argument 2 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:305:12: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_splice_tail’:
/usr/src/linux/include/linux/list.h:307:2: warning: passing argument 1 of ‘list_empty’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:186:19: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:308:27: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:308:3: warning: passing argument 1 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:308:3: warning: passing argument 3 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:319:16: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_splice_init’:
/usr/src/linux/include/linux/list.h:321:2: warning: passing argument 1 of ‘list_empty’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:186:19: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:322:33: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:322:3: warning: passing argument 1 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:322:3: warning: passing argument 2 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:323:3: warning: passing argument 1 of ‘INIT_LIST_HEAD’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:24:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:336:14: warning: ‘struct list_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘list_splice_tail_init’:
/usr/src/linux/include/linux/list.h:338:2: warning: passing argument 1 of ‘list_empty’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:186:19: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:339:27: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:339:3: warning: passing argument 1 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘const struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:339:3: warning: passing argument 3 of ‘__list_splice’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:273:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h:340:3: warning: passing argument 1 of ‘INIT_LIST_HEAD’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:24:20: note: expected ‘struct list_head *’ but argument is of type ‘struct list_head *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:570:43: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘INIT_HLIST_NODE’:
/usr/src/linux/include/linux/list.h:572:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:573:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:576:47: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_unhashed’:
/usr/src/linux/include/linux/list.h:578:11: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:581:44: warning: ‘struct hlist_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_empty’:
/usr/src/linux/include/linux/list.h:583:11: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:586:39: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘__hlist_del’:
/usr/src/linux/include/linux/list.h:588:29: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:589:31: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:592:7: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:595:37: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_del’:
/usr/src/linux/include/linux/list.h:597:2: warning: passing argument 1 of ‘__hlist_del’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:586:20: note: expected ‘struct hlist_node *’ but argument is of type ‘struct hlist_node *’
/usr/src/linux/include/linux/list.h:598:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:599:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:602:42: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_del_init’:
/usr/src/linux/include/linux/list.h:604:2: warning: passing argument 1 of ‘hlist_unhashed’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:576:19: note: expected ‘const struct hlist_node *’ but argument is of type ‘struct hlist_node *’
/usr/src/linux/include/linux/list.h:605:3: warning: passing argument 1 of ‘__hlist_del’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:586:20: note: expected ‘struct hlist_node *’ but argument is of type ‘struct hlist_node *’
/usr/src/linux/include/linux/list.h:606:3: warning: passing argument 1 of ‘INIT_HLIST_NODE’ from incompatible pointer type
/usr/src/linux/include/linux/list.h:570:20: note: expected ‘struct hlist_node *’ but argument is of type ‘struct hlist_node *’
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:610:64: warning: ‘struct hlist_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h:610:64: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_add_head’:
/usr/src/linux/include/linux/list.h:612:30: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:613:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:615:8: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:615:20: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:616:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:617:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:617:15: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:622:13: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_add_before’:
/usr/src/linux/include/linux/list.h:624:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:624:17: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:625:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:626:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:626:18: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:627:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:631:13: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_add_after’:
/usr/src/linux/include/linux/list.h:633:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:633:16: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:634:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:635:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:635:18: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:637:9: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:638:7: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:638:29: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:642:42: warning: ‘struct hlist_node’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_add_fake’:
/usr/src/linux/include/linux/list.h:644:3: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:644:15: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h: At top level:
/usr/src/linux/include/linux/list.h:652:15: warning: ‘struct hlist_head’ declared inside parameter list
/usr/src/linux/include/linux/list.h: In function ‘hlist_move_list’:
/usr/src/linux/include/linux/list.h:654:5: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:654:18: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:655:9: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:656:6: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:656:27: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/list.h:657:5: error: dereferencing pointer to incomplete type
In file included from /usr/src/linux/include/linux/preempt.h:9:0,
from /usr/src/linux/include/linux/spinlock.h:50,
from /usr/src/linux/include/linux/mmzone.h:7,
from /usr/src/linux/include/linux/gfp.h:4,
from /usr/src/linux/include/linux/slab.h:12,
from /usr/src/linux/include/net/netfilter/nf_conntrack_extend.h:4,
from /usr/src/linux/include/net/netfilter/nf_nat.h:53,
from netfilter/iptcrdr.c:32:
/usr/src/linux/include/linux/thread_info.h: At top level:
/usr/src/linux/include/linux/thread_info.h:23:4: error: expected specifier-qualifier-list before ‘u32’
/usr/src/linux/include/linux/thread_info.h:37:4: error: expected specifier-qualifier-list before ‘u64’
In file included from /usr/src/linux/include/linux/thread_info.h:52:0,
from /usr/src/linux/include/linux/preempt.h:9,
from /usr/src/linux/include/linux/spinlock.h:50,
from /usr/src/linux/include/linux/mmzone.h:7,
from /usr/src/linux/include/linux/gfp.h:4,
from /usr/src/linux/include/linux/slab.h:12,
from /usr/src/linux/include/net/netfilter/nf_conntrack_extend.h:4,
from /usr/src/linux/include/net/netfilter/nf_nat.h:53,
from netfilter/iptcrdr.c:32:
/usr/src/linux/include/linux/bitops.h:22:24: fatal error: asm/bitops.h: No such file or directory
compilation terminated.
make: *** [netfilter/iptcrdr.o] Error 1 |
(maybe i should stop updating everything everytime something new is released..., because im feeling like im only one complaining this kind of bugs and it starts to look kinda obssesive... ) |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Tue Jul 26, 2011 8:52 am Post subject: |
|
|
I guess Code: | -I/usr/src/linux/include | is forbidden with linux 3.0...
Thank you for the report, that is useful, because I don't have time to do such testing. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
GurliGebis
Joined: 16 Apr 2009 Posts: 35
|
Posted: Wed Jul 27, 2011 9:24 pm Post subject: |
|
|
SoLoR, you are not the only one obsessive about updating your system ;o)
I'll bump it in Gentoo, and make it block on 3.0 until we have a fix. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Wed Jul 27, 2011 10:22 pm Post subject: |
|
|
@solor : What about removing the -I/usr/src/linux/include ???
Code: | Index: Makefile.linux
===================================================================
RCS file: /usr/local/cvsroot/miniupnp/miniupnpd/Makefile.linux,v
retrieving revision 1.59
diff -u -r1.59 Makefile.linux
--- Makefile.linux 25 Jul 2011 16:04:54 -0000 1.59
+++ Makefile.linux 27 Jul 2011 22:21:14 -0000
@@ -48,7 +48,7 @@
# see http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=1618
# and http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=2183
LIBS ?= -lip4tc
-CFLAGS := -I/usr/src/linux/include -DIPTABLES_143 $(CFLAGS)
+CFLAGS := -DIPTABLES_143 $(CFLAGS)
endif
ARCH ?= $(shell uname -m | grep -q "x86_64" && echo 64)
|
_________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
SoLoR
Joined: 30 May 2009 Posts: 36
|
Posted: Thu Jul 28, 2011 8:26 am Post subject: |
|
|
miniupnp wrote: | @solor : What about removing the -I/usr/src/linux/include ???
|
no go...
Code: | mih miniupnpd-1.6 # make
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o miniupnpd.o miniupnpd.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnphttp.o upnphttp.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpdescgen.o upnpdescgen.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpsoap.o upnpsoap.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpreplyparse.o upnpreplyparse.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o minixml.o minixml.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpredirect.o upnpredirect.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o getifaddr.o getifaddr.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o daemonize.o daemonize.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpglobalvars.o upnpglobalvars.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o options.o options.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnppermissions.o upnppermissions.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o minissdp.o minissdp.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o natpmp.o natpmp.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnpevents.o upnpevents.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o upnputils.o upnputils.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o getconnstatus.o getconnstatus.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o linux/getifstats.o linux/getifstats.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o linux/ifacewatcher.o linux/ifacewatcher.c
cc -DIPTABLES_143 -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes -c -o netfilter/iptcrdr.o netfilter/iptcrdr.c
netfilter/iptcrdr.c:32:34: fatal error: net/netfilter/nf_nat.h: No such file or directory
compilation terminated.
make: *** [netfilter/iptcrdr.o] Error 1
mih miniupnpd-1.6 # locate nf_nat.h
/usr/src/linux-3.0-gentoo/include/net/netfilter/nf_nat.h |
problem is that linux-headers in /usr/include/linux does not have net/netfilter/nf_nat.h, i was already wondering in the past if this is somehow gentoo specific or its like that on other distros as well, because if its gentoo specific then i can go report bug there... |
|
Back to top |
|
|
SoLoR
Joined: 30 May 2009 Posts: 36
|
Posted: Thu Jul 28, 2011 8:29 am Post subject: |
|
|
This is from gentoo bugs about 1.6:
Code: | FYI, compile fails with linux-3.0, but its okay for < linux-3.0. Its looking
for asm/bitops.h which is gone in 3.0 --- but I'll produce a patch when we
cross this bridge. |
ill be following that topic and report if he figures out anything.... |
|
Back to top |
|
|
GurliGebis
Joined: 16 Apr 2009 Posts: 35
|
Posted: Thu Jul 28, 2011 9:42 am Post subject: |
|
|
Maybe the User space programs section here have a solution that might be worth looking into? (Including the headers directly in the miniupnpd tarball)
http://kernelnewbies.org/KernelHeaders |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Thu Jul 28, 2011 6:46 pm Post subject: |
|
|
On debian, I get the net/netfilter/*.h files from the iptables-x.x.x sources package... _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
GurliGebis
Joined: 16 Apr 2009 Posts: 35
|
Posted: Fri Jul 29, 2011 4:52 am Post subject: |
|
|
Hmm, so you suggest downloading the iptables source together with the miniupnpd source, extract both, and copy the headers from iptables over into the netfilter subdirectory of the miniupnpd source? |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Fri Jul 29, 2011 6:58 am Post subject: |
|
|
GurliGebis wrote: | Hmm, so you suggest downloading the iptables source together with the miniupnpd source, extract both, and copy the headers from iptables over into the netfilter subdirectory of the miniupnpd source? |
some of the headers are build at configure or compile time in iptables...
What I do is building iptables from sources and directly using the headers and library from that, using IPTABLESPATH=/xxx/iptables-1.x.x make -f Makefile.linux.
I've never tried to install the headers from iptables with make install. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
GurliGebis
Joined: 16 Apr 2009 Posts: 35
|
Posted: Fri Jul 29, 2011 7:53 am Post subject: |
|
|
Hmm, that is not going to work here
Iptables is installed by it's own package, so I cannot install it as part of miniupnpd.
Do you think it would be possible for you to include the needed headers in your tarball? (I know this is how some other packages does, but I'm not sure if it would work in this case) |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Fri Jul 29, 2011 8:05 am Post subject: |
|
|
GurliGebis wrote: | Hmm, that is not going to work here
Iptables is installed by it's own package, so I cannot install it as part of miniupnpd.
Do you think it would be possible for you to include the needed headers in your tarball? (I know this is how some other packages does, but I'm not sure if it would work in this case) |
I dont think that would be wise... I dont know which version of netfilter/iptables for your system !
Maybe the gentoo package can include the right netfilter header _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
GurliGebis
Joined: 16 Apr 2009 Posts: 35
|
Posted: Fri Jul 29, 2011 8:50 am Post subject: |
|
|
miniupnp wrote: | Do you think it would be possible for you to include the needed headers in your tarball? (I know this is how some other packages does, but I'm not sure if it would work in this case) |
I've seems to have found a hack/workaround - copying the two iptables headers to /usr/include/net/netfilter and changing the makefile to use /usr/include makes it build.
Now I just need to get the iptables maintainers in Gentoo to copy those files in when iptables is installed. |
|
Back to top |
|
|
|