[MDEV-8241] Debug build on Windows is broken: error LNK2019: unresolved external symbol pthread_detach referenced in function ma_checkpoint_init Created: 2015-05-28  Updated: 2018-09-21  Resolved: 2015-05-30

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Platform Windows
Affects Version/s: 10.1
Fix Version/s: 10.1.5

Type: Bug Priority: Critical
Reporter: Elena Stepanova Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-7069 Fix buildbot failures in main server ... Stalled
Problem/Incident
causes MDEV-17200 pthread_detach called for already det... Closed

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



 Comments   
Comment by Oleksandr Byelkin [ 2015-05-28 ]

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

Comment by Oleksandr Byelkin [ 2015-05-28 ]

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)

Comment by Sergei Golubchik [ 2015-05-29 ]

ok to push

Generated at Thu Feb 08 07:25:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.