
我正在嘗試使用以下命令編譯 bochs:
./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci
它有效,但是當我運行 make 時我得到:
usr/bin/ld: gui/libgui.a(gtk_enh_dbg_osdep.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
有幫助嗎? :/
答案1
需要加入-lpthread
Makefile中的LIBS下
答案2
使用 和 配置 Bochs 建置時會出現此問題--enable-debugger
,並且似乎是 Bochs 自動建置配置中的錯誤,其中它錯誤地省略了-pthread
Linux 平台上的連結器標誌。
無需按照Makefile
上一個答案中的建議進行編輯。相反,解決方法是LDFLAGS='-pthread'
在配置建置時指定;例如:
./configure --enable-debugger LDFLAGS='-pthread'
我已備案錯誤回報 #1364與博爾赫斯項目。請在那裡插話,以確保開發人員注意到並修復這個錯誤。
答案3
作業系統:Ubuntu 14.04 LTS
sudo apt-get install libgtk2.0-dev
tar vxzf bochs-2.4.5.tar.gz
cd bochs-2.4.5
sudo ./configure --enable-debugger --enable-disasm LDFLAGS='-pthread'
make
sudo make install