【发布时间】:2012-01-22 05:30:39
【问题描述】:
谁能提供任何见解或方法来调试为什么 ltdl 无法加载我的库?
从部分 strace 输出中可以看出,它成功打开了库,然后报告 file not found,然后继续成功加载以相同方式构建的另一个库。我该如何调试呢?我已经用谷歌搜索了很长时间,但没有发现任何有用的调试方法。
open("server/modules/smtp.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("server/modules/smtp.so", O_RDONLY) = 3
getcwd("/home/david/Documents/workspace/dvnmon", 128) = 39
1327209900.751672 3602 Failed to open server/modules/smtp: file not found
open("server/modules/snmp.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("server/modules/snmp.so", O_RDONLY) = 3
getcwd("/home/david/Documents/workspace/dvnmon", 128) = 39
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/usr/lib64/libnetsnmp.so.15", O_RDONLY) = 3
open("/usr/lib64/libcrypto.so.1.0.0", O_RDONLY) = 3
open("/lib64/libz.so.1", O_RDONLY) = 3
1327209900.800507 3602 Plugin CSNMPMonitor interface version 0.1 loaded
【问题讨论】: