'undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' while compiling bochs












3















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 ? :/










share|improve this question





























    3















    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 ? :/










    share|improve this question



























      3












      3








      3


      1






      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 ? :/










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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






















          3 Answers
          3






          active

          oldest

          votes


















          4














          You need to add -lpthread to the Makefile under LIBS






          share|improve this answer

































            0














            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.






            share|improve this answer































              0














              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





              share|improve this answer

























                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
                });


                }
                });














                draft saved

                draft discarded


















                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









                4














                You need to add -lpthread to the Makefile under LIBS






                share|improve this answer






























                  4














                  You need to add -lpthread to the Makefile under LIBS






                  share|improve this answer




























                    4












                    4








                    4







                    You need to add -lpthread to the Makefile under LIBS






                    share|improve this answer















                    You need to add -lpthread to the Makefile under LIBS







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    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

























                        0














                        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.






                        share|improve this answer




























                          0














                          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.






                          share|improve this answer


























                            0












                            0








                            0







                            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.






                            share|improve this answer













                            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.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 30 '14 at 0:05









                            Arto BendikenArto Bendiken

                            1012




                            1012























                                0














                                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





                                share|improve this answer






























                                  0














                                  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





                                  share|improve this answer




























                                    0












                                    0








                                    0







                                    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





                                    share|improve this answer















                                    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






                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Dec 17 '15 at 2:29









                                    muru

                                    1




                                    1










                                    answered Dec 17 '15 at 2:05









                                    magicboymagicboy

                                    11




                                    11






























                                        draft saved

                                        draft discarded




















































                                        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.




                                        draft saved


                                        draft discarded














                                        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





















































                                        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







                                        Popular posts from this blog

                                        How to make a Squid Proxy server?

                                        Is this a new Fibonacci Identity?

                                        19世紀