[R] png and jpeg libs for Solaris

Don MacQueen macq at llnl.gov
Fri Nov 2 03:05:33 CET 2001


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)

Thanks
-Don

I did make clean and removed config.cache before starting.

./configure reports:

checking for jpeglib.h... yes
checking if jpeglib version >= 6b... yes
checking for jpeg_destroy_compress in -ljpeg... no
checking for main in -lz... yes
checking for png.h... yes
checking if libpng version >= 1.0.5... yes
checking for png_create_write_struct in -lpng... no
checking for XDR support... yes
checking for gzopen in -lz... yes
checking for zlib.h... yes
checking if zlib version >= 1.1.3... yes

But:
>  capabilities()
     jpeg      png    tcltk      X11     libz http/ftp  sockets 
libxml     fifo   cledit
    FALSE    FALSE    FALSE     TRUE     TRUE     TRUE     TRUE 
TRUE     TRUE     TRUE
>  version
          _
platform sparc-sun-solaris2.7
arch     sparc
os       solaris2.7
system   sparc, solaris2.7
status
major    1
minor    3.1
year     2001
month    08
day      31
language R

I have the png and jpeg libraries in a non-standard location, due to 
the peculiarities of our system. So I've edited config.site
   CPPFLAGS="-I/erd/statistic/apps/R/libs-2.7/include"
   LIBS="-L/erd/statistic/apps/R/libs-2.7/lib"
and this was successful for readline and libz support (I put the 
readline and libz libraries there also)

./configure also reports this:

configure:13630: checking for png.h
configure:13640: gcc -E -I/erd/statistic/apps/R/libs-2.7/include 
conftest.c >/dev/null 2>conftest.out
configure:13658: checking if libpng version >= 1.0.5
configure:13675: checking for png_create_write_struct in -lpng
configure:13694: gcc -o conftest -g -O2 
-I/erd/statistic/apps/R/libs-2.7/include  conftest.c -lpng -lnsl 
-lsocket -lreadline -ldl -ltermcap -lm 
-L/erd/statistic/apps/R/libs-2.7/lib -lnsl -lsocket -lreadline -ldl 
-ltermcap -lm -L/erd/statistic/apps/R/libs-2.7/lib 1>&5
Undefined			first referenced
  symbol  			    in file
deflateInit2_ 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwutil.o)
deflateReset 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwutil.o)
deflate 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwrite.o)
deflateEnd 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwrite.o)
inflateReset 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(png.o)
crc32 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(png.o)
ld: fatal: Symbol referencing errors. No output written to conftest

and the "nm" command on libpng.a confirms that those symbols are 
undefined. Do I just have a libpng that was built without everything 
R needs, or might there be something else?

configure's report on jpeg looks a little different

configure:13494: checking for jpeglib.h
configure:13504: gcc -E -I/erd/statistic/apps/R/libs-2.7/include 
conftest.c >/dev/null 2>conftest.out
configure:13522: checking if jpeglib version >= 6b
configure:13539: checking for jpeg_destroy_compress in -ljpeg
configure:13558: gcc -o conftest -g -O2 
-I/erd/statistic/apps/R/libs-2.7/include  conftest.c -ljpeg -lnsl 
-lsocket -lreadline -ldl -ltermcap -lm 
-L/erd/statistic/apps/R/libs-2.7/lib -lnsl -lsocket -lreadline -ldl 
-ltermcap -lm -L/erd/statistic/apps/R/libs-2.7/lib 1>&5
ld: fatal: library -ljpeg: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
configure: failed program was:
#line 13547 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
char jpeg_destroy_compress();

int main() {
jpeg_destroy_compress()
; return 0; }
configure:13597: checking for main in -lz
configure:13612: gcc -o conftest -g -O2 
-I/erd/statistic/apps/R/libs-2.7/include  conftest.c -lz  -lnsl 
-lsocket -lreadline -ldl -ltermcap -lm 
-L/erd/statistic/apps/R/libs-2.7/lib 1>&5
configure:13630: checking for png.h
configure:13640: gcc -E -I/erd/statistic/apps/R/libs-2.7/include 
conftest.c >/dev/null 2>conftest.out
configure:13658: checking if libpng version >= 1.0.5
configure:13675: checking for png_create_write_struct in -lpng
configure:13694: gcc -o conftest -g -O2 
-I/erd/statistic/apps/R/libs-2.7/include  conftest.c -lpng -lnsl 
-lsocket -lreadline -ldl -ltermcap -lm 
-L/erd/statistic/apps/R/libs-2.7/lib -lnsl -lsocket -lreadline -ldl 
-ltermcap -lm -L/erd/statistic/apps/R/libs-2.7/lib 1>&5
Undefined			first referenced
  symbol  			    in file
deflateInit2_ 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwutil.o)
deflateReset 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwutil.o)
deflate 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwrite.o)
deflateEnd 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(pngwrite.o)
inflateReset 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(png.o)
crc32 
/erd/statistic/apps/R/libs-2.7/lib/libpng.a(png.o)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status


-- 
--------------------------------------
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list