|
Cygwin下交叉编译glibc-2.5.1,
Host: i686-pc-cygwin
Target: i686-pc-linux-gnu
出现如下错误:- ... ...
- ... ...
- i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -shared -o /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/ld.so \
- -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs \
- /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os -Wl,--version-script=/home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/ld.map \
- -Wl,-soname=ld-linux.so.2 -T /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/ld.so.lds
- /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os: In function `process_envvars':
- /cygdrive/e/Ubuntu_WinXP/clfs/sources/glibc-2.5.1/elf/rtld.c:2720: undefined reference to `__open'
- /cygdrive/e/Ubuntu_WinXP/clfs/sources/glibc-2.5.1/elf/rtld.c:2692: undefined reference to `__access'
- /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os: In function `dl_main':
- /cygdrive/e/Ubuntu_WinXP/clfs/sources/glibc-2.5.1/elf/rtld.c:1659: undefined reference to `__access'
- /home/remote/Ubuntu_WinXP/clfs/sources/glibc-build/elf/librtld.os: In function `_dl_discover_osversion':
- ../sysdeps/unix/sysv/linux/dl-osinfo.h:96: undefined reference to `__open'
- ../sysdeps/unix/sysv/linux/dl-osinfo.h:99: undefined reference to `__read'
- ../sysdeps/unix/sysv/linux/dl-osinfo.h:100: undefined reference to `__clos
- ... ...
- ... ...
复制代码 编译环境:
Cygwin-1.5.25-15
I686-pc-linux-gnu-gcc-4.1.2
Glibc-2.5.1
请教各位,谢谢! |
|