c++ - Solaris 5.10 x86 CC 链接器错误 : ld: fatal: library -lcryptoki: not found

标签 c++ linker x86 solaris ld

我们有 SPARC 项目可以通过静态链接移植到 x86。 链接器中 CC 编译器的最后一步失败:

ld:致命:库 -lcryptoki:未找到 ld:致命:库-lrt:未找到 ld:致命:库-lsocket:未找到 等等

库的路径是: /usr/本地/库 /选择/csw/lib

这些库到哪里去了? 谢谢!

最佳答案

Solaris 10 删除了系统静态库。您必须动态链接 Solaris 10(及更高版本)可执行文件。

Features Removed from the Solaris 10 Operating System

Solaris Static System Libraries

This announcement applies only to 32-bit static-system libraries and statically linked utilities. Sixty-four-bit static system libraries and utilities have never been provided.

Support for 32-bit Solaris static-system libraries and statically linked utilities is no longer provided in Solaris. Of particular note, support for the static C library (/usr/lib/libc.a) is no longer provided in Solaris.

Applications that are linked with existing static system libraries might not work correctly in Solaris. Only applications that are dynamically linked with the system libraries that provide the Solaris application binary interface (ABI) are designed for future compatibility.

Applications that directly depend on the behavior of system traps might not work correctly in Solaris. Applications that link with non-Sun libraries that directly depend on the behavior of system traps, typically libraries that provide substitute ABI functions, might not work correctly in Solaris.

关于c++ - Solaris 5.10 x86 CC 链接器错误 : ld: fatal: library -lcryptoki: not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36577804/

相关文章:

c++ - HPET 的频率 vs CPU 频率用于测量时间

C++ 对不同概念的不同使用声明

c++ pthread : how to set io_service. run() 作为 pthread_create 中的参数?

c++ - .h 文件上非常简单的函数 C++ 的链接错误

c - .LANCHOR0 在检测多重定义错误中的作用是什么?

c++ - Qt QDialog 每次关闭并再次显示时都会稍微移动位置

c++ - g++ Cygwin/Linux 或版本差异

assembly - 从Rust更改x86中的执行堆栈

x86 - 现代 x86 CPU 使用什么缓存一致性解决方案?

x86 - 指令顺序可以发生跨函数调用吗?