miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] Problems compling iptables

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
dequan



Joined: 10 Apr 2010
Posts: 10

PostPosted: Wed May 18, 2011 11:40 pm    Post subject: [SOLVED] Problems compling iptables Reply with quote

I know this isn't exactly to do with miniupnd, but I'm trying to build iptables 1.4.4 (same version as in Lucid 10.04 LTS) and keep coming up against a compile error relating to libxt_connmark.
Code:
./configure  --enable-devel --disable-ipv6  --enable-libipq   --enable-static
make

Returns:
Code:
bob@bob:~/iptables-1.4.4# make
make  all-recursive
make[1]: Entering directory `/home/bob/iptables-1.4.4'
Making all in extensions
make[2]: Entering directory `/home/bob/iptables-1.4.4/extensions'
  CC       libxt_CLASSIFY.o
  CC       libxt_cluster.o
  CC       libxt_comment.o
  CC       libxt_connbytes.o
  CC       libxt_connlimit.o
  CC       libxt_connmark.o
libxt_connmark.c: In function ‚connmark_parse‚:
libxt_connmark.c:87: error: dereferencing pointer to incomplete type
libxt_connmark.c:88: error: dereferencing pointer to incomplete type
libxt_connmark.c:91: error: dereferencing pointer to incomplete type
libxt_connmark.c:96: error: dereferencing pointer to incomplete type
libxt_connmark.c: In function ‚connmark_print‚:
libxt_connmark.c:127: error: dereferencing pointer to incomplete type
libxt_connmark.c:129: error: dereferencing pointer to incomplete type
libxt_connmark.c:129: error: dereferencing pointer to incomplete type
libxt_connmark.c: In function ‚connmark_save‚:
libxt_connmark.c:147: error: dereferencing pointer to incomplete type
libxt_connmark.c:151: error: dereferencing pointer to incomplete type
libxt_connmark.c:151: error: dereferencing pointer to incomplete type
libxt_connmark.c: At top level:
libxt_connmark.c:171: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:172: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:186: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:187: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
make[2]: *** [libxt_connmark.o] Error 1
make[2]: Leaving directory `/home/bob/iptables-1.4.4/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bob/iptables-1.4.4'
make: *** [all] Error 2

This is a fresh Ubuntu 10.04 LTS server install and googling isn't even helping much. It would seem to indicate that conntrack may not be enabled on the kernel, but modprobe shows conntrack and connmark, and running:
Code:
cat /boot/config-2.6.32-31-generic-pae | grep CONFIG_NF_CONN

Returns:
Code:
CONFIG_NF_CONNTRACK=m
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_SECMARK=y
CONFIG_NF_CONNTRACK_EVENTS=y
CONFIG_NF_CONNTRACK_AMANDA=m
CONFIG_NF_CONNTRACK_FTP=m
CONFIG_NF_CONNTRACK_H323=m
CONFIG_NF_CONNTRACK_IRC=m
CONFIG_NF_CONNTRACK_NETBIOS_NS=m
CONFIG_NF_CONNTRACK_PPTP=m
CONFIG_NF_CONNTRACK_SANE=m
CONFIG_NF_CONNTRACK_SIP=m
CONFIG_NF_CONNTRACK_TFTP=m
CONFIG_NF_CONNTRACK_IPV4=m
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
CONFIG_NF_CONNTRACK_IPV6=m

which seems to show the kernal has been compiled with it enabled.. as its the kernel shipped with Ubuntu -- not custom built.
Any ideas?


Last edited by dequan on Thu May 19, 2011 2:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
dequan



Joined: 10 Apr 2010
Posts: 10

PostPosted: Thu May 19, 2011 2:02 pm    Post subject: Re: Problems compling iptables Reply with quote

After trying to compile a few different versions of iptables, I finally found one that was successful.

SPOILER
For those who can't be bothered reading the results below, only iptables-1.4.7 would compile on my fresh install (and updated) Ubuntu Server 10.04 LTS, running the 2.6.32-31 kernel and default iptables version of 1.4.4. Hopefully someone else who may come across this problem can be helped by these results.

My results for different versions were as follows.

iptables-1.4.4 (default installed on Ubuntu Lucid 10.04 LTS server), supports all new features of the 2.6.30 kernel:
Code:
bob@bob:~/iptables-1.4.4# make
make  all-recursive
make[1]: Entering directory `/home/bob/iptables-1.4.4'
Making all in extensions
make[2]: Entering directory `/home/bob/iptables-1.4.4/extensions'
  CC       libxt_CLASSIFY.o
  CC       libxt_cluster.o
  CC       libxt_comment.o
  CC       libxt_connbytes.o
  CC       libxt_connlimit.o
  CC       libxt_connmark.o
libxt_connmark.c: In function ‚connmark_parse‚:
libxt_connmark.c:87: error: dereferencing pointer to incomplete type
libxt_connmark.c:88: error: dereferencing pointer to incomplete type
libxt_connmark.c:91: error: dereferencing pointer to incomplete type
libxt_connmark.c:96: error: dereferencing pointer to incomplete type
libxt_connmark.c: In function ‚connmark_print‚:
libxt_connmark.c:127: error: dereferencing pointer to incomplete type
libxt_connmark.c:129: error: dereferencing pointer to incomplete type
libxt_connmark.c:129: error: dereferencing pointer to incomplete type
libxt_connmark.c: In function ‚connmark_save‚:
libxt_connmark.c:147: error: dereferencing pointer to incomplete type
libxt_connmark.c:151: error: dereferencing pointer to incomplete type
libxt_connmark.c:151: error: dereferencing pointer to incomplete type
libxt_connmark.c: At top level:
libxt_connmark.c:171: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:172: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:186: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:187: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
make[2]: *** [libxt_connmark.o] Error 1
make[2]: Leaving directory `/home/bob/iptables-1.4.4/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bob/iptables-1.4.4'
make: *** [all] Error 2


iptables-1.4-6, supports all new features of the 2.6.32 kernel
Code:
bob@bob:~/iptables-1.4.6# make
make  all-recursive
make[1]: Entering directory `/home/bob/iptables-1.4.6'
Making all in extensions
make[2]: Entering directory `/home/bob/iptables-1.4.6/extensions'
  CC       libxt_CLASSIFY.o
  CC       libxt_cluster.o
  CC       libxt_comment.o
  CC       libxt_connbytes.o
  CC       libxt_connlimit.o
  CC       libxt_connmark.o
libxt_connmark.c: In function ‚connmark_parse‚:
libxt_connmark.c:87: error: dereferencing pointer to incomplete type
libxt_connmark.c:88: error: dereferencing pointer to incomplete type
libxt_connmark.c:91: error: dereferencing pointer to incomplete type
libxt_connmark.c:96: error: dereferencing pointer to incomplete type
libxt_connmark.c: In function ‚connmark_print‚:
libxt_connmark.c:127: error: dereferencing pointer to incomplete type
libxt_connmark.c:129: error: dereferencing pointer to incomplete type
libxt_connmark.c:129: error: dereferencing pointer to incomplete type
libxt_connmark.c: In function ‚connmark_save‚:
libxt_connmark.c:147: error: dereferencing pointer to incomplete type
libxt_connmark.c:151: error: dereferencing pointer to incomplete type
libxt_connmark.c:151: error: dereferencing pointer to incomplete type
libxt_connmark.c: At top level:
libxt_connmark.c:171: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:172: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:186: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
libxt_connmark.c:187: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_connmark_info‚
make[2]: *** [libxt_connmark.o] Error 1
make[2]: Leaving directory `/home/bob/iptables-1.4.6/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bob/iptables-1.4.6'
make: *** [all] Error 2


iptables-1.4.10 (latest version at time of writing), supports all new features of the 2.6.36 kernel:
Code:
bob@bob:~/iptables-1.4.10# make
make  all-recursive
make[1]: Entering directory `/home/bob/iptables-1.4.10'
Making all in extensions
make[2]: Entering directory `/home/bob/iptables-1.4.10/extensions'
  GEN      initext4.c
  CC       initext4.o
  CC       libxt_CHECKSUM.o
  CC       libxt_CLASSIFY.o
  CC       libxt_cluster.o
  CC       libxt_comment.o
  CC       libxt_connbytes.o
  CC       libxt_connlimit.o
  CC       libxt_connmark.o
  CC       libxt_CONNSECMARK.o
  CC       libxt_conntrack.o
  CC       libxt_cpu.o
  CC       libxt_CT.o
  CC       libxt_dccp.o
  CC       libxt_DSCP.o
  CC       libxt_esp.o
  CC       libxt_hashlimit.o
  CC       libxt_helper.o
  CC       libxt_IDLETIMER.o
  CC       libxt_iprange.o
  CC       libxt_ipvs.o
  CC       libxt_LED.o
  CC       libxt_length.o
  CC       libxt_limit.o
  CC       libxt_mac.o
  CC       libxt_MARK.o
libxt_MARK.c: In function ‚mark_tg_parse‚:
libxt_MARK.c:163: error: dereferencing pointer to incomplete type
libxt_MARK.c:164: error: dereferencing pointer to incomplete type
libxt_MARK.c:167: error: dereferencing pointer to incomplete type
libxt_MARK.c:175: error: dereferencing pointer to incomplete type
libxt_MARK.c:176: error: dereferencing pointer to incomplete type
libxt_MARK.c:184: error: dereferencing pointer to incomplete type
libxt_MARK.c:185: error: dereferencing pointer to incomplete type
libxt_MARK.c:193: error: dereferencing pointer to incomplete type
libxt_MARK.c:194: error: dereferencing pointer to incomplete type
libxt_MARK.c: In function ‚mark_tg_print‚:
libxt_MARK.c:261: error: dereferencing pointer to incomplete type
libxt_MARK.c:262: error: dereferencing pointer to incomplete type
libxt_MARK.c:263: error: dereferencing pointer to incomplete type
libxt_MARK.c:263: error: dereferencing pointer to incomplete type
libxt_MARK.c:264: error: dereferencing pointer to incomplete type
libxt_MARK.c:265: error: dereferencing pointer to incomplete type
libxt_MARK.c:266: error: dereferencing pointer to incomplete type
libxt_MARK.c:267: error: dereferencing pointer to incomplete type
libxt_MARK.c:268: error: dereferencing pointer to incomplete type
libxt_MARK.c:270: error: dereferencing pointer to incomplete type
libxt_MARK.c:270: error: dereferencing pointer to incomplete type
libxt_MARK.c: In function ‚mark_tg_save‚:
libxt_MARK.c:296: error: dereferencing pointer to incomplete type
libxt_MARK.c:296: error: dereferencing pointer to incomplete type
libxt_MARK.c: At top level:
libxt_MARK.c:333: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_mark_tginfo2‚
libxt_MARK.c:333: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_mark_tginfo2‚
libxt_MARK.c:333: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_mark_tginfo2‚
libxt_MARK.c:334: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_mark_tginfo2‚
libxt_MARK.c:334: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_mark_tginfo2‚
libxt_MARK.c:334: error: invalid application of ‚sizeof‚ to incomplete type ‚struct xt_mark_tginfo2‚
make[2]: *** [libxt_MARK.o] Error 1
make[2]: Leaving directory `/home/bob/iptables-1.4.10/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bob/iptables-1.4.10'
make: *** [all] Error 2


iptables-1.4.7, supports all new features of the 2.6.33 kernel:
Code:
Success!


In summary, iptables-1.4.4 may have failed because it doesn't contain all the necessary requirements for my kernel of 2.6.32-31 (the default -- after an update -- on Ubuntu Server 10.04 LTS). However, I would have expected iptables-1.4.6 to support all features in the 2.6.32 kernel -- obviously not. Again, I would also have expected iptables-1.4.10 to compile as it supports all future kernel features, or maybe that is why it failed. As to why only iptables-1.4.7 would compile, I'm not sure...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.