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

vncclientthread.cpp:601:43: error: use of undeclared identifier 'TCP_KEEPIDLE' #108

Open
Petross404 opened this issue Mar 7, 2021 · 1 comment

Comments

@Petross404
Copy link

Hi, I cloned the repo and followed the build steps. I am getting this error:

build % ninja
[1/2] Compiling C++ object aqemu.p/src_Embedded_Display_vncclientthread.cpp.o
FAILED: aqemu.p/src_Embedded_Display_vncclientthread.cpp.o 
ccache c++ -Iaqemu.p -I. -I.. -I../src -I/usr/local/Cellar/qt/5.15.2/lib/QtCore.framework/Headers -I/usr/local/Cellar/qt/5.15.2/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.15.2/lib/QtWidgets.framework/Headers -I/usr/local/Cellar/qt/5.15.2/lib/QtNetwork.framework/Headers -I/usr/local/Cellar/qt/5.15.2/lib/QtTest.framework/Headers -I/usr/local/Cellar/qt/5.15.2/lib/QtPrintSupport.framework/Headers -I/usr/local/Cellar/qt/5.15.2/lib/QtDBus.framework/Headers -I/usr/local/include -Xclang -fcolor-diagnostics -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++11 -g -DVNC_DISPLAY -DQTONLY -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -DQT_NETWORK_LIB -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -DQT_TESTLIB_LIB -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -DQT_PRINTSUPPORT_LIB -F/usr/local/Cellar/qt/5.15.2/lib -DQT_WIDGETS_LIB -F/usr/local/Cellar/qt/5.15.2/lib -DQT_GUI_LIB -F/usr/local/Cellar/qt/5.15.2/lib -F/usr/local/Cellar/qt/5.15.2/lib -DQT_DBUS_LIB -F/usr/local/Cellar/qt/5.15.2/lib -DQT_CORE_LIB -F/usr/local/Cellar/qt/5.15.2/lib -MD -MQ aqemu.p/src_Embedded_Display_vncclientthread.cpp.o -MF aqemu.p/src_Embedded_Display_vncclientthread.cpp.o.d -o aqemu.p/src_Embedded_Display_vncclientthread.cpp.o -c ../src/Embedded_Display/vncclientthread.cpp
In file included from ../src/Embedded_Display/vncclientthread.cpp:25:
../src/Embedded_Display/krdc_debug.h:7:9: warning: 'qCritical' macro redefined [-Wmacro-redefined]
#define qCritical(KRDC) qDebug()
        ^
/usr/local/include/QtCore/qlogging.h:167:9: note: previous definition is here
#define qCritical QMessageLogger(QT_MESSAGELOG_FILE, QT_MESSAGELOG_LINE, QT_MESSAGELOG_FUNC).critical
        ^
../src/Embedded_Display/vncclientthread.cpp:265:13: warning: 'vsprintf' is deprecated: Use vasprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
    message.vsprintf(format, args);
            ^
/usr/local/include/QtCore/qstring.h:390:5: note: 'vsprintf' has been explicitly marked deprecated here
    QT_DEPRECATED_X("Use vasprintf(), arg() or QTextStream instead")
    ^
/usr/local/include/QtCore/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X'
#  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
                                ^
/usr/local/include/QtCore/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X'
#    define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text)))
                                                      ^
../src/Embedded_Display/vncclientthread.cpp:601:43: error: use of undeclared identifier 'TCP_KEEPIDLE'
    if (setsockopt(cl->sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen) < 0) {
                                          ^
2 warnings and 1 error generated.
ninja: build stopped: subcommand failed.

Is this a known issue?

@UriZafrir
Copy link

getting the same error. anyone has a solution?

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

2 participants