Hey @ports,

I need some advices for my math/R[1] update. It build fine and other
ports are working with the libs but the bin/R throws the following
output.

# start R and called demo(image)
##################################################################
# R

R version 2.15.0 (2012-03-30)
Copyright (C) 2012 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-unknown-openbsd5.1 (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.

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.

[Previously saved workspace restored]

> demo(image)


        demo(image)
        ---- ~~~~~

Type  <Return>   to start : 

> require(datasets)

> require(grDevices); require(graphics)

> x <- 10*(1:nrow(volcano)); x.at <- seq(100, 800, by=100)

> y <- 10*(1:ncol(volcano)); y.at <- seq(100, 600, by=100)

>                                       # Using Terrain Colors
> 
> image(x, y, volcano, col=terrain.colors(100),axes=FALSE)
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_attr_destroy'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_create'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_rwlock_rdlock'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_attr_init'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_rwlock_init'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_key_delete'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_condattr_setclock'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_mutexattr_destroy'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_rwlock_destroy'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_rwlock_unlock'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_detach'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_attr_setstacksize'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_rwlock_wrlock'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_sigmask'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_mutexattr_settype'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_rwlock_trywrlock'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_rwlock_tryrdlock'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_mutexattr_init'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_mutex_trylock'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libglib-2.0.so.3200.0: undefined 
symbol 'pthread_join'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libcairo.so.11.1: undefined symbol 
'pthread_mutexattr_destroy'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libcairo.so.11.1: undefined symbol 
'pthread_mutexattr_settype'
/usr/local/lib/R/bin/exec/R:/usr/local/lib/libcairo.so.11.1: undefined symbol 
'pthread_mutexattr_init'

 *** caught segfault ***
address 0x34ba6, cause 'memory not mapped'

Traceback:
 1: function (display = "", width, height, pointsize, gamma, bg,     canvas, 
fonts, family, xpos, ypos, title, type, antialias) {    if (display == "" && 
.Platform$GUI == "AQUA" && is.na(Sys.getenv("DISPLAY",         NA)))         
Sys.setenv(DISPLAY = ":0")    new <- list()    if (!missing(display))         
new$display <- display    if (!missing(width))         new$width <- width    if 
(!missing(height))         new$height <- height    if (!missing(gamma))         
new$gamma <- gamma    if (!missing(pointsize))         new$pointsize <- 
pointsize    if (!missing(bg))         new$bg <- bg    if (!missing(canvas))    
     new$canvas <- canvas    if (!missing(xpos))         new$xpos <- xpos    if 
(!missing(ypos))         new$ypos <- ypos    if (!missing(title))         
new$title <- title    if (!checkIntFormat(new$title))         stop("invalid 
'title'")    if (!missing(type)) {        new$type <- match.arg(type, c("Xlib", 
"cairo", "nbcairo",             "dbcairo"))        if (!capabilities("cairo") 
&& type != "Xlib")             warning("cairo-based types are not supported on 
this build - using \"Xlib\"")    }    if (!missing(family))         new$family 
<- family    if (!missing(fonts))         new$fonts <- fonts    if 
(!missing(antialias) && type != "Xlib")         new$antialias <- 
match.arg(antialias, aa.cairo)    d <- check.options(new, name.opt = 
".X11.Options", envir = .X11env)    if (d$type == "Xlib" && !missing(family)) { 
       fns <- X11Fonts()        if (!family %in% names(fns))             
stop("unknown family for X11(type = \"XLib\")")        d$fonts[1] <- 
fns[[family]]    }    type <- if (capabilities("cairo"))         switch(d$type, 
cairo = 1L, nbcairo = 2L, dbcairo = 3L,             0L)    else 0L    if 
(display == "XImage")         type <- 0L    antialias <- match(d$antialias, 
aa.cairo)    .Internal(X11(d$display, d$width, d$height, d$pointsize,         
d$gamma, d$colortype, d$maxcubesize, d$bg, d$canvas,         d$fonts, 
NA_integer_, d$xpos, d$ypos, d$title, type,         antialias, d$family))}()
 2: dev.hold()
 3: plot.default(NA, NA, xlim = xlim, ylim = ylim, type = "n", xaxs = xaxs,     
yaxs = yaxs, xlab = xlab, ylab = ylab, ...)
 4: plot(NA, NA, xlim = xlim, ylim = ylim, type = "n", xaxs = xaxs,     yaxs = 
yaxs, xlab = xlab, ylab = ylab, ...)
 5: image.default(x, y, volcano, col = terrain.colors(100), axes = FALSE)
 6: image(x, y, volcano, col = terrain.colors(100), axes = FALSE)
 7: eval.with.vis(expr, envir, enclos)
 8: eval.with.vis(ei, envir)
 9: source(available, echo = echo, max.deparse.length = Inf, keep.source = TRUE)
10: demo(image)
##################################################################

Yes I see error but I have no idea in which combination pthread_* makes
problems. Does my R in combination with pthread is the problem or
libglib/libcairo in combination with pthread or with my R?

Maybe some Guru can help ;)

Cheers, Rafael

[1]: https://github.com/jasperla/openbsd-wip/tree/master/math/R

Reply via email to