LinuxSir.cn,穿越时空的Linuxsir!

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

【求助】Cygwin下编译glibc-2.5.1,时出错

[复制链接]
发表于 2009-10-28 17:51:49 | 显示全部楼层 |阅读模式
Cygwin下交叉编译glibc-2.5.1,

Host: i686-pc-cygwin
Target: i686-pc-linux-gnu

出现如下错误:
  1. ... ...
  2. ... ...
  3. i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -shared -o /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/ld.so                        \
  4.                   -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs         \
  5.                   /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os -Wl,--version-script=/home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/ld.map                \
  6.                   -Wl,-soname=ld-linux.so.2 -T /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/ld.so.lds
  7. /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os: In function `process_envvars':
  8. /cygdrive/e/Ubuntu_WinXP/clfs/sources/glibc-2.5.1/elf/rtld.c:2720: undefined reference to `__open'
  9. /cygdrive/e/Ubuntu_WinXP/clfs/sources/glibc-2.5.1/elf/rtld.c:2692: undefined reference to `__access'
  10. /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os: In function `dl_main':
  11. /cygdrive/e/Ubuntu_WinXP/clfs/sources/glibc-2.5.1/elf/rtld.c:1659: undefined reference to `__access'
  12. /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os: In function `_dl_discover_osversion':
  13. ../sysdeps/unix/sysv/linux/dl-osinfo.h:96: undefined reference to `__open'
  14. ../sysdeps/unix/sysv/linux/dl-osinfo.h:99: undefined reference to `__read'
  15. ../sysdeps/unix/sysv/linux/dl-osinfo.h:100: undefined reference to `__clos
  16. ... ...
  17. ... ...
复制代码
编译环境:
Cygwin-1.5.25-15
I686-pc-linux-gnu-gcc-4.1.2
Glibc-2.5.1

请教各位,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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