Giter Club home page Giter Club logo

Comments (4)

weinrank avatar weinrank commented on July 17, 2024 1

The problem has been fixed by #129

from usrsctp.

jeremyong avatar jeremyong commented on July 17, 2024

/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

from usrsctp.

jeremyong avatar jeremyong commented on July 17, 2024

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

from usrsctp.

andreevym avatar andreevym commented on July 17, 2024

I fix same problem
see:
http://stackoverflow.com/a/41909455/4828657
cloudflare/cfssl@4866911

from usrsctp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.