On Saturday 2011-09-10 23:38, Julien Lafaye wrote: >Sorry, I send an incomplete email by mistake: > >The correct Makefile, working on my setup is: >LAGS = -O2 -Wall > lib%.so: lib%.o > gcc -shared -o $@ $^; > lib%.o: lib%.c > gcc ${CFLAGS} -DPIC -fPIC -D_INIT=lib$*_init -c -o $@ $<; > >I guess this might seem obvious to many of you but the problem I had >initially was a segfault when parsing command line arguments. Segfaults are usually a sign of a flaw somewhere; the absence of PIC is usually caught in the linker stage already. Therefore I highly suggest that you also submit your code so that we can improve iptables's robustness. And thanks for the hint, yes, -fPIC should indeed be specified. thanks, Jan -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html