Undefined symbol "boost::this_thread::interruption_point()"

オープン
#376 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp

調査の方向性

examples/sip_client のビルドと、報告されている boost::this_thread::sleep の呼び出しから始め、説明されている Boost のバージョンと macOS 環境について CMake のリンク設定を調べます。x86_64 のリンカー失敗を再現し、未定義シンボルなしで sip_client の例が正常にリンクおよびビルドできることを確認します。

索引モデルが issue の本文から書いたものです。

説明

I'm using this library:
https://docs.websocketpp.org/faq.html

All the examples will build except one (https://github.com/zaphoyd/websocketpp/tree/master/examples/sip_client).
The one that does not build has one line it fails on which is the following line:

boost::this_thread::sleep(boost::posix_time::milliseconds(100));

Which gives the following error:

Undefined symbols for architecture x86_64:
  "boost::this_thread::interruption_point()", referenced from:
      boost::condition_variable::wait(boost::unique_lock<boost::mutex>&) in sip_client.cpp.o
      boost::condition_variable::do_wait_until(boost::unique_lock<boost::mutex>&, boost::detail::real_platform_timepoint const&) in sip_client.cpp.o
  "boost::detail::get_current_thread_data()", referenced from:
      boost::detail::interruption_checker::interruption_checker(_opaque_pthread_mutex_t*, _opaque_pthread_cond_t*) in sip_client.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [bin/sip_client] Error 1
make[1]: *** [examples/sip_client/CMakeFiles/sip_client.dir/all] Error 2
make: *** [all] Error 2

I tried it with boost 1_39_0, 1_46_1 and 1_80_0.

I'm on OSX 10.15.7. Let me know if I can help in any way.

主要言語
C++
スター
213
フォーク
171
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

boostorg/thread のほかの issue

boostorg/thread の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。