LinuxSir.cn,穿越时空的Linuxsir!

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

使用arm-linux-gcc编译失败,求助!!!

[复制链接]
发表于 2006-5-24 16:00:33 | 显示全部楼层 |阅读模式
编译时出现如下出错信息:



/usr/seedling/lib/gcc-lib/arm-linux/3.2.1/../../../../arm-linux/bin/ld: warning:
ld-linux.so.2, needed by /usr/seedling/lib/libc.so.6, not found (try using -rpa
th or -rpath-link)
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_lazy@GLIBC_2.1.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_dst_substitute@GLIBC_2.
1.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_2.2
'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_relocate_object@GLIBC_2
.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_clktck@GLIBC_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_
2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_catch_error@GLIBC_2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_platformlen@GLIBC_2.1.1
'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol
_skip@GLIBC_2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol
@GLIBC_2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_mcount@GLIBC_2.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_dst_count@GLIBC_2.1.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_initial_searchlist@GLIB
C_2.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_start_profile@GLIBC_2.1
'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_lookup_symbol@GLIBC_2.0
'
/usr/seedling/lib/libc.so.6: undefined reference to `__libc_stack_end@GLIBC_2.1'

/usr/seedling/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_loaded@GLIBC_2.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_origin_path@GLIBC_2.1.1
'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_check_map_versions@GLIB
C_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_map_object@GLIBC_2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_main_searchlist@GLIBC_2
.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_debug_mask@GLIBC_2.2.3'

/usr/seedling/lib/libc.so.6: undefined reference to `_dl_load_lock@GLIBC_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_profile@GLIBC_2.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_debug_state@GLIBC_2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_init_all_dirs@GLIBC_2.2
'
/usr/seedling/lib/libc.so.6: undefined reference to `_r_debug@GLIBC_2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_unload_cache@GLIBC_2.1'

/usr/seedling/lib/libc.so.6: undefined reference to `_dl_signal_error@GLIBC_2.0'

/usr/seedling/lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_2.2.
3'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_init@GLIBC_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_all_dirs@GLIBC_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_map_object_deps@GLIBC_2
.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_nloaded@GLIBC_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_profile_map@GLIBC_2.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_profile_output@GLIBC_2.
1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_pagesize@GLIBC_2.2'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_lookup_symbol_skip@GLIB
C_2.0'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_fpu_control@GLIBC_2.1'
/usr/seedling/lib/libc.so.6: undefined reference to `_dl_global_scope_alloc@GLIB
C_2.1'
collect2: ld returned 1 exit status
make: *** [main] Error 1





此问题该如何解决!
 楼主| 发表于 2006-5-25 08:48:39 | 显示全部楼层
唉,也每个人给解决一下,还得靠自己,加上一个库以后就好了
回复 支持 反对

使用道具 举报

发表于 2006-5-25 09:04:16 | 显示全部楼层
Post by fghjfghj
唉,也每个人给解决一下,还得靠自己,加上一个库以后就好了


兄弟,加的是这么库吗?

/usr/seedling/lib/gcc-lib/arm-linux/3.2.1/../../../../arm-linux/bin/ld: warning:
[color="Red"]ld-linux.so.2, needed by /usr/seedling/lib/libc.so.6, not found (try using -rpa
th or -rpath-link)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-11 23:07:45 | 显示全部楼层
加这个
-Xlinker -rpath-link /usr/seedling/lib/gcc-lib/arm-linux/3.2.1


突然卡了一下,回了这么多
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-11 23:07:48 | 显示全部楼层
加这个
-Xlinker -rpath-link /usr/seedling/lib/gcc-lib/arm-linux/3.2.1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-11 23:07:53 | 显示全部楼层
加这个
-Xlinker -rpath-link /usr/seedling/lib/gcc-lib/arm-linux/3.2.1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-11 23:07:59 | 显示全部楼层
加这个
-Xlinker -rpath-link /usr/seedling/lib/gcc-lib/arm-linux/3.2.1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-11 23:08:03 | 显示全部楼层
加这个
-Xlinker -rpath-link /usr/seedling/lib/gcc-lib/arm-linux/3.2.1
回复 支持 反对

使用道具 举报

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

本版积分规则

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