質問

libsslバージョン0.9.7aに依存するC ++プロジェクトでサードパーティの静的ライブラリを使用しています。さまざまな理由により、私のプロジェクトで使用したlibsslバージョンは0.9.8eです。

サードパーティが静的ライブラリに最近変更を加えるまで、すべてが正常に機能していました。この新しいバージョンの静的ライブラリが含まれていると、アプリケーションを正常にコンパイルできませんでした。古いバージョンは問題なくコンパイルされます。

これらのライブラリの依存関係と下位互換性についてはあまり詳しくありません。サードパーティが提案したバージョンを使用する必要があると言われました。それが本当に理由なのか知りたいだけです。 IMO、後方互換性があるはずですよね?

この問題のトラブルシューティングに関する方向性は高く評価されています。

次は、私が得ているコンパイルエラーです:

cc1plus: note: obsolete option -I- used, please use -iquote instead

In file included from /usr/include/openssl/e_os2.h:56,
                 from /usr/include/openssl/ssl.h:173,
                 from MyClass.cpp:28:

/usr/include/openssl/opensslconf.h:13:30: error: opensslconf-i386.h: No such file or directory
/usr/include/openssl/bn.h:288: error: expected ';' before '*' token
/usr/include/openssl/bn.h:304: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:407: error: 'BN_ULONG' was not declared in this scope
/usr/include/openssl/bn.h:450: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:451: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:452: error: 'BN_ULONG' has not been declared
/usr/include/openssl/bn.h:453: error: 'BN_ULONG' has not been declared
/usr/include/openssl/bn.h:454: error: 'BN_ULONG' has not been declared
/usr/include/openssl/bn.h:455: error: 'BN_ULONG' has not been declared
/usr/include/openssl/bn.h:456: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:471: error: 'BN_ULONG' has not been declared
/usr/include/openssl/bn.h:764: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:765: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:766: error: variable or field 'bn_sqr_words' declared void
/usr/include/openssl/bn.h:766: error: 'BN_ULONG' was not declared in this scope
/usr/include/openssl/bn.h:766: error: 'rp' was not declared in this scope
/usr/include/openssl/bn.h:766: error: expected primary-expression before 'const'
/usr/include/openssl/bn.h:766: error: expected primary-expression before 'int'
/usr/include/openssl/bn.h:767: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:768: error: 'BN_ULONG' does not name a type
/usr/include/openssl/bn.h:769: error: 'BN_ULONG' does not name a type
/usr/include/openssl/ssl3.h:303: error: 'PQ_64BIT' does not name a type
/usr/include/openssl/pqueue.h:73: error: 'PQ_64BIT' does not name a type
/usr/include/openssl/pqueue.h:80: error: 'PQ_64BIT' was not declared in this scope
/usr/include/openssl/pqueue.h:80: error: expected primary-expression before 'void'
/usr/include/openssl/pqueue.h:89: error: 'PQ_64BIT' has not been declared
/usr/include/openssl/dtls1.h:92: error: 'PQ_64BIT' does not name a type
/usr/include/openssl/dtls1.h:94: error: 'PQ_64BIT' does not name a type

エラーメッセージには、opensslconf-i386.hなどのファイルはないが、実際には存在するというメッセージが表示されます。

何が問題なのか考えていますか?

お時間をいただきありがとうございます!

役に立ちましたか?

解決

Cプリプロセッサがopensslconf-i386.hファイルを見つけられないため、失敗の理由を見つける必要があります。廃止されたオプションの使用についてコンパイラから警告が表示されます(修正が推奨されます)。実行してください。

OK-ファイルが存在すると言います:どこにあり、そのパーミッションは何ですか? opensslconf.hにはどのように含まれていますか?その行は、含まれている他のOpenSSLヘッダーとどのように異なりますか。非推奨の「-I-」以外に使用している「-I」オプションは何ですか?

この段階では、インストールに問題があるか、奇妙なコマンドラインがあります。

そして質問のタイトルは...質問の本文とは明らかに関係ありません。

  • 運用レベルでは、はい、ほとんどの目的のための2つのインターワーク。
  • コンパイルレベルでは、2つは基本的に互換性があります(0.9.7aで機能していたものは0.9.8eでも機能します)。
  • 内部レベルと構成レベルでは、わずかな違いがあります。たとえば、より新しいバージョンでサポートされている追加の暗号またはモードがある場合があります。
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top