by linuxdad » Dec 8th, '13, 18:50
Hmm, no sure what is going on or missing from this, does anyone have a suggestion on how to resolve this??
- Code: Select all
[root@ns IPTables-IPv4-0.98-oM4HY7]# make
make -C libiptc/ all
make[1]: Entering directory `/root/.local/share/.cpan/build/IPTables-IPv4-0.98-oM4HY7/libiptc'
gcc -o libip4tc.o -c libip4tc.c -I../include -I/usr/src/linux/include -DIPTABLES_VERSION=\"1.2.8\" -O2 -Wall
In file included from libip4tc.c:116:0:
libiptc.c:62:8: error: redefinition of âstruct xt_error_targetâ
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22:0,
from ../include/libiptc/libiptc.h:6,
from libip4tc.c:29:
/usr/include/linux/netfilter/x_tables.h:69:8: note: originally defined here
In file included from libip4tc.c:116:0:
libiptc.c: In function âiptc_initâ:
libiptc.c:312:10: warning: pointer targets in passing argument 5 of âgetsockoptâ differ in signedness [-Wpointer-sign]
In file included from /usr/include/netinet/in.h:24:0,
from /usr/include/netinet/ip.h:24,
from ../include/libiptc/ipt_kernel_headers.h:9,
from ../include/libiptc/libiptc.h:5,
from libip4tc.c:29:
/usr/include/sys/socket.h:220:12: note: expected âsocklen_t * __restrict__â but argument is of type âint *â
In file included from libip4tc.c:116:0:
libiptc.c: In function âtarget_nameâ:
libiptc.c:727:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
libiptc.c: In function âiptc_zero_counterâ:
libiptc.c:1396:16: warning: variable âeâ set but not used [-Wunused-but-set-variable]
libip4tc.c: In function âdump_entryâ:
libip4tc.c:170:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
make[1]: *** [libip4tc.o] Error 1
make[1]: Leaving directory `/root/.local/share/.cpan/build/IPTables-IPv4-0.98-oM4HY7/libiptc'
make: *** [libiptc/libiptc.a] Error 2
[root@ns IPTables-IPv4-0.98-oM4HY7]# perl Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for IPTables::IPv4
Writing MYMETA.yml and MYMETA.json
- Code: Select all
[root@ns IPTables-IPv4-0.98-oM4HY7]# make
Skip blib/lib/IPTables/IPv4/TableTie.pm (unchanged)
Skip blib/lib/IPTables/IPv4/Chain.pm (unchanged)
Skip blib/lib/IPTables/IPv4.pm (unchanged)
Skip blib/lib/IPTables/IPv6.pm (unchanged)
Skip blib/lib/IPTables/IPv4/Toplevel.pm (unchanged)
Skip blib/lib/IPTables/IPv4/Rule.pm (unchanged)
Skip blib/lib/IPTables/IPv4/RuleList.pm (unchanged)
Running Mkbootstrap for IPTables::IPv4 ()
chmod 644 IPv4.bs
gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/lib/IPTables-IPv4\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.16.3/i386-linux-thread-multi/CORE" IPv4.c
IPv4.c: In function âXS_IPTables__IPv4__Table_list_chainsâ:
IPv4.xs:78:9: warning: variable âsvâ set but not used [-Wunused-but-set-variable]
IPv4.c: In function âXS_IPTables__IPv4__Table_list_rulesâ:
IPv4.xs:97:11: warning: variable âsvâ set but not used [-Wunused-but-set-variable]
IPv4.c: In function âXS_IPTables__IPv4__Table_get_policyâ:
IPv4.xs:129:11: warning: variable âsvâ set but not used [-Wunused-but-set-variable]
IPv4.xs: In function âXS_IPTables__IPv4__Table_get_referencesâ:
IPv4.xs:379:3: warning: pointer targets in passing argument 1 of âiptc_get_referencesâ differ in signedness [-Wpointer-sign]
In file included from IPv4.xs:28:0:
include/libiptc/libiptc.h:132:5: note: expected âunsigned int *â but argument is of type âint *â
IPv4.c: In function âXS_IPTables__IPv4__Table_get_policyâ:
IPv4.xs:136:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
IPv4.xs:139:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/lib/IPTables-IPv4\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.16.3/i386-linux-thread-multi/CORE" loader.c
loader.c: In function âfind_module_intâ:
loader.c:108:11: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/lib/IPTables-IPv4\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.16.3/i386-linux-thread-multi/CORE" packer.c
packer.c: In function âipt_do_packâ:
packer.c:249:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
packer.c:310:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
packer.c:372:10: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
packer.c:542:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
packer.c:558:13: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
In file included from /usr/include/string.h:638:0,
from /usr/lib/perl5/5.16.3/i386-linux-thread-multi/CORE/perl.h:1003,
from packer.c:26:
In function âstrncpyâ,
inlined from âipt_do_packâ at packer.c:269:12:
/usr/include/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
In function âstrncpyâ,
inlined from âipt_do_packâ at packer.c:339:11:
/usr/include/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
In function âstrncpyâ,
inlined from âipt_do_packâ at packer.c:394:9:
/usr/include/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
/usr/include/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
In function âstrncpyâ,
inlined from âipt_do_packâ at packer.c:594:12:
/usr/include/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
In function âstrncpyâ,
inlined from âipt_do_packâ at packer.c:394:9:
/usr/include/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
/usr/include/bits/string3.h:120:3: warning: call to __builtin___strncpy_chk will always overflow destination buffer [enabled by default]
gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/lib/IPTables-IPv4\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.16.3/i386-linux-thread-multi/CORE" unpacker.c
unpacker.c: In function âipt_do_unpackâ:
unpacker.c:132:3: warning: value computed is not used [-Wunused-value]
unpacker.c:139:3: warning: value computed is not used [-Wunused-value]
unpacker.c:150:3: warning: value computed is not used [-Wunused-value]
unpacker.c:162:3: warning: value computed is not used [-Wunused-value]
unpacker.c:189:3: warning: value computed is not used [-Wunused-value]
unpacker.c:195:3: warning: value computed is not used [-Wunused-value]
unpacker.c:204:4: warning: value computed is not used [-Wunused-value]
unpacker.c:217:5: warning: value computed is not used [-Wunused-value]
unpacker.c:252:4: warning: value computed is not used [-Wunused-value]
unpacker.c:261:3: warning: value computed is not used [-Wunused-value]
unpacker.c:265:2: warning: value computed is not used [-Wunused-value]
unpacker.c:268:2: warning: value computed is not used [-Wunused-value]
unpacker.c:146:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:158:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:173:13: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:183:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:214:13: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:249:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:264:10: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:267:10: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c: In function âaddr_and_mask_to_svâ:
unpacker.c:92:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:95:12: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
unpacker.c:101:11: warning: ignoring return value of âasprintfâ, declared with attribute warn_unused_result [-Wunused-result]
gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/lib/IPTables-IPv4\" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -pthread -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.16.3/i386-linux-thread-multi/CORE" maskgen.c
make -C libiptc/ all
make[1]: Entering directory `/root/.local/share/.cpan/build/IPTables-IPv4-0.98-oM4HY7/libiptc'
gcc -o libip4tc.o -c libip4tc.c -I../include -I/usr/src/linux/include -DIPTABLES_VERSION=\"1.2.8\" -O2 -Wall
In file included from libip4tc.c:116:0:
libiptc.c:62:8: error: redefinition of âstruct xt_error_targetâ
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22:0,
from ../include/libiptc/libiptc.h:6,
from libip4tc.c:29:
/usr/include/linux/netfilter/x_tables.h:69:8: note: originally defined here
In file included from libip4tc.c:116:0:
libiptc.c: In function âiptc_initâ:
libiptc.c:312:10: warning: pointer targets in passing argument 5 of âgetsockoptâ differ in signedness [-Wpointer-sign]
In file included from /usr/include/netinet/in.h:24:0,
from /usr/include/netinet/ip.h:24,
from ../include/libiptc/ipt_kernel_headers.h:9,
from ../include/libiptc/libiptc.h:5,
from libip4tc.c:29:
/usr/include/sys/socket.h:220:12: note: expected âsocklen_t * __restrict__â but argument is of type âint *â
In file included from libip4tc.c:116:0:
libiptc.c: In function âtarget_nameâ:
libiptc.c:727:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
libiptc.c: In function âiptc_zero_counterâ:
libiptc.c:1396:16: warning: variable âeâ set but not used [-Wunused-but-set-variable]
libip4tc.c: In function âdump_entryâ:
libip4tc.c:170:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
make[1]: *** [libip4tc.o] Error 1
make[1]: Leaving directory `/root/.local/share/.cpan/build/IPTables-IPv4-0.98-oM4HY7/libiptc'
make: *** [libiptc/libiptc.a] Error 2
Last edited by
doktor5000 on Dec 8th, '13, 19:30, edited 1 time in total.
Reason: added code tags, to improve on clarity