diff mbox

iptables: Link libext_arpt to static build

Message ID 1448273927-24853-1-git-send-email-daniel.wagner@bmw-carit.de
State Changes Requested
Delegated to: Pablo Neira
Headers show

Commit Message

Daniel Wagner Nov. 23, 2015, 10:18 a.m. UTC
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(-)

Comments

Pablo Neira Ayuso Nov. 25, 2015, 7:45 p.m. UTC | #1
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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Daniel Wagner Nov. 26, 2015, 6:42 a.m. UTC | #2
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
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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