Re: [Rd] Undefined symbol "Rf_pythag" while loading spatstat

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat, 19 Mar 2011 14:52:55 +0000 (GMT)

On Sat, 19 Mar 2011, Rainer Hurling wrote:

> Today I installed the newest R develepment branch
> R version 2.14.0 Under development (unstable) (2011-03-18 r54866)
> on FreeBSD 9.0-CURRENT (amd64). All seems fine so far.

But that is very raw: testing on 2.13.0 alpha would be more useful at this point.

> After that I updated my R packages with option 'checkBuilt=TRUE'. There are
> four packages (spatstat, pscl, adehabitatLT, adehabitatHR) which gives an
> error like this:
>
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> kann shared object '/usr/local/lib/R/library/spatstat/libs/spatstat.so'
> nicht laden:
> /usr/local/lib/R/library/spatstat/libs/spatstat.so: Undefined symbol
> "Rf_pythag"
> Fehler: loading failed
> Ausführung angehalten
> Fehler: loading failed
>
>
> Searching around I found a hint in
> http://developer.r-project.org/R_svnlog_2011 about upcoming changes with
> 'Rf_pythag':
>
> ------------------------------------------------------------------------
> r54767 | ripley | 2011-03-13 07:30:32 -0400 (Sun, 13 Mar 2011) | 1 line
> Changed paths:
> M /trunk/doc/NEWS.Rd
> M /trunk/src/include/Rmath.h0.in
> M /trunk/src/nmath/imax2.c
>
> keep Rf_pythag for a little longer
> ------------------------------------------------------------------------
>
>
> R News of newest devel has three entries about the change:
>
> CHANGES IN R VERSION 2.14.0:
> DEPRECATED AND DEFUNCT:
> o The entry point pythag formerly in Rmath.h is defunct: use
> instead the C99 function hypot.
> CHANGES IN R VERSION 2.13.0:
> C-LEVEL FACILITIES:
> o pythag duplicated the C99 function hypot. It is no longer
> provided, but is used a substitute for hypot in the very unlikely
> event that the latter is not available.
> DEPRECATED & DEFUNCT:
> o The entry point pythag in Rmath.h is deprecated in favour of the
> C99 function hypot. A wrapper for hypot is provided for R 2.13.x
> only.
>
>
> Because of that informations I attempted to change 'pythag' against 'hypot'
> in spatstat/src/lookup.c and it works. Is this the only required adaption
> which has to be done on the four named packages?

For adehabitatLT, adehabitatHR, simply update. For pscl, spatstat, change pythag to hypot -- the maintainers have been asked for updates.

You can see CRAN R-devel test results on the CRAN check page. There are a number of other failures due to deprecated -> defunct changes (we make them very early in the development cycle).

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Received on Sat 19 Mar 2011 - 14:59:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Mar 2011 - 15:50:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive