ipset broken ipmap dynamic linking
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipset (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: ipset
Note: this bug is slightly related to bug 79182 but is no duplicate.
I installed ipset 2.3.0-1 on hardy alpha6 and ran "ipset -H ipmap". Gutsy has the same problem.
It yields this error: ipset v2.3.0: Couldn't load settype `ipmap'
The same error will occur with kernel support, as soon as you try to create an ipset of type ipmap (other types are not affected). e.g. ipset -A myTestSet ipmap
This error is caused by compiling the shared libs, especially libipset_ipmap.so (residing in /usr/lib/ipset/) with the gcc stack-protector enabled. A workaround is this tiny patch to the Makefile of ipset userspace tool:
### start
--- Makefile-orig 2008-03-07 17:13:16.000000000 +0100
+++ Makefile 2008-03-10 11:40:34.000000000 +0100
@@ -22,7 +22,7 @@
COPT_FLAGS:=-O2
CFLAGS:
-SH_CFLAGS:
+SH_CFLAGS:
SETTYPES:=ipmap portmap macipmap iphash nethash iptree iptreemap ipporthash
PROGRAMS=ipset
### end
A far cooler solution would be fixing the real cause of the problem: dlopen (called in ipset.c) seems to have some issues with gcc's stack-protector.
Changed in ipset: | |
status: | Incomplete → Confirmed |
Is this symptom still reproducible in 9.04?