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

Unable to compile YSFGateway (#aecc34e) in Debian 12 #310

Open
f5bcb opened this issue Jul 3, 2024 · 0 comments
Open

Unable to compile YSFGateway (#aecc34e) in Debian 12 #310

f5bcb opened this issue Jul 3, 2024 · 0 comments

Comments

@f5bcb
Copy link

f5bcb commented Jul 3, 2024

On a Debian Bookworm machine, I'm unable to compile the last master release of YSFGateway.
Hereunder what I get.

jeff@desktop-DEBIAN:/opt/YSFClients/YSFGateway$ sudo make
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o APRSWriter.o APRSWriter.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o Conf.o Conf.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o CRC.o CRC.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o DTMF.o DTMF.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o FCSNetwork.o FCSNetwork.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o Golay24128.o Golay24128.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o GPS.o GPS.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o Log.o Log.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o StopWatch.o StopWatch.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o Sync.o Sync.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o Thread.o Thread.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o Timer.o Timer.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o UDPSocket.o UDPSocket.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o Utils.o Utils.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o WiresX.o WiresX.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o YSFConvolution.o YSFConvolution.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o YSFFICH.o YSFFICH.cpp
echo "const char gitversion = "aecc34ee64d9409b65d7ee3c6cd5ea18e73d3cc7";" > GitVersion.h
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o YSFGateway.o YSFGateway.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o YSFNetwork.o YSFNetwork.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o YSFPayload.o YSFPayload.cpp
c++ -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -c -o YSFReflectors.o YSFReflectors.cpp
YSFReflectors.cpp: In member function ‘std::vector<CYSFReflector
>& CYSFReflectors::search(const std::string&)’:
YSFReflectors.cpp:353:102: warning: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result ()(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
353 | trimmed.erase(std::find_if(trimmed.rbegin(), trimmed.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), trimmed.end());
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:48,
from UDPSocket.h:22,
from YSFReflectors.h:22,
from YSFReflectors.cpp:19:
/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (
__x)(_Arg))
| ^~~~~~~
YSFReflectors.cpp:361:116: warning: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result ()(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
361 | reflector.erase(std::find_if(reflector.rbegin(), reflector.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), reflector.end());
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (
__x)(_Arg))
| ^~~~~~~
c++ APRSWriter.o Conf.o CRC.o DTMF.o FCSNetwork.o Golay24128.o GPS.o Log.o StopWatch.o Sync.o Thread.o Timer.o UDPSocket.o Utils.o WiresX.o YSFConvolution.o YSFFICH.o YSFGateway.o YSFNetwork.o YSFPayload.o YSFReflectors.o -g -O3 -Wall -DHAVE_LOG_H -std=c++0x -pthread -lm -lpthread -o YSFGateway
jeff@desktop-DEBIAN:/opt/YSFClients/YSFGateway$

I I launch the gateway, the result is 👍
jeff@desktop-DEBIAN:/opt/YSFClients/YSFGateway$ sudo ./YSFGateway /opt/conf_mmdvm/YSFGateway.ini
M: 2024-07-03 19:04:27.571 Opening YSF network connection
I: 2024-07-03 19:04:27.571 Opening UDP port on 4200
M: 2024-07-03 19:04:27.571 Resolving FCS999 address
M: 2024-07-03 19:04:27.615 Opening FCS network connection
I: 2024-07-03 19:04:27.615 Opening UDP port on 42001
I: 2024-07-03 19:04:27.615 The ID of this repeater is 74886
I: 2024-07-03 19:04:27.617 Loaded 2300 FCS room descriptions
I: 2024-07-03 19:04:27.620 Loaded 1488 YSF reflectors
I: 2024-07-03 19:04:27.620 Loaded YSF parrot
I: 2024-07-03 19:04:27.620 Loaded YSF2DMR
I: 2024-07-03 19:04:27.620 Loaded YSF2NXDN
I: 2024-07-03 19:04:27.620 Loaded YSF2P25
M: 2024-07-03 19:04:27.681 No connection startup
M: 2024-07-03 19:04:27.681 YSFGateway-20240129 is starting
M: 2024-07-03 19:04:27.681 Built 20:53:12 Jul 3 2024 (GitID #aecc34e)
YSFGateway: UDPSocket.cpp:224: int CUDPSocket::read(unsigned char*, unsigned int, sockaddr_storage&, unsigned int&): Assertion `m_fd >= 0' failed.
Abandon
jeff@desktop-DEBIAN:/opt/YSFClients/YSFGateway$

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

No branches or pull requests

1 participant