Bug #87508 syscall warnings in macos
Submitted: 22 Aug 2017 12:27 Modified: 24 Aug 2017 13:57
Reporter: Steinar Gunderson Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[22 Aug 2017 12:27] Steinar Gunderson
Description:
When compiling MySQL on recent macOS, we get:

/home/sgunders/mysql/include/my_thread_os_id.h:57:10: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please
      switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
  return syscall(SYS_thread_selfid);
         ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^

How to repeat:
N/A

Suggested fix:
Use pthread_threadid_np() instead.
[24 Aug 2017 13:57] Paul DuBois
Posted by developer:
 
Fixed in 8.0.4.

Code cleanup. No changelog entry needed.
[29 Nov 2017 19:29] Paul DuBois
Posted by developer:
 
Fixed in 5.7.22.

Code cleanup. No changelog entry needed.