Bug 348180 - rcallbacks.cpp:48:23: error: 'onReadConsole' was not declared in this scope
Summary: rcallbacks.cpp:48:23: error: 'onReadConsole' was not declared in this scope
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: r-backend (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Rieder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-24 14:19 UTC by Taurnil
Modified: 2018-05-20 18:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Taurnil 2015-05-24 14:19:43 UTC
Version 15.04.1 fails make with the following;

[ 58%] Automatic moc for target cantor_rserver
Generating rserver.moc
/usr/src/cantor-15.04.1/src/backends/R/rserver/rserver.cpp:0: Note: No relevant classes found. No output generated.
Generating moc_rserver.cpp
[ 58%] Built target cantor_rserver_automoc
Scanning dependencies of target rautoloads
[ 58%] Built target rautoloads
Scanning dependencies of target renvvars
[ 58%] Built target renvvars
[ 58%] Generating radaptor.cpp, radaptor.h
[ 58%] Generating settings.h, settings.cpp
[ 59%] Generating radaptor.moc
Scanning dependencies of target cantor_rserver
[ 60%] Building CXX object src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/rserver.cpp.o
/usr/src/cantor-15.04.1/src/backends/R/rserver/rserver.cpp: In destructor 'virtual RServer::~RServer()':
/usr/src/cantor-15.04.1/src/backends/R/rserver/rserver.cpp:105:38: warning: 'KUrl' is deprecated (declared at /usr/include/KF5/KDELibs4Support/kurl.h:109) [-Wdeprecated-declarations]
     KIO::NetAccess::del(KUrl(m_tmpDir), NULL);
                                      ^
/usr/src/cantor-15.04.1/src/backends/R/rserver/rserver.cpp:105:47: warning: 'static bool KIO::NetAccess::del(const QUrl&, QWidget*)' is deprecated (declared at /usr/include/KF5/KDELibs4Support/kio/netaccess.h:343) [-Wdeprecated-declarations]
     KIO::NetAccess::del(KUrl(m_tmpDir), NULL);
                                               ^
/usr/src/cantor-15.04.1/src/backends/R/rserver/rserver.cpp: In member function 'void RServer::runCommand(const QString&, bool)':
/usr/src/cantor-15.04.1/src/backends/R/rserver/rserver.cpp:372:56: warning: 'result' may be used uninitialized in this function [-Wmaybe-uninitialized]
                     bool canProcess=htmlVector(result,s);
                                                        ^
[ 60%] Building CXX object src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/rcallbacks.cpp.o
/usr/src/cantor-15.04.1/src/backends/R/rserver/rcallbacks.cpp: In function 'void setupCallbacks(RServer*)':
/usr/src/cantor-15.04.1/src/backends/R/rserver/rcallbacks.cpp:48:23: error: 'onReadConsole' was not declared in this scope
     ptr_R_ReadConsole=onReadConsole;
                       ^
src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/build.make:99: recipe for target 'src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/rcallbacks.cpp.o' failed
make[2]: *** [src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/rcallbacks.cpp.o] Error 1
CMakeFiles/Makefile2:1354: recipe for target 'src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/all' failed
make[1]: *** [src/backends/R/rserver/CMakeFiles/cantor_rserver.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2


The system has R-3.2.0 installed.
Comment 1 Taurnil 2015-05-26 13:05:59 UTC
Found the problem, most of it anyway. The issue was how R was compiled. Doing a make/make install of R's src/nmath/standalone fixed the cantor build. However, after launching cantor and selecting R as the backend, cantor never finishes its initialization session. From the cli I see this;

dveatch@sidney ~ $ cantor
Could not find drkonqi at /usr/lib64/libexec/drkonqi
kf5.kservice.sycoca: Trying to open ksycoca from "/home/dveatch/.cache/ksycoca5"
Creating ScilabBackend
Creating PythonBackend
Creating NullBackend
Creating SageBackend
Creating RBackend
Creating MaximaBackend
Created a CantorPart
Backend  "R"  offers extensions:  ("ScriptExtension", "AdvancedPlotExtension")
Spawning a new R session
()
()
()
()
()
()
()
()
()
()
()
()
(QKeySequence("Ctrl+Shift+S") ) 
(QKeySequence("Ctrl+S") ) 
()
(QKeySequence("Ctrl+Z") ) 
(QKeySequence("Ctrl+Shift+Z") ) 
(QKeySequence("Ctrl+X") ,  QKeySequence("Shift+Del") ) 
(QKeySequence("Ctrl+C") ,  QKeySequence("Ctrl+Ins") ) 
(QKeySequence("Ctrl+V") ,  QKeySequence("Shift+Ins") ) 
(QKeySequence("Ctrl+F") ) 
(QKeySequence("Ctrl+R") ) 
(QKeySequence("F3") ) 
(QKeySequence("Shift+F3") ) 
()
(QKeySequence("Ctrl+P") ) 
(QKeySequence("Ctrl++") ,  QKeySequence("Ctrl+=") ) 
(QKeySequence("Ctrl+-") ) 
()
()
()
()
()
()
()
(QKeySequence("Shift+Return") ) 
(QKeySequence("Ctrl+Return") ) 
()
()
()
()
(QKeySequence("Shift+Del") ) 
()
()
()
()
loading assistants...
found service "Eigenvectors"
created it
plugin  "Eigenvectors"  requires  ("LinearAlgebraExtension", "HistoryExtension")
plugin  "Eigenvectors"  is   not   supported by  "R"
found service "Invert Matrix"
created it
plugin  "Invert Matrix"  requires  ("LinearAlgebraExtension", "HistoryExtension")
plugin  "Invert Matrix"  is   not   supported by  "R"
found service "Differentiate"
created it
plugin  "Differentiate"  requires  ("CalculusExtension")
plugin  "Differentiate"  is   not   supported by  "R"
found service "Eigenvalues"
created it
plugin  "Eigenvalues"  requires  ("LinearAlgebraExtension", "HistoryExtension")
plugin  "Eigenvalues"  is   not   supported by  "R"
found service "Import Package"
created it
plugin  "Import Package"  requires  ("PackagingExtension")
plugin  "Import Package"  is   not   supported by  "R"
found service "RunScript"
created it
plugin  "RunScript"  requires  ("ScriptExtension")
plugin  "RunScript"  is    supported by  "R"
KXMLGUI file found at deprecated location ("/usr/share/cantor/cantor_runscript_assistant.rc") -- please use ${KXMLGUI_INSTALL_DIR} to install this file instead.
found service "Integrate"
created it
plugin  "Integrate"  requires  ("CalculusExtension")
plugin  "Integrate"  is   not   supported by  "R"
found service "Solve"
created it
plugin  "Solve"  requires  ("CASExtension")
plugin  "Solve"  is   not   supported by  "R"
found service "Plot2d"
created it
plugin  "Plot2d"  requires  ("PlotExtension")
plugin  "Plot2d"  is   not   supported by  "R"
found service "Plot3d"
created it
plugin  "Plot3d"  requires  ("PlotExtension")
plugin  "Plot3d"  is   not   supported by  "R"
found service "QalculatePlot"
created it
plugin  "QalculatePlot"  requires  ("QalculatePlotExtension")
plugin  "QalculatePlot"  is   not   supported by  "R"
found service "Create Matrix"
created it
plugin  "Create Matrix"  requires  ("LinearAlgebraExtension")
plugin  "Create Matrix"  is   not   supported by  "R"
found service "AdvancedPlot"
created it
plugin  "AdvancedPlot"  requires  ("AdvancedPlotExtension")
plugin  "AdvancedPlot"  is    supported by  "R"
KXMLGUI file found at deprecated location ("/usr/share/cantor/cantor_advancedplot_assistant.rc") -- please use ${KXMLGUI_INSTALL_DIR} to install this file instead.
loading panel plugins for session of type  "R"
found service "Variable Manager"
created it
plugin  "Variable Manager"  requires  ("VariableManagementExtension")
plugin  "Variable Manager"  is   not   supported
found service "Help"
created it
plugin  "Help"  requires  ()
Requesting capabilities of RSession
plugin  "Help"  is    supported
setting session to  0xad6510
Requesting capabilities of RSession
QObject::disconnect: Unexpected null parameter
Shortcut for action  "format_text_bold" "&Bold" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action  "format_text_italic" "&Italic" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action  "format_text_underline" "&Underline" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action  "format_text_strikeout" "&Strike Out" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action  "evaluate_current" "Evaluate Entry" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action  "insert_command_entry" "Insert Command Entry" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action  "remove_current" "Remove current Entry" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action  "show_completion" "Show Completion" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
updating panels
adding panel for  "Help"
login
wsStatusChange 1
Could not find drkonqi at /usr/lib64/libexec/drkonqi
storing plots at  "/tmpcantor/rserver-24610"

R version 3.2.0 (2015-04-16) -- "Full of Ingredients"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

setting up callbacks
integrating plots
running command  "png(filename="/tmpcantor/rserver-24610/Rplot0.png", width = 480, height = 480, units = "px")"
PARSING  "png(filename="/tmpcantor/rserver-24610/Rplot0.png", width = 480, height = 480, units = "px")"  went OK
readConsole:  Selection: 


All the other backends initialize fine.
Comment 2 Nikita Sirgienko 2018-05-20 18:05:48 UTC
The code was refactored, compiles without problem with several used compilers and distributions. Please check again and re-open this ticket if you still have this problem.