ubuntu-22.04 编译失败
/root/source-code/AsyncNet/tools/emake.py:2063: DeprecationWarning: 'U' mode is deprecated for text in open(self.makefile, 'U'): ___ _ __ __ / | _______ ______ _____ / | / /__ / /_ / /| | / / / / / __ / / / |/ / _ / / / ___ |( ) // / / / / / / /| / _/ / // |//_, // //_/ // |/_/_/ /___/ /root/source-code/AsyncNet/tools/emake.py:2472: DeprecationWarning: 'U' mode is deprecated for line in open(self._depname, 'U'): compiling ... source/AsyncExport.cpp In file included from source/TraceLog.h:4, from source/AsyncExport.cpp:20: source/../system/system.h: In member function ‘ilong System::RingBuffer::size()’: source/../system/system.h:868:31: error: ‘iring_dsize’ was not declared in this scope; did you mean ‘iring_write’? 868 | ilong size() { return iring_dsize(&_ring); } | ^~~~~~~~~~~ | iring_write source/../system/system.h: In member function ‘ilong System::RingBuffer::space()’: source/../system/system.h:871:32: error: ‘iring_fsize’ was not declared in this scope; did you mean ‘iring_write’? 871 | ilong space() { return iring_fsize(&_ring); } | ^~~~~~~~~~~ | iring_write source/../system/system.h: In member function ‘ilong System::RingBuffer::write(const void*, ilong)’: source/../system/system.h:874:79: error: invalid conversion from ‘const void*’ to ‘ilong’ {aka ‘long int’} [-fpermissive] 874 | ilong write(const void ptr, ilong size) { return iring_write(&_ring, ptr, size); } | ^~~ | | | const void source/../system/system.h:874:84: error: invalid conversion from ‘ilong’ {aka ‘long int’} to ‘const void*’ [-fpermissive] 874 | ilong write(const void ptr, ilong size) { return iring_write(&_ring, ptr, size); } | ^~~~ | | | ilong {aka long int} source/../system/system.h:874:70: error: too few arguments to function ‘ilong iring_write(IRING, ilong, const void*, ilong)’ 874 | ilong write(const void ptr, ilong size) { return iring_write(&_ring, ptr, size); } | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from source/../system/system.h:50, from source/TraceLog.h:4, from source/AsyncExport.cpp:20: source/../system/imemdata.h:1307:7: note: declared here 1307 | ilong iring_write(struct IRING ring, ilong pos, const void ptr, ilong len); | ^~~~~~~~~~~ In file included from source/TraceLog.h:4, from source/AsyncExport.cpp:20: source/../system/system.h: In member function ‘ilong System::RingBuffer::read(void, ilong)’: source/../system/system.h:877:71: error: invalid conversion from ‘void’ to ‘ilong’ {aka ‘long int’} [-fpermissive] 877 | ilong read(void ptr, ilong size) { return iring_read(&_ring, ptr, size); } | ^~~ | | | void source/../system/system.h:877:76: error: invalid conversion from ‘ilong’ {aka ‘long int’} to ‘void’ [-fpermissive] 877 | ilong read(void ptr, ilong size) { return iring_read(&_ring, ptr, size); } | ^~~~ | | | ilong {aka long int} source/../system/system.h:877:62: error: too few arguments to function ‘ilong iring_read(const IRING, ilong, void*, ilong)’ 877 | ilong read(void ptr, ilong size) { return iring_read(&_ring, ptr, size); } | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from source/../system/system.h:50, from source/TraceLog.h:4, from source/AsyncExport.cpp:20: source/../system/imemdata.h:1304:7: note: declared here 1304 | ilong iring_read(const struct IRING ring, ilong pos, void ptr, ilong len); | ^~~~~~~~~~ In file included from source/TraceLog.h:4, from source/AsyncExport.cpp:20: source/../system/system.h: In member function ‘ilong System::RingBuffer::peek(void, ilong)’: source/../system/system.h:880:52: error: ‘iring_peek’ was not declared in this scope; did you mean ‘iring_read’? 880 | ilong peek(void ptr, ilong size) { return iring_peek(&_ring, ptr, size); } | ^~~~~~~~~~ | iring_read source/../system/system.h: In member function ‘ilong System::RingBuffer::drop(ilong)’: source/../system/system.h:883:41: error: ‘iring_drop’ was not declared in this scope; did you mean ‘iring_swap’? 883 | ilong drop(ilong size) { return iring_drop(&_ring, size); } | ^~~~~~~~~~ | iring_swap source/../system/system.h: In member function ‘void System::RingBuffer::clear()’: source/../system/system.h:886:24: error: ‘iring_clear’ was not declared in this scope; did you mean ‘iring_read’? 886 | void clear() { iring_clear(&_ring); } | ^~~~~~~~~~~ | iring_read source/../system/system.h: In member function ‘ilong System::RingBuffer::put(ilong, const void, ilong)’: source/../system/system.h:892:69: error: ‘iring_put’ was not declared in this scope; did you mean ‘iring_t’? 892 | ilong put(ilong pos, const void data, ilong size) { return iring_put(&_ring, pos, data, size); } | ^~~~~~~~~ | iring_t source/../system/system.h: In member function ‘ilong System::RingBuffer::get(ilong, void, ilong)’: source/../system/system.h:895:63: error: ‘iring_get’ was not declared in this scope; did you mean ‘iring_t’? 895 | ilong get(ilong pos, void data, ilong size) { return iring_get(&_ring, pos, data, size); } | ^~~~~~~~~ | iring_t source/../system/system.h: In member function ‘bool System::RingBuffer::swap(void, ilong)’: source/../system/system.h:898:61: error: could not convert ‘iring_swap((&((System::RingBuffer)this)->System::RingBuffer::_ring), ptr, size)’ from ‘void’ to ‘bool’ 898 | bool swap(void ptr, ilong size) { return iring_swap(&_ring, ptr, size)? false : true; } | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | | | void source/../system/system.h: In member function ‘ilong System::RingBuffer::ring_ptr(char, ilong*, char**, ilong*)’: source/../system/system.h:901:77: error: ‘iring_ptr’ was not declared in this scope; did you mean ‘ring_ptr’? 901 | ilong ring_ptr(char **p1, ilong *s1, char p2, ilong s2) { return iring_ptr(&_ring, p1, s1, p2, s2); } | ^~~~~~~~~ | ring_ptr source/../system/system.h: In member function ‘int System::AsyncSock::assign(int, int)’: source/../system/system.h:979:41: error: too few arguments to function ‘int async_sock_assign(CAsyncSock, int, int, int)’ 979 | return async_sock_assign(_sock, fd, header); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from source/../system/system.h:52, from source/TraceLog.h:4, from source/AsyncExport.cpp:20: source/../system/inetcode.h:135:5: note: declared here 135 | int async_sock_assign(CAsyncSock asyncsock, int sock, int header, int estab); | ^~~~~~~~~~~~~~~~~ source/AsyncExport.cpp: In function ‘int asn_sock_assign(AsyncSock, int, int)’: source/AsyncExport.cpp:394:33: error: too few arguments to function ‘int async_sock_assign(CAsyncSock, int, int, int)’ 394 | return async_sock_assign((CAsyncSock)sock, fd, head); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from source/../system/system.h:52, from source/TraceLog.h:4, from source/AsyncExport.cpp:20: source/../system/inetcode.h:135:5: note: declared here 135 | int async_sock_assign(CAsyncSock *asyncsock, int sock, int header, int estab);
iring_dsize iring_fsize iring_peek iring_drop iring_clear iring_put iring_get iring_ptr not declared in this scope