This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/14240] New: on RHEL5 (2.6.18-308.el5), netfilter probe cause compilation to fail


http://sourceware.org/bugzilla/show_bug.cgi?id=14240

             Bug #: 14240
           Summary: on RHEL5 (2.6.18-308.el5), netfilter probe cause
                    compilation to fail
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap@sourceware.org
        ReportedBy: dsmith@redhat.com
    Classification: Unclassified


netfilter probe support fails on RHEL5:

============
stap -vp4 ../src/testsuite/buildok/netfilter01.stp 
Pass 1: parsed user script and 85 library script(s) using
146536virt/23448res/2852shr/21212data kb, in 290usr/20sys/318real ms.
Pass 2: analyzed script: 3 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 147064virt/24172res/3080shr/21740data kb, in 10usr/10sys/10real ms.
Pass 3: translated to C into
"/tmp/stapIhDBjQ/stap_96bcaef2f646a1f06b106932d262a340_1010_src.c" using
147064virt/24436res/3316shr/21740data kb, in 0usr/0sys/1real ms.
cc1: warnings being treated as errors
/tmp/stapIhDBjQ/stap_96bcaef2f646a1f06b106932d262a340_1010_src.c:295: warning:
initialization from incompatible pointer type
/tmp/stapIhDBjQ/stap_96bcaef2f646a1f06b106932d262a340_1010_src.c:420: warning:
initialization from incompatible pointer type
/tmp/stapIhDBjQ/stap_96bcaef2f646a1f06b106932d262a340_1010_src.c:545: warning:
initialization from incompatible pointer type
make[1]: *** [/tmp/stapIhDBjQ/stap_96bcaef2f646a1f06b106932d262a340_1010_src.o]
Error 1
make: *** [_module_/tmp/stapIhDBjQ] Error 2
WARNING: env exited with status: 2
Pass 4: compiled C into "stap_96bcaef2f646a1f06b106932d262a340_1010.ko" in
590usr/150sys/733real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.
============

>From looking at <linux/netfilter.h>, it looks like RHEL5 has:

typedef unsigned int nf_hookfn(unsigned int hooknum,
                               struct sk_buff **skb,
                               const struct net_device *in,
                               const struct net_device *out,
                               int (*okfn)(struct sk_buff *));

while more current kernels have:

typedef unsigned int nf_hookfn(unsigned int hooknum,
                               struct sk_buff *skb,
                               const struct net_device *in,
                               const struct net_device *out,
                               int (*okfn)(struct sk_buff *));

Notice that the 2nd parameter is different.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]