编译ez-ipupdate 出错解决方法

错误:

gcc  -g -O2  -o ez-ipupdate  ez-ipupdate.o conf_file.o md5.o cache_file.o pid_file.o  
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in conf_file.o
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ez-ipupdate] Error 1


解决:

Makefile 中

.c.o:  
$(COMPILE) -c $<


改为:

.c.o:  

$(COMPILE) -include /usr/include/errno.h -c $<

你可能感兴趣的:(LINUX,网络编程)