Hi Everyone,
I'm trying to build the QnetGateway on a Debian 12 system, but it keeps failing. Any suggestions on how to fix this? I was able to get it to work on CentOS, but much prefer Debian if possible.?Thanks in advance!
g++ -W -std=c++11 -Iircddb -DCFG_DIR=\"/usr/local/etc\" -DBIN_DIR=\"/usr/local/bin\" -MMD -MD -c ircddb/IRCDDBApp.cpp -o ircddb/IRCDDBApp.o
g++ -W -std=c++11 -Iircddb -DCFG_DIR=\"/usr/local/etc\" -DBIN_DIR=\"/usr/local/bin\" -MMD -MD -c DPlusAuthenticator.cpp -o DPlusAuthenticator.o
g++ -W -std=c++11 -Iircddb -DCFG_DIR=\"/usr/local/etc\" -DBIN_DIR=\"/usr/local/bin\" -MMD -MD -c UDPSocket.cpp -o UDPSocket.o
ircddb/IRCDDBApp.cpp: In member function ¡®void IRCDDBApp::msgQuery(IRCMessage*)¡¯:
ircddb/IRCDDBApp.cpp:551:18: error: ¡®strcmp¡¯ was not declared in this scope
? 551 |? ? ? ? ?if (0 == strcmp(m->getPrefixNick().substr(0,2).c_str(), "s-") && (m->numParams >= 2))? ?// server msg
? ? ? |? ? ? ? ? ? ? ? ? ^~~~~~
ircddb/IRCDDBApp.cpp:9:1: note: ¡®strcmp¡¯ is defined in header ¡®<cstring>¡¯; did you forget to ¡®#include <cstring>¡¯?
? ? 8 | #include "IRCutils.h"
? +++ |+#include <cstring>
? ? 9 |
g++ -W -std=c++11 -Iircddb -DCFG_DIR=\"/usr/local/etc\" -DBIN_DIR=\"/usr/local/bin\" -MMD -MD -c QnetIcomStack.cpp -o QnetIcomStack.o
g++ -W -std=c++11 -Iircddb -DCFG_DIR=\"/usr/local/etc\" -DBIN_DIR=\"/usr/local/bin\" -MMD -MD -c QnetRemote.cpp -o QnetRemote.o
make: *** [Makefile:60: ircddb/IRCDDBApp.o] Error 1
make: *** Waiting for unfinished jobs....
g++ -W -std=c++11 -Iircddb -DCFG_DIR=\"/usr/local/etc\" -DBIN_DIR=\"/usr/local/bin\" -MMD -MD -c ircddb/IRCDDBApp.cpp -o ircddb/IRCDDBApp.o
ircddb/IRCDDBApp.cpp: In member function ¡®void IRCDDBApp::msgQuery(IRCMessage*)¡¯:
ircddb/IRCDDBApp.cpp:551:18: error: ¡®strcmp¡¯ was not declared in this scope
? 551 |? ? ? ? ?if (0 == strcmp(m->getPrefixNick().substr(0,2).c_str(), "s-") && (m->numParams >= 2))? ?// server msg
? ? ? |? ? ? ? ? ? ? ? ? ^~~~~~
ircddb/IRCDDBApp.cpp:9:1: note: ¡®strcmp¡¯ is defined in header ¡®<cstring>¡¯; did you forget to ¡®#include <cstring>¡¯?
? ? 8 | #include "IRCutils.h"
? +++ |+#include <cstring>
? ? 9 |
make: *** [Makefile:60: ircddb/IRCDDBApp.o] Error 1