* [PATCH] iptables: Link libext_arpt to static build
@ 2015-11-23 10:18 Daniel Wagner
2015-11-25 19:45 ` Pablo Neira Ayuso
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Wagner @ 2015-11-23 10:18 UTC (permalink / raw)
To: netfilter-devel; +Cc: Daniel Wagner
The libext_arpt is not included when linking the static version of
iptables.
Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
---
Hi,
I had some troubles getting a static version of iptables. Not sure
if I fixed it correctly. Anyway I am able to proceed with testing.
cheers,
daniel
iptables/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iptables/Makefile.am b/iptables/Makefile.am
index 132fe5f..29e7fe1 100644
--- a/iptables/Makefile.am
+++ b/iptables/Makefile.am
@@ -41,7 +41,7 @@ xtables_compat_multi_SOURCES += xtables-save.c xtables-restore.c \
xtables-arp-standalone.c xtables-arp.c \
getethertype.c nft-bridge.c \
xtables-eb-standalone.c xtables-eb.c
-xtables_compat_multi_LDADD += ${libmnl_LIBS} ${libnftnl_LIBS} ../extensions/libext4.a ../extensions/libext6.a ../extensions/libext_ebt.a
+xtables_compat_multi_LDADD += ${libmnl_LIBS} ${libnftnl_LIBS} ../extensions/libext4.a ../extensions/libext6.a ../extensions/libext_ebt.a ../extensions/libext_arpt.a
# yacc and lex generate dirty code
xtables_compat_multi-xtables-config-parser.o xtables_compat_multi-xtables-config-syntax.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-function-declaration -Wno-nested-externs -Wno-undef -Wno-redundant-decls
xtables_compat_multi_SOURCES += xshared.c
--
2.4.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] iptables: Link libext_arpt to static build
2015-11-23 10:18 [PATCH] iptables: Link libext_arpt to static build Daniel Wagner
@ 2015-11-25 19:45 ` Pablo Neira Ayuso
2015-11-26 6:42 ` Daniel Wagner
0 siblings, 1 reply; 4+ messages in thread
From: Pablo Neira Ayuso @ 2015-11-25 19:45 UTC (permalink / raw)
To: Daniel Wagner; +Cc: netfilter-devel
On Mon, Nov 23, 2015 at 11:18:47AM +0100, Daniel Wagner wrote:
> The libext_arpt is not included when linking the static version of
> iptables.
>
> Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
> ---
> Hi,
>
> I had some troubles getting a static version of iptables. Not sure
> if I fixed it correctly. Anyway I am able to proceed with testing.
Could you tell me what options you're using to compile iptables so I
can try to reproduce it?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iptables: Link libext_arpt to static build
2015-11-25 19:45 ` Pablo Neira Ayuso
@ 2015-11-26 6:42 ` Daniel Wagner
2015-12-09 12:53 ` Pablo Neira Ayuso
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Wagner @ 2015-11-26 6:42 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter-devel
On 11/25/2015 08:45 PM, Pablo Neira Ayuso wrote:
> On Mon, Nov 23, 2015 at 11:18:47AM +0100, Daniel Wagner wrote:
>> The libext_arpt is not included when linking the static version of
>> iptables.
>>
>> Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
>> ---
>> Hi,
>>
>> I had some troubles getting a static version of iptables. Not sure
>> if I fixed it correctly. Anyway I am able to proceed with testing.
>
> Could you tell me what options you're using to compile iptables so I
> can try to reproduce it?
Yes, sure. I am using this simple toy script to build:
declare -a arr=("libmnl" "libnl" "libnftnl" "libnfnetlink"
"libnetfilter" "libnetfilter_acct" "libnetfilter_conntrack"
"libnetfilter_cthelper" "libnetfilter_cttimeout" "libnetfilter_queue"
"iptables")
NFPATH=/home/wagi/connman/netfilter
export PKG_CONFIG_PATH=$NFPATH/lib/pkgconfig
export LD_LIBRARY_PATH=$NFPATH/lib
## now loop through the above array
for i in "${arr[@]}"
do
echo "$i"
(
cd $i
./configure --prefix=$NFPATH --enable-static
make -j20
make install
)
done
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] iptables: Link libext_arpt to static build
2015-11-26 6:42 ` Daniel Wagner
@ 2015-12-09 12:53 ` Pablo Neira Ayuso
0 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2015-12-09 12:53 UTC (permalink / raw)
To: Daniel Wagner; +Cc: netfilter-devel, fw
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
On Thu, Nov 26, 2015 at 07:42:26AM +0100, Daniel Wagner wrote:
> On 11/25/2015 08:45 PM, Pablo Neira Ayuso wrote:
> > On Mon, Nov 23, 2015 at 11:18:47AM +0100, Daniel Wagner wrote:
> >> The libext_arpt is not included when linking the static version of
> >> iptables.
> >>
> >> Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
> >> ---
> >> Hi,
> >>
> >> I had some troubles getting a static version of iptables. Not sure
> >> if I fixed it correctly. Anyway I am able to proceed with testing.
> >
> > Could you tell me what options you're using to compile iptables so I
> > can try to reproduce it?
>
> Yes, sure. I am using this simple toy script to build:
>
> declare -a arr=("libmnl" "libnl" "libnftnl" "libnfnetlink"
> "libnetfilter" "libnetfilter_acct" "libnetfilter_conntrack"
> "libnetfilter_cthelper" "libnetfilter_cttimeout" "libnetfilter_queue"
> "iptables")
>
> NFPATH=/home/wagi/connman/netfilter
> export PKG_CONFIG_PATH=$NFPATH/lib/pkgconfig
> export LD_LIBRARY_PATH=$NFPATH/lib
>
> ## now loop through the above array
> for i in "${arr[@]}"
> do
> echo "$i"
> (
> cd $i
> ./configure --prefix=$NFPATH --enable-static
I can reproduce this, thanks.
We also need to include libnetfilter_conntrack otherwise static builds
also break when connlabel support is on.
[-- Attachment #2: x.patch --]
[-- Type: text/x-diff, Size: 1487 bytes --]
diff --git a/iptables/Makefile.am b/iptables/Makefile.am
index 132fe5f..3c0faa5 100644
--- a/iptables/Makefile.am
+++ b/iptables/Makefile.am
@@ -1,7 +1,7 @@
# -*- Makefile -*-
AM_CFLAGS = ${regular_CFLAGS}
-AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} ${libmnl_CFLAGS} ${libnftnl_CFLAGS}
+AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} ${libmnl_CFLAGS} ${libnftnl_CFLAGS} ${libnetfilter_conntrack_CFLAGS}
AM_YFLAGS = -d
xtables_multi_SOURCES = xtables-multi.c iptables-xml.c
@@ -41,7 +41,7 @@ xtables_compat_multi_SOURCES += xtables-save.c xtables-restore.c \
xtables-arp-standalone.c xtables-arp.c \
getethertype.c nft-bridge.c \
xtables-eb-standalone.c xtables-eb.c
-xtables_compat_multi_LDADD += ${libmnl_LIBS} ${libnftnl_LIBS} ../extensions/libext4.a ../extensions/libext6.a ../extensions/libext_ebt.a
+xtables_compat_multi_LDADD += ${libmnl_LIBS} ${libnftnl_LIBS} ${libnetfilter_conntrack_LIBS} ../extensions/libext4.a ../extensions/libext6.a ../extensions/libext_ebt.a ../extensions/libext_arpt.a
# yacc and lex generate dirty code
xtables_compat_multi-xtables-config-parser.o xtables_compat_multi-xtables-config-syntax.o: AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations -Wno-implicit-function-declaration -Wno-nested-externs -Wno-undef -Wno-redundant-decls
xtables_compat_multi_SOURCES += xshared.c
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-09 12:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-23 10:18 [PATCH] iptables: Link libext_arpt to static build Daniel Wagner
2015-11-25 19:45 ` Pablo Neira Ayuso
2015-11-26 6:42 ` Daniel Wagner
2015-12-09 12:53 ` Pablo Neira Ayuso
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).