编译ez-ipupdate 出错解决方法
2012-12-03 17:32
886 查看
错误:
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 $<
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 $<
相关文章推荐
- QtCreator编译出错时出现乱码的解决方法
- nginx 编译出错解决方法
- 使用vs2015编译VTK INSTALL-仅用于项目-仅生成INSTALL出错解决方法
- Thrift 0.9.3 G_TYPE_PTR_ARRAY 编译出错解决方法
- Keil-原文件类型不明确导致编译出错的解决方法
- Perl编译出错解决方法
- 编译出错解决方法
- SublimeText 2编译python出错的解决方法(The system cannot find the file specified)
- 〖Windows〗zigbee实验之cygwin编译TestSimpleMac出错的解决方法
- Ubuntu 编译Android源码出现Switch.pm出错信息的解决方法
- smkd6410 编译出错解决方法
- Thuthesis在Tex live2015中编译出错的解决方法
- (转)VS2010编译时 mt.exe出错解决方法
- centos6.5 openresty make[1] 编译出错解决方法
- VC6.0 编译的程序 转换成 VS2010后,编译出错问题解决方法的总结
- 在64位机器中编译出错No architectures to compile for (ONLY_ACTIVE_ARCH...解决方法
- FFmpeg编译出错undefined reference to `img_convert’的解决方法
- linux下用gcc编译使用了math库函数的程序出错的解决方法
- VC++2005编译出程序在XP下执行出错的解决方法