Bug #88675 backport 26666594 to 5.7
Submitted: 28 Nov 2017 8:39 Modified: 29 Nov 2017 19:29
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.7.22 OS:Any
Assigned to: CPU Architecture:Any

[28 Nov 2017 8:39] Tor Didriksen
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:
Build on OsX

Suggested fix:
Backport patch for
    Bug #26666594: SYSCALL WARNINGS IN MACOS
[29 Nov 2017 19:29] Paul DuBois
Posted by developer:
 
Fixed in 5.7.22.

Code cleanup. No changelog entry needed.
[7 Jan 2018 0:50] Marius Schamschula
It sure would be nice if the back ported patch would be publicly available. It currently is a blocker for installing mysql 5.7 using MacPorts under High Sierra,