Public bug reported:

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':/usr/lib/ipset/libipset_ipmap.so: undefined symbol:
__stack_chk_fail_local

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:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include -I. -g 
-DIPSET_DEBUG #-pg # -DIPTC_DEBUG
-SH_CFLAGS:=$(CFLAGS) -fPIC
+SH_CFLAGS:=$(CFLAGS) -fno-stack-protector -fPIC
 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.

** Affects: ipset (Ubuntu)
     Importance: Undecided
         Status: New

-- 
ipset broken ipmap dynamic linking
https://bugs.launchpad.net/bugs/200561
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to