QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help > Check for Updates)


FS#815 - PATCH - Qcad 3.0.14 and : Patch to fix compilation failure '::getuid' has not been declared

Attached to Project: QCAD
Opened by - (yannick56) - Sunday, 26 May 2013, 18:49 GMT+1
Last edited by Andrew (andrew) - Sunday, 26 May 2013, 18:55 GMT+1
Task Type Bug Report
Category QCAD (main)
Status Closed
Assigned To Andrew (andrew)
Operating System Linux (All / Other)
Severity Critical
Priority Normal
Reported Version 3.0.9 (snapshot)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



When I try to compile Qcad 3.0.14 and 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-’ make[2]:
* [release] Error 2

This task depends upon

Closed by  Andrew (andrew)
Sunday, 26 May 2013, 18:55 GMT+1
Reason for closing:  Fixed
Comment by Andrew (andrew) - Sunday, 26 May 2013, 18:55 GMT+1

Thanks . Please note that compilation with Gcc 4.7.x is already fixed in the master branch.

Comment by - (yannick56) - Sunday, 26 May 2013, 18:56 GMT+1

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