[Bug 46] New: ..patch-o-matic: nfnetlink_conntrack.c or -.h ... compile failure:

bugzilla-daemon@netfilter.org bugzilla-daemon@netfilter.org
Sat, 08 Feb 2003 06:27:56 +0100


https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=46

           Summary: ..patch-o-matic: nfnetlink_conntrack.c or -.h ...
                    compile failure:
           Product: netfilter/iptables
           Version: patch-o-matic
          Platform: i386
        OS/Version: RedHat Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: connection tracking
        AssignedTo: laforge@netfilter.org
        ReportedBy: arnt@c2i.net
                CC: netfilter-buglog@lists.netfilter.org


Hi,  
 
..patch-o-matic: bughunt to try fix nfnetlink_conntrack.c || -.h: 
I _think_ I've found the root cause of this compile failure: 
 
cc1: warning: -malign-functions is obsolete, use -falign-functions 
In file included from nfnetlink_conntrack.c:44: 
/usr/src/linux-2.4.18-24.8.0/include/linux/nfnetlink_conntrack.h:61: 
 field `proto' has incomplete type 
/usr/src/linux-2.4.18-24.8.0/include/linux/nfnetlink_conntrack.h:68: 
field `help' has incomplete type  
 
nfnetlink_conntrack.c: In function `ctnetlink_fill_info':  
nfnetlink_conntrack.c:107: dereferencing pointer to incomplete type  
nfnetlink_conntrack.c:107: dereferencing pointer to incomplete type... 
 
...etc. 
 
..root cause here: head -n 70 \ 
/usr/src/linux-2.4.18-24.8.0/include/linux/nfnetlink_conntrack.h \  
| tail-n 15 
 
}; 
#endif /* CONFIG_IP_NF_NAT_NEEDED */ 
 
struct cta_proto { 
        unsigned char num_proto;        /* Protocol number IPPROTO_X */ 
        union ip_conntrack_proto proto; 
}; 
 
struct cta_help { 
        struct ip_conntrack_tuple tuple; 
        struct ip_conntrack_tuple mask; 
        char name[31];                  /* name of conntrack helper */ 
        union ip_conntrack_help help; 
}; 
 
 
..I'm a C newbie: "proto" and "help":  How _should_ these look??? 
 
 
..failing my diagnosis above, I added vertical space for  
readability of the compile failure output:" 
 
In file included from nfnetlink_conntrack.c:44:  
 
/usr/src/linux-2.4.18-24.8.0/include/linux/nfnetlink_conntrack.h:61: 
field `proto' has incomplete type 
 
/usr/src/linux-2.4.18-24.8.0/include/linux/nfnetlink_conntrack.h:68: 
field `help' has incomplete type  
nfnetlink_conntrack.c: In function `ctnetlink_fill_info':" 
 
make -C ipv4/netfilter modules 
 
make[2]: Entering directory  
`/usr/src/linux-2.4.18-24.8.0/net/ipv4/netfilter'  
 
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-24.8.0/include -Wall 
-Wstrict-prototypes-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer-pipe -mpreferred-stack-boundary=2 -march=i686 
-malign-functions=4 -DMODULE -DMODVERSIONS -include  
/usr/src/linux-2.4.18-24.8.0/include/linux/modversions.h  -nostdinc -I 
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include  
-DKBUILD_BASENAME=nfnetlink  -DEXPORT_SYMTAB -c nfnetlink.c  
 
cc1: warning: -malign-functions is obsolete, use -falign-functions 
 
nfnetlink.c: In function `nfnetlink_subsys_register_Re3f406ed': 
 
nfnetlink.c:85: warning: concatenation of string literals with 
__FUNCTION__ is deprecated nfnetlink.c: In function 
`nfnetlink_subsys_unregister_Re44f401f':  
 
nfnetlink.c:97: warning: concatenation of string literals with 
__FUNCTION__ is deprecated  
 
nfnetlink.c: In function `nfnetlink_find_client':  
nfnetlink.c:123: warning: concatenation of string literals with 
__FUNCTION__ is deprecated  
 
nfnetlink.c: In function`nfnetlink_rcv_msg':  
nfnetlink.c:217: warning: concatenation of string 
literals with__FUNCTION__ is deprecated nfnetlink.c:221: warning: 
concatenation of string literals with __FUNCTION__ is deprecated 
nfnetlink.c:228: warning: concatenation of string literals with 
__FUNCTION__ is deprecated nfnetlink.c:234: warning: concatenation of 
string literals with __FUNCTION__ is deprecated nfnetlink.c:240: 
warning: concatenation of string literals with __FUNCTION__ is 
deprecated nfnetlink.c:246: warning: concatenation of string literals 
with __FUNCTION__ is deprecated  
 
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-24.8.0/include 
-Wall-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing  
-fno-common-fomit-frame-pointer-pipe -mpreferred-stack-boundary=2 
-march=i686-malign-functions=4 -DMODULE -DMODVERSIONS 
-include/usr/src/linux-2.4.18-24.8.0/include/linux/modversions.h  
-nostdinc -I/usr/lib/gcc-lib/i386-redhat-linux/3.2/include 
-DKBUILD_BASENAME=nfnetlink_conntrack  -c -o nfnetlink_conntrack.o 
nfnetlink_conntrack.c  
 
cc1: warning: -malign-functions is obsolete, use 
-falign-functions In file included from nfnetlink_conntrack.c:44: 
 
/usr/src/linux-2.4.18-24.8.0/include/linux/nfnetlink_conntrack.h:61: 
field `proto' has incomplete type 
 
/usr/src/linux-2.4.18-24.8.0/include/linux/nfnetlink_conntrack.h:68: 
field `help' has incomplete type  
 
nfnetlink_conntrack.c: In function `ctnetlink_fill_info':  
 
nfnetlink_conntrack.c:107: dereferencing pointer to incomplete type  
 
nfnetlink_conntrack.c:107: dereferencing pointer to incomplete type  
 
nfnetlink_conntrack.c:109: dereferencing pointer to incomplete type  
 
nfnetlink_conntrack.c:109: dereferencing pointer to incomplete type  
 
nfnetlink_conntrack.c:110: dereferencing pointer to incomplete type  
 
nfnetlink_conntrack.c: In function 
`ctnetlink_del_conntrack': nfnetlink_conntrack.c:222: warning: 
concatenation of string literals with __FUNCTION__ is deprecated 
 
nfnetlink_conntrack.c:233: warning: concatenation of string literals 
with __FUNCTION__ is deprecated nfnetlink_conntrack.c:240: warning: 
concatenation of string literals with __FUNCTION__ is deprecated 
 
nfnetlink_conntrack.c:241: warning: concatenation of string literals 
with __FUNCTION__ is deprecated nfnetlink_conntrack.c:245: warning: 
concatenation of string literals with __FUNCTION__ is deprecated 
 
nfnetlink_conntrack.c: In function `ctnetlink_done': 
 
nfnetlink_conntrack.c:253: warning: concatenation of string literals 
with __FUNCTION__ is deprecated nfnetlink_conntrack.c: In function 
`ctnetlink_get_conntrack': nfnetlink_conntrack.c:319: warning: 
concatenation of string literals with __FUNCTION__ is deprecated 
 
nfnetlink_conntrack.c:328: warning: concatenation of string literals 
with __FUNCTION__ is deprecated  
 
nfnetlink_conntrack.c:369: warning: 
implicit declaration of function `ip_conntrack_put' 
 
nfnetlink_conntrack.c: In function `ctnetlink_exp_fill_info': 
 
nfnetlink_conntrack.c:416: structure has no member named `seq' 
 
nfnetlink_conntrack.c:418: sizeof applied to an incomplete type 
 
nfnetlink_conntrack.c:418: sizeof applied to an incomplete type 
 
nfnetlink_conntrack.c:418: structure has no member named `help' 
 
nfnetlink_conntrack.c: In function `ctnetlink_del_expect': 
 
nfnetlink_conntrack.c:504: warning: implicit declaration of function 
`ip_conntrack_expect_find_get'  
 
nfnetlink_conntrack.c:504: warning: 
assignment makes pointer from integer without a cast 
 
nfnetlink_conntrack.c:509: warning: implicit declaration of function 
`ip_conntrack_unexpect_related_R5963f8a1' nfnetlink_conntrack.c:511: 
warning: implicit declaration of function `ip_conntrack_expect_put' 
 
nfnetlink_conntrack.c: In function `ctnetlink_exp_dump_table': 
 
nfnetlink_conntrack.c:538: warning: concatenation of string literals 
with __FUNCTION__ is deprecated nfnetlink_conntrack.c:544: 
`ip_conntrack_expect_list' undeclared (first use in this function) 
nfnetlink_conntrack.c:544: (Each undeclared identifier is reported only 
once nfnetlink_conntrack.c:544: for each function it appears in.) 
 
nfnetlink_conntrack.c:548: warning: concatenation of string literals 
with __FUNCTION__ is deprecated nfnetlink_conntrack.c: In function 
`ctnetlink_get_expect': nfnetlink_conntrack.c:564: warning: 
concatenation of string literals with __FUNCTION__ is deprecated 
 
nfnetlink_conntrack.c:573: warning: concatenation of string literals 
with __FUNCTION__ is deprecated nfnetlink_conntrack.c:597: warning: 
assignment makes pointer from integer without a cast 
 
nfnetlink_conntrack.c: In function `ctnetlink_init': 
 
nfnetlink_conntrack.c:708: warning: label `err_unreg_subsys' defined but 
not used  
nfnetlink_conntrack.c: At top level: 
 
nfnetlink_conntrack.c:167: warning: `ctnetlink_create' defined but not 
used  
 
nfnetlink_conntrack.c:457: warning: `ctnetlink_exp_create' defined but 
not used  
 
make[2]: *** [nfnetlink_conntrack.o] Error 1 
 
make[2]: Leaving directory  
`/usr/src/linux-2.4.18-24.8.0/net/ipv4/netfilter'  
 
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2  
 
make[1]: Leaving directory `/usr/src/linux-2.4.18-24.8.0/net'  
 
make: *** [_mod_net] Error 2 
[root@pptp linux-2.4.18-24.8.0]# ". 
 
--  
..med vennlig hilsen = with Kind Regards from Arnt... ;-) 
...with a number of polar bear hunters in his ancestry... 
  Scenarios always come in sets of three:  
  best case, worst case, and just in case.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.