iptables won't compile in a debug turned on
Are you guys aware of that is in the iptables-1.3.6/Makefile if turn on debugging:
CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" -g -DDEBUG -pg -DIPTC_DEBUG the compile will fail.
MF
libiptc/libip6tc.c: In function `do_check':libiptc/libip6tc.c:284: warning: implicit declaration of function `get_chain_end'libiptc/libip6tc.c:285: warning: implicit declaration of function `get_entry'libiptc/libip6tc.c:285: error: invalid type argument of ->' libiptc/libip6tc.c:289: error: invalid type argument of ->' libiptc/libip6tc.c:308: error: invalid type argument of ->' libiptc/libip6tc.c:312: error: invalid type argument of ->' libiptc/libip6tc.c:318: error: invalid type argument of ->' libiptc/libip6tc.c:343: error: invalid type argument of ->' libiptc/libip6tc.c:349: error: invalid type argument of ->' libiptc/libip6tc.c:354: error: invalid type argument of ->' libiptc/libip6tc.c:360: error: invalid type argument of ->' libiptc/libip6tc.c:373: error: invalid type argument of ->' libiptc/libip6tc.c:384: error: invalid type argument of `->' libiptc/libip6tc.c:397: warning: assignment makes pointer from integer without a castlibiptc/libip6tc.c:410: warning: passing arg 2 of iptcb_entry2index' makes pointer from integer without a cast libiptc/libip6tc.c:411: warning: passing arg 2 of iptcb_entry2index' makes pointer from integer without a cast libiptc/libip6tc.c:418: error: request for member `size' in something not a structure or unionlibiptc/libip6tc.c:418: error: structure has no member named `new_number'libiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c:422: error: request for member `name' in something not a structure or unionlibiptc/libip6tc.c: At top level:libiptc/libip6tc.c:135: warning: 'dump_entry' defined but not used
make: *** [libiptc/libip6tc.o] Error 1
rm libiptc/libip4tc.o
Pablo Neira Ayuso
maintainerQuoted 6 lines · Mohammad Farooq
Are you guys aware of that is in the iptables-1.3.6/Makefile if turn on debugging:
CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" -g -DDEBUG -pg -DIPTC_DEBUG the compile will fail.
Quoted 8 lines
MF
libiptc/libip6tc.c: In function `do_check':libiptc/libip6tc.c:284: warning: implicit declaration of function `get_chain_end'libiptc/libip6tc.c:285: warning: implicit declaration of function `get_entry'
[...]
I didn't notice, it seems that nobody has been using it for quite some time. I'm not sure if it is worth fixing this.
Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
Quoted 16 lines · Pablo Neira Ayuso
Quoted 6 lines · Mohammad Farooq
Are you guys aware of that is in the iptables-1.3.6/Makefile if turn on debugging:
CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" -g -DDEBUG -pg -DIPTC_DEBUG the compile will fail.Quoted 8 lines
MF
libiptc/libip6tc.c: In function `do_check':libiptc/libip6tc.c:284: warning: implicit declaration of function `get_chain_end'libiptc/libip6tc.c:285: warning: implicit declaration of function `get_entry'
[...]
Quoted 3 lines
I didn't notice, it seems that nobody has been using it for quite some time. I'm not sure if it is worth fixing this.
When everything works okay, yes this fix may not be needed. I was trying to debug this problem with the u32 module that it was giving me "Invalid argument" error. In desperation every bit of information helps.
MF
Quoted 3 lines · Mohammad Farooq
When everything works okay, yes this fix may not be needed. I was trying to debug this problem with the u32 module that it was giving me "Invalid argument" error. In desperation every bit of information helps.
Only enable the "-g -DDEBUG -pg" debug options - not the last one.
Phil
Quoted 18 lines · Pablo Neira Ayuso
Quoted 6 lines · Mohammad Farooq
Are you guys aware of that is in the iptables-1.3.6/Makefile if turn on debugging:
CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -Iinclude/ -DIPTABLES_VERSION=\"$(IPTABLES_VERSION)\" -g -DDEBUG -pg -DIPTC_DEBUG the compile will fail.Quoted 8 lines
MF
libiptc/libip6tc.c: In function `do_check':libiptc/libip6tc.c:284: warning: implicit declaration of function `get_chain_end'libiptc/libip6tc.c:285: warning: implicit declaration of function `get_entry'
[...]
Quoted 2 lines
I didn't notice, it seems that nobody has been using it for quite some time. I'm not sure if it is worth fixing this.
I would certainly accept a patch to fix this, but I don't think its very important.