QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1200|回复: 2

求救,关于RH9下的库链接问题

[复制链接]
发表于 2004-10-10 23:44:18 | 显示全部楼层 |阅读模式
现在我在RH9下用gcc编译任何程序都会出现如下信息,.o文件可以生成,但是无法生成可执行文件,求救!
/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol_skip@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_rtld_global@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_lookup_versioned_symbol@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_start_profile@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_check_map_versions@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_enable_secure@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_get_origin@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_dst_substitute@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_debug_state@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_init@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_dst_count@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_signal_error@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_debug_printf@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_map_object_deps@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_unload_cache@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_relocate_object@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_tls_symaddr@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_argv@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_catch_error@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_lookup_symbol_skip@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_lookup_symbol@GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_map_object@GLIBC_PRIVATE'
发表于 2004-10-11 12:31:05 | 显示全部楼层
gcc -v列出详细信息帮助定位.
该问题可能是gcc驱动的ld找不到ld-linux.so.x/ld-x.x.x.so引起
可以
-rpath=路径(ld-linux.so.x所在)
或者ld-linux.so.x cp到某gcc公认路径下
回复

使用道具 举报

 楼主| 发表于 2004-10-11 13:05:00 | 显示全部楼层
太冲动了,已经重装了
不过还是谢谢你的回复,下次出了这样的问题可以试试你说的方法^_^
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-22 03:58 , Processed in 0.052024 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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