Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8241

Debug build on Windows is broken: error LNK2019: unresolved external symbol pthread_detach referenced in function ma_checkpoint_init

Details

    Description

      http://buildbot.askmonty.org/buildbot/builders/win32-debug2/builds/7768/steps/build/logs/stdio

      aria.lib(ma_checkpoint.obj) : error LNK2019: unresolved external symbol _pthread_detach referenced in function _ma_checkpoint_init [C:\bzr\bb-win32\win32-debug2\build\sql\mysqld.vcxproj]
      C:\bzr\bb-win32\win32-debug2\build\sql\Debug\mysqld.exe : fatal error LNK1120: 1 unresolved externals [C:\bzr\bb-win32\win32-debug2\build\sql\mysqld.vcxproj]
      Done Building Project "C:\bzr\bb-win32\win32-debug2\build\sql\mysqld.vcxproj" (default targets) -- FAILED.

      Apparently it was introduced by this commit:
      https://github.com/MariaDB/server/commit/44cd6f22d4fdf7df8da6bb00caf6493f715854bc

           {
             /* thread lives, will have to be killed */
             checkpoint_control.status= THREAD_RUNNING;
      +      pthread_detach(th);
           }
         }
         DBUG_RETURN(res);

      Attachments

        Issue Links

          Activity

            revision-id: 52c36874e251c3ac5ff0f925c8133074166d481d
            parent(s): 979c5049ef6fdd55c29fa5170a96c62d2a8a6823
            committer: Oleksandr Byelkin
            branch nick: server
            timestamp: 2015-05-28 07:59:57 +0200
            message:

            MDEV-8241: Debug build on Windows is broken: error LNK2019: unresolved external symbol pthread_detach referenced in function ma_checkpoint_init

            pthread_detach() replaced with pthread_detach_this_thread()

            pthread_detach_this_thread() definition fixed

            sanja Oleksandr Byelkin added a comment - revision-id: 52c36874e251c3ac5ff0f925c8133074166d481d parent(s): 979c5049ef6fdd55c29fa5170a96c62d2a8a6823 committer: Oleksandr Byelkin branch nick: server timestamp: 2015-05-28 07:59:57 +0200 message: MDEV-8241 : Debug build on Windows is broken: error LNK2019: unresolved external symbol pthread_detach referenced in function ma_checkpoint_init pthread_detach() replaced with pthread_detach_this_thread() pthread_detach_this_thread() definition fixed —

            Compilation on winowds passed (build from other reasons)

            https://buildbot.askmonty.org/buildbot/grid?branch=bb-10.1-MDEV-8241&category=main

            (waiting fof windows build)

            sanja Oleksandr Byelkin added a comment - Compilation on winowds passed (build from other reasons) https://buildbot.askmonty.org/buildbot/grid?branch=bb-10.1-MDEV-8241&category=main (waiting fof windows build)

            ok to push

            serg Sergei Golubchik added a comment - ok to push

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.