Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have been trying to install IPTables::IPv4 in order to use linblock.pl but I get the following output. Any ideas?
Code:
IPv4.xs: In function âXS_IPTables__IPv4__Table_set_policyâ:
IPv4.xs:329: warning: dereferencing type-punned pointer will break strict-aliasing rules
IPv4.xs: In function âXS_IPTables__IPv4__Table_get_referencesâ:
IPv4.xs:379: warning: pointer targets in passing argument 1 of âiptc_get_referencesâ differ in signedness
packer.c: In function âipt_do_packâ:
packer.c:407: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from libip4tc.c:116:
libiptc.c: In function âiptc_initâ:
libiptc.c:312: warning: pointer targets in passing argument 5 of âgetsockoptâ differ in signedness
libip4tc.c: In function âis_sameâ:
libip4tc.c:226: warning: passing argument 1 of âipt_get_targetâ discards qualifiers from pointer target type
libip4tc.c:227: warning: passing argument 1 of âipt_get_targetâ discards qualifiers from pointer target type
In file included from libip6tc.c:111:
libiptc.c: In function âip6tc_initâ:
libiptc.c:312: warning: pointer targets in passing argument 5 of âgetsockoptâ differ in signedness
libip6tc.c: In function âis_sameâ:
libip6tc.c:258: warning: passing argument 1 of âip6t_get_targetâ discards qualifiers from pointer target type
libip6tc.c:259: warning: passing argument 1 of âip6t_get_targetâ discards qualifiers from pointer target type
ar: creating libiptc.a
IPv6.xs: In function âXS_IPTables__IPv6__Table_set_policyâ:
IPv6.xs:330: warning: dereferencing type-punned pointer will break strict-aliasing rules
IPv6.xs: In function âXS_IPTables__IPv6__Table_get_referencesâ:
IPv6.xs:380: warning: pointer targets in passing argument 1 of âip6tc_get_referencesâ differ in signedness
packer.c: In function âipt_do_packâ:
packer.c:407: warning: dereferencing type-punned pointer will break strict-aliasing rules
ipt_pl_DNAT.c:11:41: error: linux/netfilter_ipv4/ip_nat.h: No such file or directory
ipt_pl_DNAT.c:20: warning: âstruct ip_nat_rangeâ declared inside parameter list
ipt_pl_DNAT.c:20: warning: its scope is only this definition or declaration, which is probably not what you want
ipt_pl_DNAT.c: In function âparse_nat_rangeâ:
ipt_pl_DNAT.c:32: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:32: error: âIP_NAT_RANGE_PROTO_SPECIFIEDâ undeclared (first use in this function)
ipt_pl_DNAT.c:32: error: (Each undeclared identifier is reported only once
ipt_pl_DNAT.c:32: error: for each function it appears in.)
ipt_pl_DNAT.c:42: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:42: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:50: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:53: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:58: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:58: error: âIP_NAT_RANGE_MAP_IPSâ undeclared (first use in this function)
ipt_pl_DNAT.c:63: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:67: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:67: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:71: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:79: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: In function âparse_fieldâ:
ipt_pl_DNAT.c:110: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:112: error: invalid application of âsizeofâ to incomplete type âstruct ip_nat_rangeâ
ipt_pl_DNAT.c:115: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:115: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:116: error: invalid application of âsizeofâ to incomplete type âstruct ip_nat_rangeâ
ipt_pl_DNAT.c:119: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:125: warning: passing argument 2 of âparse_nat_rangeâ from incompatible pointer type
ipt_pl_DNAT.c:132: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:145: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:152: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: At top level:
ipt_pl_DNAT.c:160: warning: âstruct ip_nat_rangeâ declared inside parameter list
ipt_pl_DNAT.c: In function âstring_from_nat_rangeâ:
ipt_pl_DNAT.c:164: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:164: error: âIP_NAT_RANGE_MAP_IPSâ undeclared (first use in this function)
ipt_pl_DNAT.c:166: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:167: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:167: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:170: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:176: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:176: error: âIP_NAT_RANGE_PROTO_SPECIFIEDâ undeclared (first use in this function)
ipt_pl_DNAT.c:177: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:178: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:178: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:179: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: In function âget_fieldsâ:
ipt_pl_DNAT.c:203: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:208: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:209: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:212: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:213: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: At top level:
ipt_pl_DNAT.c:230: error: invalid application of âsizeofâ to incomplete type âstruct ip_nat_multi_rangeâ
ipt_pl_DNAT.c:231: error: invalid application of âsizeofâ to incomplete type âstruct ip_nat_multi_rangeâ
make[1]: *** [ipt_pl_DNAT.o] Error 1
make: *** [pure_all] Error 2
I followed the instructions on that website and my output is now as follows:
Code:
Checking if your kit is complete...
Looks good
Writing Makefile for IPTables::IPv4
cp IPv4/TableTie.pm blib/lib/IPTables/IPv4/TableTie.pm
cp IPv4/Chain.pm blib/lib/IPTables/IPv4/Chain.pm
cp IPv4.pm blib/lib/IPTables/IPv4.pm
AutoSplitting blib/lib/IPTables/IPv4.pm (blib/lib/auto/IPTables/IPv4)
cp IPv6.pm blib/lib/IPTables/IPv6.pm
AutoSplitting blib/lib/IPTables/IPv6.pm (blib/lib/auto/IPTables/IPv6)
cp IPv4/Toplevel.pm blib/lib/IPTables/IPv4/Toplevel.pm
cp IPv4/Rule.pm blib/lib/IPTables/IPv4/Rule.pm
cp IPv4/RuleList.pm blib/lib/IPTables/IPv4/RuleList.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -noprototypes -typemap /usr/sh are/perl/5.8/ExtUtils/typemap -typemap IPTables.typemap IPv4.xs > IPv4.xsc && m v IPv4.xsc IPv4.c
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" IPv4.c
IPv4.xs: In function âXS_IPTables__IPv4__Table_set_policyâ:
IPv4.xs:329: warning: dereferencing type-punned pointer will break strict-aliasi ng rules
IPv4.xs: In function âXS_IPTables__IPv4__Table_get_referencesâ:
IPv4.xs:379: warning: pointer targets in passing argument 1 of âiptc_get_referen cesâ differ in signedness
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" loader.c
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" packer.c
packer.c: In function âipt_do_packâ:
packer.c:407: warning: dereferencing type-punned pointer will break strict-alias ing rules
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" unpacker.c
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" maskgen.c
make -C libiptc/ all
make[1]: Entering directory `/home/neil/.cpan/build/IPTables-IPv4-0.98/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:
libiptc.c: In function âiptc_initâ:
libiptc.c:312: warning: pointer targets in passing argument 5 of âgetsockoptâ di ffer in signedness
libip4tc.c: In function âis_sameâ:
libip4tc.c:226: warning: passing argument 1 of âipt_get_targetâ discards qualifi ers from pointer target type
libip4tc.c:227: warning: passing argument 1 of âipt_get_targetâ discards qualifi ers from pointer target type
gcc -o libip6tc.o -c libip6tc.c -I../include -I/usr/src/linux/include -DIPTABLES _VERSION=\"1.2.8\" -O2 -Wall
In file included from libip6tc.c:111:
libiptc.c: In function âip6tc_initâ:
libiptc.c:312: warning: pointer targets in passing argument 5 of âgetsockoptâ di ffer in signedness
libip6tc.c: In function âis_sameâ:
libip6tc.c:258: warning: passing argument 1 of âip6t_get_targetâ discards qualif iers from pointer target type
libip6tc.c:259: warning: passing argument 1 of âip6t_get_targetâ discards qualif iers from pointer target type
ar r libiptc.a libip4tc.o libip6tc.o
ar: creating libiptc.a
make[1]: Leaving directory `/home/neil/.cpan/build/IPTables-IPv4-0.98/libiptc'
Running Mkbootstrap for IPTables::IPv4 ()
chmod 644 IPv4.bs
rm -f blib/arch/auto/IPTables/IPv4/IPv4.so
cc -shared -L/usr/local/lib IPv4.o loader.o packer.o unpacker.o maskgen.o libip tc/libiptc.a -o blib/arch/auto/IPTables/IPv4/IPv4.so \
\
chmod 755 blib/arch/auto/IPTables/IPv4/IPv4.so
cp IPv4.bs blib/arch/auto/IPTables/IPv4/IPv4.bs
chmod 644 blib/arch/auto/IPTables/IPv4/IPv4.bs
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp -noprototypes -typemap /usr/sh are/perl/5.8/ExtUtils/typemap -typemap IPTables.typemap IPv6.xs > IPv6.xsc && m v IPv6.xsc IPv6.c
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" IPv6.c
IPv6.xs: In function âXS_IPTables__IPv6__Table_set_policyâ:
IPv6.xs:330: warning: dereferencing type-punned pointer will break strict-aliasi ng rules
IPv6.xs: In function âXS_IPTables__IPv6__Table_get_referencesâ:
IPv6.xs:380: warning: pointer targets in passing argument 1 of âip6tc_get_refere ncesâ differ in signedness
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" -DINET6 -o loader_v6.o loader.c
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" -DINET6 -o packer_v6.o packer.c
packer.c: In function âipt_do_packâ:
packer.c:407: warning: dereferencing type-punned pointer will break strict-alias ing rules
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" -DINET6 -o unpacker_v6.o unpacker.c
cc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/I PTables-IPv4\" -O2 -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/ perl/5.8/CORE" -DINET6 -o maskgen_v6.o maskgen.c
rm -f blib/arch/auto/IPTables/IPv6/IPv6.so
LD_RUN_PATH="" cc -shared -L/usr/local/lib IPv6.o loader_v6.o packer_v6.o unpac ker_v6.o maskgen_v6.o libiptc/libiptc.a -o blib/arch/auto/IPTables/IPv6/IPv6.so
chmod 755 blib/arch/auto/IPTables/IPv6/IPv6.so
Running Mkbootstrap for IPTables::IPv6 ()
chmod 644 IPv6.bs
cp IPv6.bs blib/arch/auto/IPTables/IPv6/IPv6.bs
chmod 644 blib/arch/auto/IPTables/IPv6/IPv6.bs
make -C modules/ all INSTALL_DIR=/usr/local/lib/IPTables-IPv4
make[1]: Entering directory `/home/neil/.cpan/build/IPTables-IPv4-0.98/modules'
gcc -o ipt_pl_icmp.o -c ipt_pl_icmp.c -I/usr/src/linux/include -I../include -I/u sr/lib/perl/5.8/CORE -I.. -Wall -O2 -Wundef
ld -shared -o ipt_pl_icmp.so ipt_pl_icmp.o
gcc -o ipt_pl_tcp.o -c ipt_pl_tcp.c -I/usr/src/linux/include -I../include -I/usr /lib/perl/5.8/CORE -I.. -Wall -O2 -Wundef
ld -shared -o ipt_pl_tcp.so ipt_pl_tcp.o
gcc -o ipt_pl_udp.o -c ipt_pl_udp.c -I/usr/src/linux/include -I../include -I/usr /lib/perl/5.8/CORE -I.. -Wall -O2 -Wundef
ld -shared -o ipt_pl_udp.so ipt_pl_udp.o
gcc -o ipt_pl_ah.o -c ipt_pl_ah.c -I/usr/src/linux/include -I../include -I/usr/l ib/perl/5.8/CORE -I.. -Wall -O2 -Wundef
ld -shared -o ipt_pl_ah.so ipt_pl_ah.o
gcc -o ipt_pl_esp.o -c ipt_pl_esp.c -I/usr/src/linux/include -I../include -I/usr /lib/perl/5.8/CORE -I.. -Wall -O2 -Wundef
ld -shared -o ipt_pl_esp.so ipt_pl_esp.o
gcc -o ipt_pl_DNAT.o -c ipt_pl_DNAT.c -I/usr/src/linux/include -I../include -I/u sr/lib/perl/5.8/CORE -I.. -Wall -O2 -Wundef
ipt_pl_DNAT.c:11:41: error: linux/netfilter_ipv4/ip_nat.h: No such file or direc tory
ipt_pl_DNAT.c:20: warning: âstruct ip_nat_rangeâ declared inside parameter list
ipt_pl_DNAT.c:20: warning: its scope is only this definition or declaration, whi ch is probably not what you want
ipt_pl_DNAT.c: In function âparse_nat_rangeâ:
ipt_pl_DNAT.c:32: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:32: error: âIP_NAT_RANGE_PROTO_SPECIFIEDâ undeclared (first use in this function)
ipt_pl_DNAT.c:32: error: (Each undeclared identifier is reported only once
ipt_pl_DNAT.c:32: error: for each function it appears in.)
ipt_pl_DNAT.c:42: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:42: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:50: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:53: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:58: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:58: error: âIP_NAT_RANGE_MAP_IPSâ undeclared (first use in this fu nction)
ipt_pl_DNAT.c:63: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:67: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:67: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:71: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:79: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: In function âparse_fieldâ:
ipt_pl_DNAT.c:110: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:112: error: invalid application of âsizeofâ to incomplete type âst ruct ip_nat_rangeâ
ipt_pl_DNAT.c:115: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:115: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:116: error: invalid application of âsizeofâ to incomplete type âst ruct ip_nat_rangeâ
ipt_pl_DNAT.c:119: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:125: warning: passing argument 2 of âparse_nat_rangeâ from incompa tible pointer type
ipt_pl_DNAT.c:132: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:145: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:152: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: At top level:
ipt_pl_DNAT.c:160: warning: âstruct ip_nat_rangeâ declared inside parameter list
ipt_pl_DNAT.c: In function âstring_from_nat_rangeâ:
ipt_pl_DNAT.c:164: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:164: error: âIP_NAT_RANGE_MAP_IPSâ undeclared (first use in this f unction)
ipt_pl_DNAT.c:166: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:167: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:167: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:170: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:176: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:176: error: âIP_NAT_RANGE_PROTO_SPECIFIEDâ undeclared (first use i n this function)
ipt_pl_DNAT.c:177: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:178: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:178: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:179: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: In function âget_fieldsâ:
ipt_pl_DNAT.c:203: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:208: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:209: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:212: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c:213: error: dereferencing pointer to incomplete type
ipt_pl_DNAT.c: At top level:
ipt_pl_DNAT.c:230: error: invalid application of âsizeofâ to incomplete type âst ruct ip_nat_multi_rangeâ
ipt_pl_DNAT.c:231: error: invalid application of âsizeofâ to incomplete type âst ruct ip_nat_multi_rangeâ
make[1]: *** [ipt_pl_DNAT.o] Error 1
rm ipt_pl_icmp.o ipt_pl_ah.o ipt_pl_tcp.o ipt_pl_esp.o ipt_pl_udp.o
make[1]: Leaving directory `/home/neil/.cpan/build/IPTables-IPv4-0.98/modules'
make: *** [pure_all] Error 2
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.