[LARTC] ipp2p 0.8.2 fix for iptables 1.3.6

Vytautas Krakauskas vytautas at pelikanas.ktu.lt
Sat Dec 9 00:56:43 CET 2006


There are some problems with iptables 1.3.6 loading ipp2p dynamic
library libipt_ipp2p.so. One would usually get error like this:

# iptables -m ipp2p -h
iptables v1.3.6: X Couldn't load match `ipp2p'

Solution is to use gcc instead of ld to create the library. It worked
for me on Debian Sarge, but maybe someone else could try on other
distributions?

-- 
Vytautas

-------------- next part --------------
--- ipp2p-0.8.2/Makefile	2006-12-09 03:17:52.000000000 +0200
+++ ipp2p-0.8.2-fix/Makefile	2006-12-09 03:10:37.000000000 +0200
@@ -64,7 +64,7 @@
 
 libipt_ipp2p.so: libipt_ipp2p.c ipt_ipp2p.h
 	$(CC) $(CFLAGS) $(IPTABLES_OPTION) $(IPTABLES_INCLUDE) -fPIC -c libipt_ipp2p.c
-	ld -shared -o libipt_ipp2p.so libipt_ipp2p.o
+	$(CC) -shared -o libipt_ipp2p.so libipt_ipp2p.o
 
 clean:
 	-rm -f *.o *.so *.ko .*.cmd *.mod.c


More information about the LARTC mailing list