|
|
大家好,在大家的帮助下。我一步步走到了6.10节 可是还是出问题了,问题如下:
root:/sources# more dummy.c
main(){}
root:/sources# cc dummy.c
/tools/lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld: warning: ld-linux.so.2, needed by /lib/libc.so.6, not found (try using -rpath or -rpath-link)
/lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_rtld_global_ro@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `___tls_get_addr@GLIBC_2.3'
/lib/libc.so.6: undefined reference to `_r_debug@GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
root:/sources#
查看specs文件:
root:/sources# more /tools/lib/gcc/i686-pc-linux-gnu/4.0.3/specs | grep -n 'ld-linux'
130:/lib/ld-linux.so.2
查看/lib目录:
root:/sources# ls /lib | grep ld-linux.so.2
ld-linux.so.2
上面是不是说明动态连接器已经调整过来了?
相应目录下面也有相应的文件了啊!
怎么还会有上面的问题了呢?
warning: ld-linux.so.2, needed by /lib/libc.so.6, not found (try using -rpath or -rpath-link)
这句话是说的少了哪个文件啊? |
|