LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1207|回复: 6

[求助] gcc4 应该如何安装 glibc

[复制链接]
发表于 2005-8-5 13:40:30 | 显示全部楼层 |阅读模式
我遇到这样的错误:

  1. ../sysdeps/ieee754/dbl-64/s_isinf.c:29: error: 'isinf' aliased to undefined symbol '__isinf'
  2. make[2]: *** [/mnt/lfs/sources/glibc-build/math/s_isinf.os] Error 1
  3. make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5/math'
  4. make[1]: *** [math/subdir_lib] Error 2
  5. make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5'
  6. make: *** [all] Error 2
  7. -bash-3.00$
复制代码


文件内容:
  1. /*
  2. * Written by J.T. Conklin <jtc@netbsd.org>.
  3. * Changed to return -1 for -Inf by Ulrich Drepper <drepper@cygnus.com>.
  4. * Public domain.
  5. */

  6. #if defined(LIBM_SCCS) && !defined(lint)
  7. static char rcsid[] = "$NetBSD: s_isinf.c,v 1.3 1995/05/11 23:20:14 jtc Exp $";
  8. #endif

  9. /*
  10. * isinf(x) returns 1 is x is inf, -1 if x is -inf, else 0;
  11. * no branching!
  12. */

  13. #include "math.h"
  14. #include "math_private.h"

  15. int
  16. __isinf (double x)
  17. {
  18.         int32_t hx,lx;
  19.         EXTRACT_WORDS(hx,lx,x);
  20.         lx |= (hx & 0x7fffffff) ^ 0x7ff00000;
  21.         lx |= -lx;
  22.         return ~(lx >> 31) & (hx >> 30);
  23. }
  24. hidden_def (__isinf)
  25. weak_alias (__isinf, isinf)
  26. #ifdef NO_LONG_DOUBLE
  27. strong_alias (__isinf, __isinfl)
  28. weak_alias (__isinf, isinfl)
  29. #endif
复制代码
发表于 2005-8-5 20:36:55 | 显示全部楼层
gcc4编译glibc需要打补丁.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-5 21:17:53 | 显示全部楼层
Post by youbest
gcc4编译glibc需要打补丁.


是 gcc 需要打补丁还是 glibc 需要打补丁呢?
回复 支持 反对

使用道具 举报

发表于 2005-8-6 12:56:33 | 显示全部楼层
是glibc需要补丁
回复 支持 反对

使用道具 举报

发表于 2005-8-6 13:05:02 | 显示全部楼层
用 cvs 版的。
回复 支持 反对

使用道具 举报

发表于 2005-8-6 14:20:24 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-7 17:58:02 | 显示全部楼层
谢谢大家。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表