Michael Gale wrote:
> Hey,
>
> Is IPTables::IPV4 still being maintained ? I am having issues with
> Centos 5 :(
>
> I can not get IPTables-IPv4-0.98 to compile on Centos 5 (v5.8.8 built
> for x86_64-linux-thread-multi). Has any one else got this to work or
> know of the fix ?
>
> --snip--
> make -C libiptc/ all
> make[1]: Entering directory `/root/.cpan/build/IPTables-IPv4-0.98/libiptc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/root/.cpan/build/IPTables-IPv4-0.98/libiptc'
> Running Mkbootstrap for IPTables::IPv4 ()
> chmod 644 IPv4.bs
> rm -f blib/arch/auto/IPTables/IPv4/IPv4.so
> gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic IPv4.o
> loader.o packer.o unpacker.o
> maskgen.o libiptc/libiptc.a -o blib/arch/auto/IPTables/IPv4/IPv4.so
> \
> \
>
> /usr/bin/ld: libiptc/libiptc.a(libip4tc.o): relocation R_X86_64_32S
> against `iptc_next_chain' can not be used when making a shared object;
> recompile with -fPIC
> libiptc/libiptc.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [blib/arch/auto/IPTables/IPv4/IPv4.so] Error 1
> --snip--
>
In case it helps, I've been using the following patch (see attach) to
compile it on SuSE 10.0 and Kubuntu 7.04 and Gutsy.
Moreover, you might need to fetch the following 3 include files from an
old kernel tree:
linux/netfilter_ipv4/ip_conntrack_tuple.h
linux/netfilter_ipv4/ip_conntrack.h
linux/netfilter_ipv4/ip_nat.h
|