Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error macOS Sierra #103

Closed
weinrank opened this issue Sep 21, 2016 · 4 comments
Closed

Compile error macOS Sierra #103

weinrank opened this issue Sep 21, 2016 · 4 comments
Assignees
Labels

Comments

@weinrank
Copy link
Contributor

See error.txt

error.txt

@jeremyong
Copy link

/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/netinet6/sctp6_usrreq.c:712:7: error: 'OSAtomicCompareAndSwapIntBarrier' is deprecated: first deprecated in macOS 10.12 - Use atomic_compare_exchange_strong() from <stdatomic.h> instead [-Werror,-Wdeprecated-declarations](atomic_cmpset_int%28&inp->sctp_flags, flags, %28flags | SCTP_PCB_FLAGS_SOCKET_GONE | SCTP_PCB_FLAGS_CLOSE_IP%29%29)) {
^
/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/user_atomic.h:57:42: note: expanded from macro 'atomic_cmpset_int'
#define atomic_cmpset_int(dst, exp, src) OSAtomicCompareAndSwapIntBarrier(exp, src, (int _)dst)
^
/usr/include/libkern/OSAtomicDeprecated.h:580:6: note: 'OSAtomicCompareAndSwapIntBarrier' has been explicitly marked deprecated here
bool OSAtomicCompareAndSwapIntBarrier( int __oldValue, int __newValue, volatile int *__theValue );
^
/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/netinet6/sctp6_usrreq.c:1265:3: error: 'OSAtomicAdd32Barrier' is deprecated: first deprecated in macOS 10.12 - Use atomic_fetch_add() from <stdatomic.h> instead [-Werror,-Wdeprecated-declarations]
SCTP_INP_INCR_REF(inp);
^
/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/netinet/sctp_process_lock.h:371:33: note: expanded from macro 'SCTP_INP_INCR_REF'
#define SCTP_INP_INCR_REF(_inp) atomic_add_int(&((_inp)->refcount), 1)
^
/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/user_atomic.h:54:35: note: expanded from macro 'atomic_add_int'
#define atomic_add_int(addr, val) OSAtomicAdd32Barrier(val, (int32_t *)addr)
^
/usr/include/libkern/OSAtomicDeprecated.h:161:9: note: 'OSAtomicAdd32Barrier' has been explicitly marked deprecated here
int32_t OSAtomicAdd32Barrier( int32_t __theAmount, volatile int32_t *__theValue );
^
/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/netinet6/sctp6_usrreq.c:1270:4: error: 'OSAtomicAdd32Barrier' is deprecated: first deprecated in macOS 10.12 - Use atomic_fetch_add() from <stdatomic.h> instead [-Werror,-Wdeprecated-declarations]
SCTP_INP_DECR_REF(inp);
^
/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/netinet/sctp_process_lock.h:372:33: note: expanded from macro 'SCTP_INP_DECR_REF'
#define SCTP_INP_DECR_REF(_inp) atomic_add_int(&((inp)->refcount), -1)
^
/Users/weinrank/Documents/GitHub/usrsctp/usrsctplib/user_atomic.h:54:35: note: expanded from macro 'atomic_add_int'
#define atomic_add_int(addr, val) OSAtomicAdd32Barrier(val, (int32_t *)addr)
^
/usr/include/libkern/OSAtomicDeprecated.h:161:9: note: 'OSAtomicAdd32Barrier' has been explicitly marked deprecated here
int32_t OSAtomicAdd32Barrier( int32_t __theAmount, volatile int32_t *__theValue );
^
3 errors generated.
make[2]: *
* [usrsctplib/CMakeFiles/usrsctp-static.dir/netinet6/sctp6_usrreq.c.o] Error 1
make[1]: *** [usrsctplib/CMakeFiles/usrsctp-static.dir/all] Error 2
make: *** [all] Error 2

@jeremyong
Copy link

(dumped contents of the file, what's the point of uploading it as such? :D)

@andreevym
Copy link

@weinrank
Copy link
Contributor Author

The problem has been fixed by #129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants