Linking CXX executable rsession CMakeFiles/rsession.dir/SessionModuleContext.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/SessionRUtil.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/SessionUserSettings.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionAuthoring.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionBreakpoints.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionCodeSearch.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionConsole.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionDependencies.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionDiagnostics.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionDirty.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionErrors.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionFiles.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionFilesQuotas.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionGit.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionHelp.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionHTMLPreview.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionLimits.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionMarkers.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionPackages.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionPackrat.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionPlots.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionRCompletions.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionRHooks.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionRParser.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionRSConnect.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionShinyViewer.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionSource.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionSpelling.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionSVN.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/SessionWorkbench.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/build/SessionBuild.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/build/SessionBuildEnvironment.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/clang/RCompilationDatabase.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/clang/SessionClang.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/data/DataViewer.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/environment/EnvironmentMonitor.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/environment/EnvironmentUtils.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/environment/SessionEnvironment.cpp.o:(.bss+0x10): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/presentation/SessionPresentation.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/presentation/PresentationLog.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/presentation/SlideRequestHandler.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/rmarkdown/SessionRMarkdown.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/shiny/SessionShiny.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/tex/SessionCompilePdf.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/tex/SessionRnwWeave.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/tex/SessionTexUtils.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/modules/viewer/SessionViewer.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/projects/SessionProjects.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here CMakeFiles/rsession.dir/projects/SessionProjectContext.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RExec.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RFunctionHook.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RJsonRpc.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(ROptions.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RRoutines.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RSexp.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RSourceManager.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RUtil.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RConsoleActions.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RSession.cpp.o):(.bss+0x10): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RGraphicsDevice.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RGraphicsPlotManager.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RGraphicsUtils.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RShadowPngGraphicsHandler.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(REmbeddedPosix.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RClientMetrics.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RSessionState.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RGraphicsPlot.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RGraphicsPlotManipulator.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RGraphicsPlotManipulatorManager.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here ../r/librstudio-r.a(RSearchPath.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program' CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status src/cpp/session/CMakeFiles/rsession.dir/build.make:2911: recipe for target 'src/cpp/session/rsession' failed make[2]: *** [src/cpp/session/rsession] Error 1 CMakeFiles/Makefile2:435: recipe for target 'src/cpp/session/CMakeFiles/rsession.dir/all' failed make[1]: *** [src/cpp/session/CMakeFiles/rsession.dir/all] Error 2 Makefile:136: recipe for target 'all' failed make: *** [all] Error 2