QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • 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
Attached to Project: QCAD Bugtracker
Opened by - - 26.05.2013
Last edited by Andrew - 26.05.2013

FS#816 - PATCH - Qcad 3.0.14 and 3.1.0.3 : fix compilation error _SC_NPROCESSORS_ONLN' was not declared scope

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/RS.o RS.cpp
RS.cpp: In static member function ‘static int RS::getCPUCores()’:
RS.cpp:111:22: error: ‘_SC_NPROCESSORS_ONLN’ was not declared in this scope
RS.cpp:111:43: error: ‘sysconf’ was not declared in this scope
make[3]: * [release/RS.o] Error 1
make[3]: Leaving directory `/home/user/projet-qcad/qcad-3.0.14.0/src/core’ make[2]:
* [release] Error 2

Closed by  Andrew
26.05.2013 17:13
Reason for closing:  Fixed
- commented on 26.05.2013 17:10

Patch file added in this ticket that fix this problem : RS.cpp-SC_NPROCESSORS_ONLN-error-bugfix.patch

I found the fix for this error here : bugs.debian .org/cgi-bin/bugreport.cgi?bug=667426

Admin
Andrew commented on 26.05.2013 17:13

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

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing