QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1743|回复: 5

帮兄弟一把,看看是什么问题!!先谢过!!

[复制链接]
发表于 2005-7-2 18:02:57 | 显示全部楼层 |阅读模式
[root@prince occi]# ./rh_conn.o


!!! WARNING !!! --> libdl-2.2.4-stub.so

This is a stub library which can be used for linking only.  It must *not*
be used as a runtime library.  Please make sure this library is not found
in LD_LIBRARY_PATH.


[root@prince occi]# trace ./rh_conn.o
.....
......
mprotect(0x124000, 8192, PROT_READ|PROT_EXEC) = 0
mprotect(0x120000, 12288, PROT_READ|PROT_WRITE) = 0
mprotect(0x120000, 12288, PROT_READ|PROT_EXEC) = 0
mprotect(0x11b000, 16384, PROT_READ|PROT_WRITE) = 0
mprotect(0x11b000, 16384, PROT_READ|PROT_EXEC) = 0
mprotect(0x119000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0x119000, 4096, PROT_READ|PROT_EXEC) = 0
mprotect(0xfe7000, 1482752, PROT_READ|PROT_WRITE) = 0
mprotect(0xfe7000, 1482752, PROT_READ|PROT_EXEC) = 0
mprotect(0xfe1000, 4096, PROT_READ)     = 0
mprotect(0xd42000, 782336, PROT_READ|PROT_WRITE) = 0
mprotect(0xd42000, 782336, PROT_READ|PROT_EXEC) = 0
mprotect(0x1b4000, 10964992, PROT_READ|PROT_WRITE) = 0
mprotect(0x1b4000, 10964992, PROT_READ|PROT_EXEC) = 0
mprotect(0x13c000, 4096, PROT_READ)     = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7fe66c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7fea000, 86281)               = 0
brk(0)                                  = 0x8ade000
brk(0x8aff000)                          = 0x8aff000
mmap2(NULL, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fc3000
write(1, "\n\n!!! WARNING !!! --> ", 22) = 22
write(1, "libdl-2.2.4-stub.so\0", 20)   = 20
write(1, "\n\nThis is a stub library which c"..., 172) = 172
_exit(-1)                               = ?
 楼主| 发表于 2005-7-2 18:06:28 | 显示全部楼层
(gdb) start
Breakpoint 1 at 0x8048b21: file rh_conn.cpp, line 18.
Starting program: /home/learn_program/engineer_rh/occi/rh_conn.o
main () at rh_conn.cpp:18
18              const string userName = "oracle";
(gdb)
(gdb) s
19              const string password = "oracle";
(gdb) s
20              const string connectString = "RHora";
(gdb) s
22              Environment *env = Environment::createEnvironment();
(gdb) s


!!! WARNING !!! --> libdl-2.2.4-stub.so

This is a stub library which can be used for linking only.  It must *not*
be used as a runtime library.  Please make sure this library is not found
in LD_LIBRARY_PATH.



Program exited with code 0377.
回复

使用道具 举报

 楼主| 发表于 2005-7-2 18:09:33 | 显示全部楼层
-rwxr-xr-x  1 oracle oinstall    4065 2004-07-22  libdl-2.2.4-stub.so
lrwxrwxrwx  1 oracle oinstall      10  7月  1 19:14 libdl.so -> libdl.so.2
lrwxrwxrwx  1 oracle oinstall      19  7月  1 19:14 libdl.so.2 -> libdl-2.2.4-st ub.so
回复

使用道具 举报

 楼主| 发表于 2005-7-2 18:10:45 | 显示全部楼层
要的东西都送上来了,有请高手提点!!!
回复

使用道具 举报

发表于 2005-7-2 18:35:51 | 显示全部楼层

Re: 帮兄弟一把,看看是什么问题!!先谢过!!

[quote:90926d33e1="prince_frog"][root@prince occi]# ./rh_conn.o


!!! WARNING !!! --> libdl-2.2.4-stub.so

This is a stub library which can be used for linking only.  It must *not*
be used as a runtime library.  Please make sure this library is not found
in LD_LIBRARY_PATH.

[/quote]

看不懂英文?

libdl-2.2.4-stub.so只是用来链接的,它绝对不能放在运行环境中,确认你的LD_LIBRARY_PATH里没有包含了这个文件。
回复

使用道具 举报

 楼主| 发表于 2005-7-2 19:20:55 | 显示全部楼层
我知道呀,可你不放里面它说找不到文件libdl-2.2.4.so 如何是好呀?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-5 19:41 , Processed in 0.070102 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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