[R] png and jpeg libs for Solaris: Summary

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sat Nov 3 10:22:37 CET 2001


It is usual (and required by copyright law) to attribute quotes to their
authors, and to send a reply to the author and not just the list!

A few empirical facts from Solaris 2.7.

1) Libpng 1.2.0 is later than R 1.3.1, so R 1.3.1 had not been tested
with it.

2) There is no Solaris binary in the official libpng distribution.

3) The official Solaris makefile does build a shared library.

4) When libpng is built using that makefile, R's configure works correctly,
finds png support and compiles without any warnings (except those related
to X11 header files without declared types).  It works too!


So I took a closer look.  deflateInit2_ is in my libz.  So the issue
appears to be that your libpng is not matching your libz.  Perhaps your
libz is too old for your version of libpng?  If so, I think R's configure
did the right thing.

BDR

On Fri, 2 Nov 2001, Don MacQueen wrote, quoting me without attribution:

> Thank you; this is helpful.
>
> >On Thu, 1 Nov 2001, Don MacQueen wrote:
> >
> >>  I'm also having trouble installing R 1.3.1 on Solaris and getting png
> >>  and jpeg support.
> >>  It looks like perhaps the png and jpeg libraries I installed weren't
> >>  built with all the support R needs.
> >>  If that's the case I'd appreciate confirmation. Or perhaps there's
> >>  something else I can do?
> >>  (with all the details I've included this message is rather long)
> >
> >For png, the symbol missing is not one the configure test is looking for,
> >so it seems your png library is incomplete.  I'd rebuild it.  It's also
> >strange since on Solaris it would be normal to have a shared library.
>
> The version I used is libpng-1.2.0-sol7-sparc-local
> The libraries I used were the ones installed by that package
> (pre-compiled, however; looks like I will have to try building them
> myself). Or perhaps I should try to get v 1.0.11.
>
> >For jpeg, I think you are seeing a consequence of the incomplete libpng.a,
> >which you can't link *anything* against.  To stress this: it is not that
> >it is missing things R needs but that it is missing things it needs
> >itself.
> >
> >
> >--
> >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 272860 (secr)
> >Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>
>
> --
> --------------------------------------
> Don MacQueen
> Environmental Protection Department
> Lawrence Livermore National Laboratory
> Livermore, CA, USA
> --------------------------------------
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list