2016-04-12 3 views
-1

スタティックリンクを使用してx86に移植するSPARCプロジェクトがあります。 は、リンカーのC-Cコンパイラとの最後のステップは失敗します。Solaris 5.10 x86 CCリンカーエラー:ld:fatal:library -lcryptoki:見つからない

ld:重大な:ライブラリ-lcryptoki:致命的な::ライブラリ-lrt:致命的な::ライブラリ-lsocket: LDが見つかりませんが見つかりません LDが見つかりませんが など

LIBSへのパスは以下のとおりです。 は/ usr/local/libに は/ opt/CSW/libに

どここれらのlibsを行っているされていますか? ありがとう!

+0

ldはその-locciと見られない-lclntsh文句を言います。 –

+0

* -dyオプションを指定すると、ldは-locciと-lclntshが見つからないと不満を表明します。*これらはOracleクライアント・ライブラリのようです。 Oracleのマニュアルに従ってリンクしてください。 –

答えて

0

Solaris 10ではシステムの静的ライブラリが削除されました。 Solaris 10(およびそれ以降)の実行可能ファイルを動的にリンクする必要があります。 -dyオプションで

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.

関連する問題