From b96e6dd0fe5583ca809b66b2519e74081c79e4f3 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 21 Aug 2011 16:40:23 +0200 Subject: [PATCH] configure: Link with ip4tc and ip6tc, too. This solves this problem: octo@leeloo:/tmp $ gcc -o conftest -g -O2 conftest.c -liptc -ldl /usr/bin/ld: /tmp/ccuJEDqP.o: undefined reference to symbol 'iptc_init' /usr/bin/ld: note: 'iptc_init' is defined in DSO /lib64/libip4tc.so.0 so try adding it to the linker command line /lib64/libip4tc.so.0: could not read symbols: Invalid operation collect2: ld returned 1 exit status Why the iptables plugin compiles without this is beyond me. Change-Id: If615bee0c9524d907ca1834d5c337ed50c625c5b --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index d4874bde..254e7fdf 100644 --- a/configure.in +++ b/configure.in @@ -1638,7 +1638,8 @@ then [ with_libiptc="yes" with_own_libiptc="yes" - ]) + ], + [-lip4tc -lip6tc]) fi # The system wide version failed for some reason. Check if we have the required # headers to build the shipped version. -- 2.11.0