From: John Haxby <john.haxby@oracle.com>
To: netfilter@vger.kernel.org,
Netfilter Development Mailinglist
<netfilter-devel@vger.kernel.org>
Subject: Re: xtables problem
Date: Thu, 20 Nov 2008 15:30:59 +0000 [thread overview]
Message-ID: <492582B3.4000001@oracle.com> (raw)
In-Reply-To: <49244C11.6080808@oracle.com>
John Haxby wrote:
>
> $ ./configure --with-kbuild=/lib/modules/2.6.27.6/build
> $ make
> ...
> CC libxt_CHAOS.oo
> CCLD libxt_CHAOS.so
> libxt_CHAOS.oo: In function `_init':
> /home/jch/rpmbuild/BUILD/xtables-addons-1.6/extensions/libxt_CHAOS.c:112:
> multiple definition of `_init'
> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../lib64/crti.o:(.init+0x0):
> first defined here
> collect2: ld returned 1 exit status
You can go off a distro, you really can:
* Mon Feb 11 2008 Thomas Woerner <twoerner@redhat.com> 1.4.0-1
- new version 1.4.0
- fixed condrestart (rhbz#428148)
- report the module in rmmod_r if there is an error
- use nf_ext_init instead of my_init for extension constructors
The description is possibly a little wrong because the upshot is that in
<xtables.h> "_INIT" and the subsequent definition of "_init" are
replaced with "NF_EXT_INIT" and "nf_ext_init" respectively. Neither
Google nor Red Hat's bugzilla offer any readily findable explanation of
this all I found was quite a few copies of the same comment in various
different RPMs.
The only thing that springs to mind is that variables and C-preprocessor
names whose names begin with "_" are reserved by C and you shouldn't use
them.
If Thomas is listening, can you shed any light?
Would it not be nice, as well, if iptables and xtables could come to an
agreement over what is the right thing to do. I'm surely not the first
person to come unstuck with this.
Right, back to building an RPM from this thing.
jch
next parent reply other threads:[~2008-11-20 15:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <49244C11.6080808@oracle.com>
2008-11-20 15:30 ` John Haxby [this message]
2008-11-20 16:36 ` xtables-addons problem Jan Engelhardt
2008-11-21 17:39 ` xtables problem John Haxby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=492582B3.4000001@oracle.com \
--to=john.haxby@oracle.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).