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

make: *** [Makefile:22: DCSHandler.o] Error 1 #5

Open
iw0red opened this issue Jan 2, 2025 · 17 comments
Open

make: *** [Makefile:22: DCSHandler.o] Error 1 #5

iw0red opened this issue Jan 2, 2025 · 17 comments

Comments

@iw0red
Copy link

iw0red commented Jan 2, 2025

Hi, there are some compilation errors. Can someone help me?
Thank you.
Marco

Linux vps-12019777 6.1.0-16-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64 GNU/Linux

DCSHandler.cpp: In constructor 'CDCSHandler::CDCSHandler(IReflectorCallback*, const std::string&, const std::string&, CDCSProtocolHandler*, const in_addr&, unsigned int, DIRECTION)':
DCSHandler.cpp:70:20: error: '::time' has not been declared
70 | m_time = ::time(NULL);
| ^~~~
DCSHandler.cpp:24:1: note: 'time' is defined in header ''; did you forget to '#include '?
23 | #include "Utils.h"
+++ |+#include
24 |
DCSHandler.cpp: In static member function 'static void CDCSHandler::writeStatus(FILE*)':
DCSHandler.cpp:744:35: error: '::gmtime' has not been declared
744 | struct tm *tm = ::gmtime(&dcsHandler->m_time);
| ^~~~~~
DCSHandler.cpp:744:35: note: 'gmtime' is defined in header ''; did you forget to '#include '?
DCSHandler.cpp:750:51: error: invalid use of incomplete type 'struct tm'
750 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
In file included from /usr/include/c++/12/cwchar:44,
from /usr/include/c++/12/bits/postypes.h:40,
from /usr/include/c++/12/bits/char_traits.h:39,
from /usr/include/c++/12/string:40,
from DCSHandler.h:23,
from DCSHandler.cpp:22:
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:750:71: error: invalid use of incomplete type 'struct tm'
750 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:750:87: error: invalid use of incomplete type 'struct tm'
750 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:750:100: error: invalid use of incomplete type 'struct tm'
750 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:750:113: error: invalid use of incomplete type 'struct tm'
750 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~

/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:750:125: error: invalid use of incomplete type 'struct tm'
750 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~

/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:758:51: error: invalid use of incomplete type 'struct tm'
758 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:758:71: error: invalid use of incomplete type 'struct tm'
758 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:758:87: error: invalid use of incomplete type 'struct tm'
758 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:758:100: error: invalid use of incomplete type 'struct tm'
758 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~
/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:758:113: error: invalid use of incomplete type 'struct tm'
758 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~

/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
DCSHandler.cpp:758:125: error: invalid use of incomplete type 'struct tm'
758 | tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
| ^~

/usr/include/wchar.h:83:8: note: forward declaration of 'struct tm'
83 | struct tm;
| ^~
make: *** [Makefile:22: DCSHandler.o] Error 1

@F4FXL
Copy link
Owner

F4FXL commented Jan 11, 2025

Is this the same system you are trying to run DStarGateway on ?

@picchiosat
Copy link

same issue on a fresh Debian 12

@picchiosat
Copy link

solved
include #include <ctime> in Utils.h

@F4FXL
Copy link
Owner

F4FXL commented Jan 12, 2025

Glad to hear that you have solved it. I did not have time to look into more details, but I assume you are building master branch?
I would suggest you switch to develop branch, as it has a couple bugfixes.

@picchiosat
Copy link

yep, develop branch working fine...
Do you have any info for a sgs-xl dashboard ??

@F4FXL
Copy link
Owner

F4FXL commented Jan 13, 2025

You can have a look here: https://github.com/K2IE/sgsheard/

@iw0red
Copy link
Author

iw0red commented Jan 14, 2025

Is this the same system you are trying to run DStarGateway on ?

Sorry for the delay.
No it is not the same system

@iw0red
Copy link
Author

iw0red commented Jan 14, 2025

solved include #include <ctime> in Utils.h

I am not a programmer, sorry :-)
Can you explain me what I need to do?
Thank you.

@iw0red
Copy link
Author

iw0red commented Jan 14, 2025

solved include #include <ctime> in Utils.h

I am not a programmer, sorry :-) Can you explain me what I need to do? Thank you.

It works. Thank you.

@F4FXL
Copy link
Owner

F4FXL commented Jan 14, 2025

Build the develop Branch
git checkout develop and then build again

@iw0red
Copy link
Author

iw0red commented Jan 14, 2025

Is that normal?

GATEWAY: VE2VPS G 173.209.61.78
GATEWAY: DB0BQ G 93.211.197.96
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
USER: HB9TUK HB9UCQ B HB9UCQ G 178.192.152.253
getaddrinfo: Name or service not known
GATEWAY: E24DK G 110.78.154.253
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
GATEWAY: DB0BHN G 82.198.222.49
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
GATEWAY: DB0BQ G 93.211.197.96
getaddrinfo: Name or service not known
GATEWAY: DB0BHN G 82.198.222.49
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
USER: PY4EI PY2KGV B PY2KGV G 191.5.129.195
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
GATEWAY: DB0BQ G 93.211.197.96
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
USER: IW9BIP IR9UBR B IR9UBR G 109.54.94.146
USER: PY2RND PY2KIK C PY2KIK G 189.63.235.107
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
GATEWAY: DB0BHN G 82.198.222.49
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
GATEWAY: DB0BQ G 93.211.197.96
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known
GATEWAY: ED1ZAB G 90.167.255.214
getaddrinfo: Name or service not known
GATEWAY: F5ZTE G 91.172.161.77
getaddrinfo: Name or service not known
getaddrinfo: Name or service not known

73 IW0RED

@picchiosat
Copy link

picchiosat commented Jan 15, 2025

wrong configuration in sgs-xl.cfg

@iw0red
Copy link
Author

iw0red commented Jan 15, 2025

Here it is...
I can't find anything wrong.

gateway = {
# this section defines how your Smart Group Server communicates with the outside world
# callsign has to be be a unique login on QuadNet network and also has to be a valid callsign.
# DON'T USE A CALLSIGN ALREADY IN USE for a hotspot or a repeater, find another callsign!
# using the same callsign for two different QuadNet clients (like a gateway and a Smart Group Server) is not allowed!
        callsign = "IR0CQ"
#       address = ""    # this is the computer interface for the outgoing connection. Usually leave it blank and it will use whatever is avaiable.
}

audio = {
        enabled = true
        language = "en_GB" 
}

# NOTHING usually needs to be specified in the ircddb section, quadnet is the default network. To make you groups available on more than Quadnet
# you have to specify all the networks you want including QuadNet
ircddb = ( #ircddb networks in paretheses
        {
                hostname = "rr.openquad.net"
                username = "IR0CQ"      # The ircDDB username default to the value defined for server.callsign.
                password = ""
        },
        {
                hostname = "group1-irc.ircddb.net"
                username = "IR0CQ"      # The ircDDB username default to the value defined for server.callsign.
                password = "xxxxxxxxxxx"
        }
)

remote = {
        enabled = false
        password = "ChangeMe"
        port = 39999                    # choose a port for communcation. Wherever the server is running, this port on its local network needs to be open.
}

module = ( # The modules list is contained in parentheses

        {                               # Up to 15 different modules can be specified, each in curly brackets
                band = "A"              # Each module has to have a band letter
                basename = "TG22203"    # Has to be less than 8 characters
                subscribe = "A"         # A single upper case letter or a space
                unsubscribe = "T"       # A single upper case letter different from subscribe
# info has to be less than 21 chars, otherwise it will be set to the default
                info = "TG22203 BM"
# permanent is a comma-seperated list of callsigns that, once logged in, will never be unsubscribed
# permanent must be less than 121 characters long
                permanent = ""
                usertimeout = 20        # if a user is inactive for this many minutes, they will be automatically unsubscribed
                callsignswitch = false
                txmsgswitch = true
                reflector = "DCS039 I"
        },                             # be sure there is a comma between modules
       {
                band = "B"
                basename = "TG22251"
                subscribe = "A"
                unsubscribe = "T"
                info = "TG22251 BM"
                permanent = ""
                usertimeout = 20
                callsignswitch = false
                txmsgswitch = true
                reflector = "DCS039 R"
        },
        {
                band = "C"
                basename = "DSTARIT"
                subscribe = "A"
                unsubscribe = "T"
                info = "smart group DstarIta"
                usertimeout = 20
                callsignswitch = false
                txmsgswitch = true
                reflector = "DCS039 B"
        },

       {
                band = "D"
                basename = "MULTIIT"
                subscribe = "A"
                unsubscribe = "T"
                info = "smart group MultiIT"
                usertimeout = 20
                callsignswitch = false
                txmsgswitch = true
                reflector = "DCS068 C"
        }

)                                               # close paren to close out the module defines

@F4FXL
Copy link
Owner

F4FXL commented Jan 15, 2025

please repost you config and make sure to wrap it all into code tags

@iw0red
Copy link
Author

iw0red commented Jan 16, 2025

Sorry!

@F4FXL
Copy link
Owner

F4FXL commented Jan 17, 2025

Looks good to me....

@iw0red
Copy link
Author

iw0red commented Jan 18, 2025

For me too :-)
What do you suggest?
RED

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

3 participants