summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e82cc54)
raw | patch | inline | side by side (parent: e82cc54)
author | Florian Forster <octo@collectd.org> | |
Sun, 21 Aug 2011 14:40:23 +0000 (16:40 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 21 Aug 2011 14:40:23 +0000 (16:40 +0200) |
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
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 | patch | blob | history |
diff --git a/configure.in b/configure.in
index d4874bde448fab657b82e81c4f676c3b3ea906f0..254e7fdfaa936a8a128ef11fc0c24ebae142269a 100644 (file)
--- a/configure.in
+++ b/configure.in
[
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.