- Status Closed
- Percent Complete
- Task Type Bug Report
- Category QCAD (main)
-
Assigned To
Andrew - Operating System Linux (All / Other)
- Severity Critical
- Priority Very Low
- Reported Version 3.0.9 (snapshot)
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#815 - PATCH - Qcad 3.0.14 and 3.1.0.3 : Patch to fix compilation failure '::getuid' has not been declared
Hello,
When I try to compile Qcad 3.0.14 and 3.1.0.3 with Gcc 4.7.2 anf Glibc 2.17 on Mageia Linux 3 , I have the following error :
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQCAD_DLL -DPTHREADS -DHAVE_PTHREAD_H -DQCADCORE_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_SCRIPTTOOLS_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtHelp -I/usr/include/QtDesigner -I/usr/include/QtUiTools -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtOpenGL -I/usr/include/QtXml -I/usr/include/QtXmlPatterns -I/usr/include/QtSql -I/usr/include/QtSvg -I/usr/include/QtScriptTools -I/usr/include/QtScript -I/usr/include/QtWebKit -I/usr/include -I. -Imath -I../grid -I../snap -I../gui -I../entity -I../operations -I../scripting -I../stemmer -I../scripting/ecmaapi -I../scripting/ecmaapi/generated -I../scripting/ecmaapi/adapters -I../io/dxf -I../spatialindex -I../3rdparty -I/usr/include -Irelease -o release/RLocalPeer.o RLocalPeer.cpp
RLocalPeer.cpp: In constructor ‘RLocalPeer::RLocalPeer(QObject*, const QString&)’:
RLocalPeer.cpp:65:54: error: ‘::getuid’ has not been declared
make[3]: * [release/RLocalPeer.o] Error 1
make[3]: Leaving directory `/home/user/projet-qcad/qcad-3.0.14.0/src/core’
make[2]: * [release] Error 2
Thanks . Please note that compilation with Gcc 4.7.x is already fixed in the master branch.
Patch file added in this ticket that fix this problem : RLocalPeer-getuid-error-bugfix.patch
I found the fix for this error here : qt.gitorious .org/qt-solutions/qt-solutions/commit/a4476ad0e133da04fc0c2d4f4b2434469f8f11d8