/usr/bin/addr2line -f -C -e /usr/lib/qt5/plugins/sqldrivers/libqsqlite.so 0x1a6c0
时间: 2023-11-19 19:04:51 浏览: 157
根据提供的引用内容,您想要使用 `/usr/bin/addr2line` 命令来获取 `/usr/lib/qt5/plugins/sqldrivers/libqsqlite.so` 中地址 `0x1a6c0` 的函数名和行号。可以按照以下步骤进行操作:
```shell
# 进入到 /usr/lib/qt5/plugins/sqldrivers 目录下
cd /usr/lib/qt5/plugins/sqldrivers
# 使用 addr2line 命令获取函数名和行号
/usr/bin/addr2line -f -C -e libqsqlite.so 0x1a6c0
```
执行完上述命令后,会输出地址 `0x1a6c0` 对应的函数名和行号。
相关问题
ls /usr/local/lib/libsqlite3.* /usr/local/lib/libsqlite3.a /usr/local/lib/libsqlite3.so.0 /usr/local/lib/libsqlite3.la /usr/local/lib/libsqlite3.so.0.8.6 /usr/local/lib/libsqlite3.so ls /usr/local/include/sqlite3.h /usr/local/include/sqlite3.h arm-linux-gcc -L./lib-lsqlite3 -o sqlite sqlite.c /tmp/ccKtSnwq.o: In function `main': sqlite.c:(.text+0xf4): undefined reference to `sqlite3_open' sqlite.c:(.text+0x120): undefined reference to `sqlite3_errmsg' sqlite.c:(.text+0x140): undefined reference to `sqlite3_close' sqlite.c:(.text+0x170): undefined reference to `sqlite3_exec' sqlite.c:(.text+0x1b0): undefined reference to `sqlite3_free' sqlite.c:(.text+0x1d8): undefined reference to `sqlite3_exec' sqlite.c:(.text+0x218): undefined reference to `sqlite3_free' sqlite.c:(.text+0x240): undefined reference to `sqlite3_exec' sqlite.c:(.text+0x280): undefined reference to `sqlite3_free' sqlite.c:(.text+0x28c): undefined reference to `sqlite3_close' collect2: ld returned 1 exit status [root@localhost install]# arm-linux-gcc -o sqlite sqlite.c -L./usr/local/lib -lsqlite3 /opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lsqlite3 collect2: ld returned 1 exit status [root@localhost install]# arm-linux-gcc -o sqlite sqlite.c -L./usr/local/lib -lsqlite3 -static /opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lsqlite3 collect2: ld returned 1 exit status [root@localhost install]# chmod +x /usr/local/libsqlite3.so chmod: cannot access `/usr/local/libsqlite3.so': No such file or directory [root@localhost install]# chmod +x /usr/local/libsqlite3.so.0.8.6 chmod: cannot access `/usr/local/libsqlite3.so.0.8.6': No such file or directory [root@localhost install]# arm-linux-gcc -o sqlite sqlite.c -L./usr/local/lib -lsqlite3.so -static /opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lsqlite3.so collect2: ld returned 1 exit status [root@localhost install]# arm-linux-gcc -o sqlite sqlite.c -L./usr/local/lib -lsqlite3.so /opt/FriendlyARM/toolschain/4.5.1/lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lsqlite3.so collect2: ld returned 1 exit status
这是一个关于使用arm-linux-gcc编译sqlite程序的错误信息。看起来是无法找到libsqlite3.so文件,导致编译失败。你需要确保在编译过程中,libsqlite3.so文件已经被正确安装并且所在路径被正确配置。你可以尝试使用命令ldconfig更新动态链接库缓存,并且在编译命令中使用正确的-lsqlite3参数来指定库文件路径。
mpicc -o ../../bin/lsqfit main.o lsqfit_ls.o block_init.o line.o -L../../lib -ldblock -ldutil /home/ubuntu/software/tcl/tcl8.5.11/lib/libtcl8.5.so -lm -lc /usr/bin/ld: main.o: in function `main': main.c:(.text+0x239): undefined reference to `blk_open_file' /usr/bin/ld: main.c:(.text+0x499): undefined reference to `blk_open_file' /usr/bin/ld: main.c:(.text+0x5e3): undefined reference to `blk_open_file' /usr/bin/ld: main.c:(.text+0x8f9): undefined reference to `blk_open_file' /usr/bin/ld: ../../lib/libdblock.a(skip.o): in function `blk__skip': skip.c:(.text+0xed): undefined reference to `blk__getlines' /usr/bin/ld: skip.c:(.text+0x126): undefined reference to `blk__getlines' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk_init_read': read.c:(.text+0x15): undefined reference to `blk__getenv' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk_read_blk': read.c:(.text+0x6a): undefined reference to `blk__getenv' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk_read_data': read.c:(.text+0xad): undefined reference to `blk__getenv' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk__read_data': read.c:(.text+0x119): undefined reference to `blk__getlines' /usr/bin/ld: read.c:(.text+0x1b2): undefined reference to `blk__getlines' /usr/bin/ld: read.c:(.text+0x1e5): undefined reference to `blk__getlines' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk_read_check': read.c:(.text+0x398): undefined reference to `blk__getenv' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk_read_blk_check': read.c:(.text+0x3d6): undefined reference to `blk__getenv' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk__read_check': read.c:(.text+0x49b): undefined reference to `blk__getlines' /usr/bin/ld: read.c:(.text+0x788): undefined reference to `blk__getlines' /usr/bin/ld: ../../lib/libdblock.a(read.o): in function `blk_print_env': read.c:(.text+0xbdf): undefined reference to `blk__getenv' /usr/bin/ld: ../../lib/libdblock.a(variable
这个错误提示是链接器(ld)在链接时找不到某些函数或变量的定义,而这些函数或变量的定义应该在libdblock库中。你需要检查一下编译和链接的命令行中,是否正确地包含了libdblock库,并且是否链接了该库。你可以尝试在编译命令行中添加“-ldbloc”选项,指示链接器链接该库。如果问题仍然存在,你可能需要检查一下该库是否正确地安装了,并且是否包含了需要的函数和变量的定义。
阅读全文