Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Both the example files netfilter_summary and netfilter_drop fail at pass-4 with the same failure:
[jlebon build]$ ../install/bin/stap -p4 ../systemtap/testsuite/systemtap.examples/network/netfilter_drop.stp -v -g TCP 1
Pass 1: parsed user script and 100 library script(s) using 210376virt/28188res/2920shr/25580data kb, in 230usr/20sys/265real ms.
Pass 2: analyzed script: 3 probe(s), 6 function(s), 5 embed(s), 1 global(s) using 447492virt/121880res/4312shr/117848data kb, in 4320usr/2630sys/10387real ms.
Pass 3: translated to C into "/tmp/stapYgNAPZ/stap_d2f6d3820a3a54c44062e8f6ceffdbb1_6411_src.c" using 447492virt/122216res/4648shr/117848data kb, in 10usr/0sys/2real ms.
/tmp/stapYgNAPZ/stap_d2f6d3820a3a54c44062e8f6ceffdbb1_6411_src.c:1200:1: error: initialization from incompatible pointer type [-Werror]
.hook = enter_netfilter_probe_0,
^
/tmp/stapYgNAPZ/stap_d2f6d3820a3a54c44062e8f6ceffdbb1_6411_src.c:1200:1: error: (near initialization for ‘netfilter_opts_0.hook’) [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapYgNAPZ/stap_d2f6d3820a3a54c44062e8f6ceffdbb1_6411_src.o] Error 1
make: *** [_module_/tmp/stapYgNAPZ] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_d2f6d3820a3a54c44062e8f6ceffdbb1_6411.ko" in 8950usr/2510sys/15507real ms.
Pass 4: compilation failed. [man error::pass4]
[jlebon build]$
Version-Release number of selected component (if applicable):
SystemTap v2.4
Also fails on git HEAD (as of today, commit release-2.4-155-g4f9203efc673).
Additional information:
This error does not occur on Fedora 19.
This change comes from a backport of the linux 3.13 upstream
commit 795aa6ef6a1aba99050735eadd0c2341b789b53b
which changes the netfilter callback function's signature:
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 61223c52414f..fef7e67f7101 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -42,7 +42,8 @@ int netfilter_init(void);
struct sk_buff;
-typedef unsigned int nf_hookfn(unsigned int hooknum,
+struct nf_hook_ops;
+typedef unsigned int nf_hookfn(const struct nf_hook_ops *ops,
struct sk_buff *skb,
const struct net_device *in,
const struct net_device *out,
We'll need a runtime/autoconf widget to detect this.
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.