Skip to content

Instantly share code, notes, and snippets.

@rwebaz
Last active February 8, 2018 03:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwebaz/b71f520970c456745b4a93842a02bbe4 to your computer and use it in GitHub Desktop.
Save rwebaz/b71f520970c456745b4a93842a02bbe4 to your computer and use it in GitHub Desktop.
Mac Os 10.12: syscall now deprecated

Note. The original description of this GIST was ...

Original GIST Description ... Macports 2nd Instance Make; 50 Count Warnings; All Syscall Deprecated; Please Switch To A Supported Interface

Warning: 'syscall' is deprecated: First deprecated in MacOS 10.12 - syscall(2) is unsupported; Please switch to a supported interface

Mac OSX Sierra 10.12.3 (16D32)

Looks like an issue w the Macports 2.4.1 Binary Archive (.tar.gz);

Clang still hitting the now deprecated SysCall interface;

Says it needs a Supported Interface ...

Currently running Developer Tools Version: 8.2.1 (8C1002):

Location:	/Applications/Xcode.app
Applications:
Xcode:	8.2.1 (11766.1)
Instruments:	8.2 (61756)

Note. Also Have Developer Tools Version 8.3 (8W143q) installed locally, as well:

Applications:
Xcode:	8.3 (12156.3)
Instruments:	8.3 (62118)

Note. The compilation phase of this install was completed without any warnings.

Here's where the make hit the speed-bump ... 50 times!

From the Terminal,

===> making all in src/darwintracelib1.0
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o access.o access.c
access.c:52:12: 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]
                result = access(path, amode);
                         ^
access.c:43:22: note: expanded from macro 'access'
#define access(x, y) syscall(SYS_access, (x), (y))
                     ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
access.c:52:12: 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]
                result = access(path, amode);
                         ^
access.c:43:22: note: expanded from macro 'access'
#define access(x, y) syscall(SYS_access, (x), (y))
                     ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o close.o close.c
close.c:64:9: 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 close(fd);
               ^
close.c:52:18: note: expanded from macro 'close'
#define close(x) syscall(SYS_close, (x))
                 ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
close.c:64:9: 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 close(fd);
               ^
close.c:52:18: note: expanded from macro 'close'
#define close(x) syscall(SYS_close, (x))
                 ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o darwintrace.o darwintrace.c
darwintrace.c:320:12: warning: 'OSAtomicCompareAndSwapPtr' is deprecated: first deprecated in macOS 10.12 - Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from <stdatomic.h> instead
      [-Wdeprecated-declarations]
        } while (!CAS(NULL, newfilemap, &filemap));
                  ^
darwintrace.c:291:29: note: expanded from macro 'CAS'
#       define CAS(old, new, mem) OSAtomicCompareAndSwapPtr(old, new, (void * volatile *) (mem))
                                  ^
/usr/include/libkern/OSAtomicDeprecated.h:531:6: note: 'OSAtomicCompareAndSwapPtr' has been explicitly marked deprecated here
bool    OSAtomicCompareAndSwapPtr( void *__oldValue, void *__newValue, void * volatile *__theValue );
        ^
darwintrace.c:481:12: 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]
        if (-1 == lstat(path, &st)) {
                  ^
darwintrace.c:475:21: note: expanded from macro 'lstat'
#define lstat(y, z) syscall(LSTATSYSNUM, (y), (z))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:654:13: 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]
                if (-1 != lstat(path, &st) && S_ISDIR(st.st_mode)) {
                          ^
darwintrace.c:641:20: note: expanded from macro 'lstat'
#define lstat(x,y) syscall(LSTATSYSNUM, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:777:14: 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]
                if (-1 == (getattrlist(".", &attrlist, attrbuf, sizeof(attrbuf), FSOPT_NOFOLLOW))) {
                           ^
darwintrace.c:725:32: note: expanded from macro 'getattrlist'
#define getattrlist(v,w,x,y,z) syscall(SYS_getattrlist, (v), (w), (x), (y), (z))
                               ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:897:14: 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]
                if (-1 == (getattrlist(normPath, &attrlist, attrbuf, sizeof(attrbuf), FSOPT_NOFOLLOW))) {
                           ^
darwintrace.c:725:32: note: expanded from macro 'getattrlist'
#define getattrlist(v,w,x,y,z) syscall(SYS_getattrlist, (v), (w), (x), (y), (z))
                               ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:955:7: 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]
                if (lstat(normPath, &st) != -1 && S_ISLNK(st.st_mode)) {
                    ^
darwintrace.c:723:21: note: expanded from macro 'lstat'
#define lstat(x, y) syscall(LSTATSYSNUM, (x), (y))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:964:26: 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]
                        if (-1 == (linksize = readlink(normPath, link, sizeof(link)))) {
                                              ^
darwintrace.c:724:25: note: expanded from macro 'readlink'
#define readlink(x,y,z) syscall(SYS_readlink, (x), (y), (z))
                        ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
7 warnings generated.
darwintrace.c:320:12: warning: 'OSAtomicCompareAndSwapPtr' is deprecated: first deprecated in macOS 10.12 - Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from <stdatomic.h> instead
      [-Wdeprecated-declarations]
        } while (!CAS(NULL, newfilemap, &filemap));
                  ^
darwintrace.c:291:29: note: expanded from macro 'CAS'
#       define CAS(old, new, mem) OSAtomicCompareAndSwapPtr(old, new, (void * volatile *) (mem))
                                  ^
/usr/include/libkern/OSAtomicDeprecated.h:531:6: note: 'OSAtomicCompareAndSwapPtr' has been explicitly marked deprecated here
bool    OSAtomicCompareAndSwapPtr( void *__oldValue, void *__newValue, void * volatile *__theValue );
        ^
darwintrace.c:481:12: 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]
        if (-1 == lstat(path, &st)) {
                  ^
darwintrace.c:475:21: note: expanded from macro 'lstat'
#define lstat(y, z) syscall(LSTATSYSNUM, (y), (z))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:654:13: 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]
                if (-1 != lstat(path, &st) && S_ISDIR(st.st_mode)) {
                          ^
darwintrace.c:641:20: note: expanded from macro 'lstat'
#define lstat(x,y) syscall(LSTATSYSNUM, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:777:14: 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]
                if (-1 == (getattrlist(".", &attrlist, attrbuf, sizeof(attrbuf), FSOPT_NOFOLLOW))) {
                           ^
darwintrace.c:725:32: note: expanded from macro 'getattrlist'
#define getattrlist(v,w,x,y,z) syscall(SYS_getattrlist, (v), (w), (x), (y), (z))
                               ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:897:14: 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]
                if (-1 == (getattrlist(normPath, &attrlist, attrbuf, sizeof(attrbuf), FSOPT_NOFOLLOW))) {
                           ^
darwintrace.c:725:32: note: expanded from macro 'getattrlist'
#define getattrlist(v,w,x,y,z) syscall(SYS_getattrlist, (v), (w), (x), (y), (z))
                               ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:955:7: 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]
                if (lstat(normPath, &st) != -1 && S_ISLNK(st.st_mode)) {
                    ^
darwintrace.c:723:21: note: expanded from macro 'lstat'
#define lstat(x, y) syscall(LSTATSYSNUM, (x), (y))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
darwintrace.c:964:26: 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]
                        if (-1 == (linksize = readlink(normPath, link, sizeof(link)))) {
                                              ^
darwintrace.c:724:25: note: expanded from macro 'readlink'
#define readlink(x,y,z) syscall(SYS_readlink, (x), (y), (z))
                        ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
7 warnings generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o dup2.o dup2.c
dup2.c:73:9: 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 dup2(filedes, filedes2);
               ^
dup2.c:50:20: note: expanded from macro 'dup2'
#define dup2(x, y) syscall(SYS_dup2, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
dup2.c:73:9: 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 dup2(filedes, filedes2);
               ^
dup2.c:50:20: note: expanded from macro 'dup2'
#define dup2(x, y) syscall(SYS_dup2, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o mkdir.o mkdir.c
mkdir.c:63:13: 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]
                if (-1 == lstat(path, &st) && errno == ENOENT) {
                          ^
mkdir.c:56:20: note: expanded from macro 'lstat'
#define lstat(x,y) syscall(LSTATSYSNUM, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
mkdir.c:70:12: 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]
                result = mkdir(path, mode);
                         ^
mkdir.c:55:20: note: expanded from macro 'mkdir'
#define mkdir(x,y) syscall(SYS_mkdir, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
2 warnings generated.
mkdir.c:63:13: 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]
                if (-1 == lstat(path, &st) && errno == ENOENT) {
                          ^
mkdir.c:56:20: note: expanded from macro 'lstat'
#define lstat(x,y) syscall(LSTATSYSNUM, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
mkdir.c:70:12: 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]
                result = mkdir(path, mode);
                         ^
mkdir.c:55:20: note: expanded from macro 'mkdir'
#define mkdir(x,y) syscall(SYS_mkdir, (x), (y))
                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
2 warnings generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o open.o open.c
open.c:65:12: 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]
                result = open(path, flags, mode);
                         ^
open.c:50:21: note: expanded from macro 'open'
#define open(x,y,z) syscall(SYS_open, (x), (y), (z))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
open.c:65:12: 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]
                result = open(path, flags, mode);
                         ^
open.c:50:21: note: expanded from macro 'open'
#define open(x,y,z) syscall(SYS_open, (x), (y), (z))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o proc.o proc.c
proc.c:208:11: 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]
        int fd = open(path, O_RDONLY, 0);
                 ^
proc.c:206:21: note: expanded from macro 'open'
#define open(x,y,z) syscall(SYS_open, (x), (y), (z))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
proc.c:223:2: 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]
        close(fd);
        ^
proc.c:207:18: note: expanded from macro 'close'
#define close(x) syscall(SYS_close, (x))
                 ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
2 warnings generated.
proc.c:208:11: 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]
        int fd = open(path, O_RDONLY, 0);
                 ^
proc.c:206:21: note: expanded from macro 'open'
#define open(x,y,z) syscall(SYS_open, (x), (y), (z))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
proc.c:223:2: 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]
        close(fd);
        ^
proc.c:207:18: note: expanded from macro 'close'
#define close(x) syscall(SYS_close, (x))
                 ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
2 warnings generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o readdir.o readdir.c
readdir.c:71:14: 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]
        size_t sz = __getdirentries64(fd, buf, bufsize, basep);
                    ^
readdir.c:68:36: note: expanded from macro '__getdirentries64'
#define __getdirentries64(w,x,y,z) syscall(SYS_getdirentries64, (w), (x), (y), (z))
                                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
readdir.c:128:14: 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]
        size_t sz = getdirentries(fd, buf, nbytes, basep);
                    ^
readdir.c:125:32: note: expanded from macro 'getdirentries'
#define getdirentries(w,x,y,z) syscall(SYS_getdirentries, (w), (x), (y), (z))
                               ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
2 warnings generated.
readdir.c:71:14: 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]
        size_t sz = __getdirentries64(fd, buf, bufsize, basep);
                    ^
readdir.c:68:36: note: expanded from macro '__getdirentries64'
#define __getdirentries64(w,x,y,z) syscall(SYS_getdirentries64, (w), (x), (y), (z))
                                   ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
readdir.c:128:14: 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]
        size_t sz = getdirentries(fd, buf, nbytes, basep);
                    ^
readdir.c:125:32: note: expanded from macro 'getdirentries'
#define getdirentries(w,x,y,z) syscall(SYS_getdirentries, (w), (x), (y), (z))
                               ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
2 warnings generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o readlink.o readlink.c
readlink.c:62:12: 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]
                result = readlink(path, buf, bufsiz);
                         ^
readlink.c:51:25: note: expanded from macro 'readlink'
#define readlink(x,y,z) syscall(SYS_readlink, (x), (y), (z))
                        ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
readlink.c:62:12: 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]
                result = readlink(path, buf, bufsiz);
                         ^
readlink.c:51:25: note: expanded from macro 'readlink'
#define readlink(x,y,z) syscall(SYS_readlink, (x), (y), (z))
                        ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o rename.o rename.c
rename.c:60:12: 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]
                result = rename(from, to);
                         ^
rename.c:48:21: note: expanded from macro 'rename'
#define rename(x,y) syscall(SYS_rename, (x), (y))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
rename.c:60:12: 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]
                result = rename(from, to);
                         ^
rename.c:48:21: note: expanded from macro 'rename'
#define rename(x,y) syscall(SYS_rename, (x), (y))
                    ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o rmdir.o rmdir.c
rmdir.c:57:12: 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]
                result = rmdir(path);
                         ^
rmdir.c:48:18: note: expanded from macro 'rmdir'
#define rmdir(x) syscall(SYS_rmdir, (x))
                 ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
rmdir.c:57:12: 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]
                result = rmdir(path);
                         ^
rmdir.c:48:18: note: expanded from macro 'rmdir'
#define rmdir(x) syscall(SYS_rmdir, (x))
                 ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o sip_copy_proc.o sip_copy_proc.c
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o stat.o stat.c
stat.c:58:12: 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]
                result = stat(path, sb);
                         ^
stat.c:49:24: note: expanded from macro 'stat'
#define stat(path, sb) syscall(SYS_stat, path, sb)
                       ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
stat.c:84:12: 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]
                result = stat64(path, sb);
                         ^
stat.c:75:26: note: expanded from macro 'stat64'
#define stat64(path, sb) syscall(SYS_stat64, path, sb)
                         ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
stat.c:111:12: 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]
                result = lstat(path, sb);
                         ^
stat.c:101:25: note: expanded from macro 'lstat'
#define lstat(path, sb) syscall(SYS_lstat, path, sb)
                        ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
stat.c:136:12: 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]
                result = lstat64(path, sb);
                         ^
stat.c:126:27: note: expanded from macro 'lstat64'
#define lstat64(path, sb) syscall(SYS_lstat64, path, sb)
                          ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
4 warnings generated.
stat.c:58:12: 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]
                result = stat(path, sb);
                         ^
stat.c:49:24: note: expanded from macro 'stat'
#define stat(path, sb) syscall(SYS_stat, path, sb)
                       ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
stat.c:84:12: 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]
                result = stat64(path, sb);
                         ^
stat.c:75:26: note: expanded from macro 'stat64'
#define stat64(path, sb) syscall(SYS_stat64, path, sb)
                         ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
stat.c:111:12: 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]
                result = lstat(path, sb);
                         ^
stat.c:101:25: note: expanded from macro 'lstat'
#define lstat(path, sb) syscall(SYS_lstat, path, sb)
                        ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
stat.c:136:12: 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]
                result = lstat64(path, sb);
                         ^
stat.c:126:27: note: expanded from macro 'lstat64'
#define lstat64(path, sb) syscall(SYS_lstat64, path, sb)
                          ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
4 warnings generated.
clang -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/macports241/MacPorts-2.4.1/src -I/opt/macports241/MacPorts-2.4.1/src -I. -I/opt/macports241/MacPorts-2.4.1/vendor/vendor-destroot//opt/Macports241/libexec/macports/include  -c -o unlink.o unlink.c
unlink.c:57:12: 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]
                result = unlink(path);
                         ^
unlink.c:48:19: note: expanded from macro 'unlink'
#define unlink(x) syscall(SYS_unlink, (x))
                  ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
unlink.c:57:12: 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]
                result = unlink(path);
                         ^
unlink.c:48:19: note: expanded from macro 'unlink'
#define unlink(x) syscall(SYS_unlink, (x))
                  ^
/usr/include/unistd.h:733:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 warning generated.
clang -dynamiclib -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386  -Wl,-single_module access.o close.o darwintrace.o dup2.o mkdir.o open.o proc.o readdir.o readlink.o rename.o rmdir.o sip_copy_proc.o stat.o unlink.o -o darwintrace.dylib  -arch x86_64 -arch i386
===> making all in src/port
sed -e 's,@TCLSH\@,/opt/Macports241/libexec/macports/bin/tclsh8.5,g' ./portmirror.tcl > portmirror
sed -e 's,@TCLSH\@,/opt/Macports241/libexec/macports/bin/tclsh8.5,g' ./portindex.tcl > portindex
sed -e 's,@TCLSH\@,/opt/Macports241/libexec/macports/bin/tclsh8.5,g' ./port.tcl > port
===> making all in src/programs
===> making all in src/programs/daemondo
mkdir -p build
===> making all in tests
make[1]: Nothing to be done for `all'.

Note. Adding triple backticks envelope to Terminal data here to accommodate Rainer Müller's request to spruce up da markdown file.

C=> https://trac.macports.org/ticket/53843#comment:4

Per Rainer Müller: "The compiler warnings are normal and expected. syscall(2) is deprecated and the corresponding code in darwintracelib1.0 will need to be rewritten in the future."

And, Ryan Schmidt adds ... "It is true that the 'darwintracelib' part of MacPorts does use syscall, and according to the warnings shown in your transcript this does appear to be deprecated as of Sierra, so I guess we should look for an alternative (while still maintaining compatibility with older systems)."

C=> https://trac.macports.org/ticket/53843#comment:3

Please also note per Frank Schima ... "The Priority and Milestone fields are for use by Macports team members only."

C=> https://trac.macports.org/ticket/53843#comment:1

Looks like the Title of the GIST is requested to be changed by Frank Schima, as well:

Pls change from 'Macports 2nd Instance Make 50 Count Warnings Syscall Deprecated Need Supported Interface' to 'Warning: 'syscall' is deprecated: First deprecated in MacOS 10.12 - syscall(2) is unsupported; Please switch to a supported interface'.

C=> https://trac.macports.org/ticket/53843#comment:2

Sorry ... Cannot change the permanent title to this 'Private' GIST ( at least I cannot see a way to do so at this time ).

But, can change the current description tag from 'Macports 2nd Instance Make' to accommodate change to 'Warning' ... etc.

Done.

Robert.

P.S. Looks like the keywords: 'Macports, Base, Make, Syscall, Deprecated, and Interface' were removed by the author of Comment #2, as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment