[tproxy] iptables make error with cttproxy

Daniel tooldcas at 163.com
Tue Jun 24 04:23:59 CEST 2008


Change initialization function prototype: 
void _init(void) ====> void __attribute((constructor)) my_init(void)
and recompile.

>>
>I am attempting to build iptables 1.3.5 (as bundled with centos 5.1
>x86_64) with cttproxy 2.6.18-2.0.6.
>
>When compiling iptables, I get an error during libipt_TPROXY_sh.o:
>
>cc -shared -o  extensions/libipt_TPROXY.so extensions/libipt_TPROXY_sh.o
>extensions/libipt_TPROXY_sh.o: In function '_init': libipt_TPROXY.c:
>(.text+0x10): multiple definition of '_init'
>/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o:(.init+0
>x0): first defined here 
>collect2: ld returned 1 exit status
>make: *** [extensions/libipt_TPROXY.so] Error 1
>
>
>What should I do to fix this? (I am the centOS kernel src v2.6.18, squid
>2.6stable20)
>
>Nick
>_______________________________________________
>tproxy mailing list
>tproxy at lists.balabit.hu
>https://lists.balabit.hu/mailman/listinfo/tproxy

	

Regards
  
Daniel
2008-06-24 




More information about the tproxy mailing list