skywind3000 / skywind3000/AsyncNet

ubuntu-22.04 编译失败

Open
#4 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
126
Forks
48
PR merge metrics
No merged PRs in 30d

Description

/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);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the failing RingBuffer declarations in system/system.h and compare their calls with the APIs declared in system/imemdata.h and system/inetcode.h. Check the affected calls in source/AsyncExport.cpp, then rebuild on Ubuntu 22.04; done means compilation completes without these signature and missing-symbol errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.