'undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' while compiling bochs
I'm trying to compile bochs with this command:
./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci
it works, but then when I run make I got:
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
Any Help ? :/
compiling gcc
add a comment |
I'm trying to compile bochs with this command:
./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci
it works, but then when I run make I got:
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
Any Help ? :/
compiling gcc
add a comment |
I'm trying to compile bochs with this command:
./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci
it works, but then when I run make I got:
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
Any Help ? :/
compiling gcc
I'm trying to compile bochs with this command:
./configure --with-x11 --with-wx --enable-ne2000 --enable-iodebug --enable-disasm --enable-debugger --enable-e1000 --enable-usb --enable-pci
it works, but then when I run make I got:
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
Any Help ? :/
compiling gcc
compiling gcc
edited Feb 19 at 11:25
Braiam
52.4k20138223
52.4k20138223
asked Nov 12 '13 at 23:36
Luca D'AmicoLuca D'Amico
446511
446511
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
You need to add -lpthread
to the Makefile under LIBS
add a comment |
The problem occurs when configuring a Bochs build with --enable-debugger
, and seems to be a bug in Bochs's automatic build configuration wherein it incorrectly omits -pthread
from the linker flags on Linux platforms.
There is no need to edit the Makefile
as suggested in the previous answer. Rather, the workaround is to specify LDFLAGS='-pthread'
when configuring the build; for example:
./configure --enable-debugger LDFLAGS='-pthread'
I've filed bug report #1364 with the Bochs project. Please chime in over there to make sure the developers note and fix this bug.
add a comment |
OS: 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
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f376204%2fundefined-reference-to-symbol-pthread-createglibc-2-2-5-while-compiling-boc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to add -lpthread
to the Makefile under LIBS
add a comment |
You need to add -lpthread
to the Makefile under LIBS
add a comment |
You need to add -lpthread
to the Makefile under LIBS
You need to add -lpthread
to the Makefile under LIBS
edited Nov 13 '13 at 0:22
Braiam
52.4k20138223
52.4k20138223
answered Nov 13 '13 at 0:16
Luca D'AmicoLuca D'Amico
446511
446511
add a comment |
add a comment |
The problem occurs when configuring a Bochs build with --enable-debugger
, and seems to be a bug in Bochs's automatic build configuration wherein it incorrectly omits -pthread
from the linker flags on Linux platforms.
There is no need to edit the Makefile
as suggested in the previous answer. Rather, the workaround is to specify LDFLAGS='-pthread'
when configuring the build; for example:
./configure --enable-debugger LDFLAGS='-pthread'
I've filed bug report #1364 with the Bochs project. Please chime in over there to make sure the developers note and fix this bug.
add a comment |
The problem occurs when configuring a Bochs build with --enable-debugger
, and seems to be a bug in Bochs's automatic build configuration wherein it incorrectly omits -pthread
from the linker flags on Linux platforms.
There is no need to edit the Makefile
as suggested in the previous answer. Rather, the workaround is to specify LDFLAGS='-pthread'
when configuring the build; for example:
./configure --enable-debugger LDFLAGS='-pthread'
I've filed bug report #1364 with the Bochs project. Please chime in over there to make sure the developers note and fix this bug.
add a comment |
The problem occurs when configuring a Bochs build with --enable-debugger
, and seems to be a bug in Bochs's automatic build configuration wherein it incorrectly omits -pthread
from the linker flags on Linux platforms.
There is no need to edit the Makefile
as suggested in the previous answer. Rather, the workaround is to specify LDFLAGS='-pthread'
when configuring the build; for example:
./configure --enable-debugger LDFLAGS='-pthread'
I've filed bug report #1364 with the Bochs project. Please chime in over there to make sure the developers note and fix this bug.
The problem occurs when configuring a Bochs build with --enable-debugger
, and seems to be a bug in Bochs's automatic build configuration wherein it incorrectly omits -pthread
from the linker flags on Linux platforms.
There is no need to edit the Makefile
as suggested in the previous answer. Rather, the workaround is to specify LDFLAGS='-pthread'
when configuring the build; for example:
./configure --enable-debugger LDFLAGS='-pthread'
I've filed bug report #1364 with the Bochs project. Please chime in over there to make sure the developers note and fix this bug.
answered Nov 30 '14 at 0:05
Arto BendikenArto Bendiken
1012
1012
add a comment |
add a comment |
OS: 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
add a comment |
OS: 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
add a comment |
OS: 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
OS: 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
edited Dec 17 '15 at 2:29
muru
1
1
answered Dec 17 '15 at 2:05
magicboymagicboy
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f376204%2fundefined-reference-to-symbol-pthread-createglibc-2-2-5-while-compiling-boc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown