{"action":"closed","issue":{"url":"https://api.github.com/repos/RcppCore/Rcpp/issues/819","repository_url":"https://api.github.com/repos/RcppCore/Rcpp","labels_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/819/comments","events_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/819/events","html_url":"https://github.com/RcppCore/Rcpp/issues/819","id":297446307,"number":819,"title":"Failed to install Rcpp on Solaris 11","user":{"login":"joblion","id":4639107,"avatar_url":"https://avatars0.githubusercontent.com/u/4639107?v=4","gravatar_id":"","url":"https://api.github.com/users/joblion","html_url":"https://github.com/joblion","followers_url":"https://api.github.com/users/joblion/followers","following_url":"https://api.github.com/users/joblion/following{/other_user}","gists_url":"https://api.github.com/users/joblion/gists{/gist_id}","starred_url":"https://api.github.com/users/joblion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joblion/subscriptions","organizations_url":"https://api.github.com/users/joblion/orgs","repos_url":"https://api.github.com/users/joblion/repos","events_url":"https://api.github.com/users/joblion/events{/privacy}","received_events_url":"https://api.github.com/users/joblion/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-15T13:31:21Z","updated_at":"2018-02-15T14:28:49Z","closed_at":"2018-02-15T14:28:49Z","author_association":"NONE","body":"Hi,\r\n\r\nI'm working on the Solaris 11.3 version on the x86 arch.\r\nR is compiled using the patched version (2018/02/15) that can be found at\r\nhttps://stat.ethz.ch/R/daily/ and  using config.site given at\r\nhttps://www.stats.ox.ac.uk/pub/bdr/Rconfig/r-patched-solaris-x86\r\n(so I'm using developerstudio.1.2.5)\r\n\r\nWhen trying to install Rcpp i get a first issue :\r\n```\r\n> install.packages(\"Rcpp\")\r\nInstalling package into ‘/export/home/iovleff/R/i386-pc-solaris2.11-library/3.4’\r\n(as ‘lib’ is unspecified)\r\ntrying URL 'https://ftp.igh.cnrs.fr/pub/CRAN/src/contrib/Rcpp_0.12.15.tar.gz'\r\nContent type 'application/octet-stream' length 3762481 bytes (3.6 MB)\r\n==================================================\r\ndownloaded 3.6 MB\r\n\r\n* installing *source* package ‘Rcpp’ ...\r\n** package ‘Rcpp’ successfully unpacked and MD5 sums checked\r\n** libs\r\nCC -library=stlport4 -I/usr/local/lib/R/include -DNDEBUG -I../inst/include/  -I/usr/local/include   -KPIC  -O -xlibmil -xtarget=native -nofstore  -c Date.cpp -o Date.o\r\n\"../inst/include/Rcpp/internal/r_coerce.h\", line 219: Error: The function \"snprintf\" must have a prototype.\r\n\"../inst/include/Rcpp/internal/r_coerce.h\", line 220: Error: The function \"snprintf\" must have a prototype.\r\n\"../inst/include/Rcpp/internal/r_coerce.h\", line 221: Error: The function \"snprintf\" must have a prototype.\r\n\"../inst/include/Rcpp/internal/r_coerce.h\", line 241: Error: The function \"snprintf\" must have a prototype.\r\n\"../inst/include/Rcpp/internal/r_coerce.h\", line 249: Error: The function \"snprintf\" must have a prototype.\r\n\"../inst/include/Rcpp/date_datetime/Datetime.h\", line 83: Error: snprintf is not defined.\r\n\"/usr/include/unistd.h\", line 455: Error: \"rename\" declaration conflicts with \"std::rename(const char*, const char*)\" introduced by using declaration.\r\n7 Error(s) detected.\r\n*** Error code 2\r\nmake: Fatal error: Command failed for target `Date.o'\r\nERROR: compilation failed for package ‘Rcpp’\r\n* removing ‘/export/home/iovleff/R/i386-pc-solaris2.11-library/3.4/Rcpp’\r\n\r\nThe downloaded source packages are in\r\n\t‘/tmp/RtmpF2aON2/downloaded_packages’\r\nWarning message:\r\nIn install.packages(\"Rcpp\") :\r\n  installation of package ‘Rcpp’ had non-zero exit status\r\n```\r\n\r\nSo I modify the RcpppCommon.h file and add\r\n```#include <stdio.h>``` at the top\r\n\r\nRcpp was succesfully compiled except when building the vignette\r\n```** R\r\n** inst\r\n** preparing package for lazy loading\r\n** help\r\n*** installing help indices\r\n** building package indices\r\n** installing vignettes\r\n** testing if installed package can be loaded\r\n\r\n *** caught segfault ***\r\naddress 3c, cause 'memory not mapped'\r\n\r\nTraceback:\r\n 1: dyn.load(file, DLLpath = DLLpath, ...)\r\n 2: library.dynam(lib, package, package.lib)\r\n 3: loadNamespace(package, lib.loc)\r\n 4: doTryCatch(return(expr), name, parentenv, handler)\r\n 5: tryCatchOne(expr, names, parentenv, handlers[[1L]])\r\n 6: tryCatchList(expr, classes, parentenv, handlers)\r\n 7: tryCatch({    attr(package, \"LibPath\") <- which.lib.loc    ns <- loadNamespace(package, lib.loc)    env <- attachNamespace(ns, pos = pos, deps)}, error = function(e) {    P <- if (!is.null(cc <- conditionCall(e)))         paste(\" in\", deparse(cc)[1L])    else \"\"    msg <- gettextf(\"package or namespace load failed for %s%s:\\n %s\",         sQuote(package), P, conditionMessage(e))    if (logical.return)         message(paste(\"Error:\", msg), domain = NA)    else stop(msg, call. = FALSE, domain = NA)})\r\n 8: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)\r\n 9: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart(\"muffleMessage\"))\r\n10: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,     character.only = TRUE, logical.return = TRUE))\r\n11: doTryCatch(return(expr), name, parentenv, handler)\r\n12: tryCatchOne(expr, names, parentenv, handlers[[1L]])\r\n13: tryCatchList(expr, classes, parentenv, handlers)\r\n14: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste(\"Error in\", dcall, \": \")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, \"\\n\")[[1L]]        w <- 14L + nchar(dcall, type = \"w\") + nchar(sm[1L], type = \"w\")        if (is.na(w))             w <- 14L + nchar(dcall, type = \"b\") + nchar(sm[1L],                 type = \"b\")        if (w > LONG)             prefix <- paste0(prefix, \"\\n  \")    }    else prefix <- \"Error : \"    msg <- paste0(prefix, conditionMessage(e), \"\\n\")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption(\"show.error.messages\"),         TRUE)) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = \"try-error\", condition = e))})\r\n15: try(suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,     character.only = TRUE, logical.return = TRUE)))\r\n16: tools:::.test_load_package(\"Rcpp\", \"/export/home/iovleff/R/i386-pc-solaris2.11-library/3.4\")\r\nAn irrecoverable exception occurred. R is aborting now ...\r\n* DONE (Rcpp)\r\n```\r\n\r\n@note I'm the maintainer of rtkore and blockcluster and I get a similar error with the  latest version of bluckcluster on solaris platform.\r\n"}}
{"actor":{"display_login":"eddelbuettel"}}