Compilation on Solaris 8

First I would like to thank Georg for the tip concerning the mosaic.

I am contacting all off you to now if you have some experience of
compiling Radiance on Solaris 8.

I have try to install 3R4, but I got several warning and error messages
such as :

···

-----------------------------

cc -I../common -L../lib -O -DSPEED=80 -DALIGN=double
-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO -DDCL_ATOF
-DBIGMEM -c editline.c
cc -I../common -L../lib -O -DSPEED=80 -DALIGN=double
-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO -DDCL_ATOF
-DBIGMEM -c x11.c
"./x11icon.h", line 4: warning: initializer does not fit or is out of
range: 224
"./x11icon.h", line 5: warning: initializer does not fit or is out of
range: 224
"./x11icon.h", line 7: warning: initializer does not fit or is out of
range: 192

Or an this other error message:

In directory rt...
cc -I../common -L../lib -O -DSPEED=80 -DALIGN=double
-I/usr/openwin/include -L/usr/openwin/lib -DNOSTEREO -DDCL_ATOF -DBIGMEM
-DRTRACE -DNICE=4 -c rmain.c
"rmain.c", line 829: warning: argument #2 is incompatible with
prototype:
        prototype: pointer to function(int) returning void :
"/usr/include/iso/signal_iso.h", line 48
        argument : pointer to function(int) returning int
mv rmain.o rtmain.o
-----------------------------

At the end of the compilation some binaries are missing, compare to
radiance 3.1.8 that I have installed on a linux box.
In the following list, the (-) after the file name referes to files that
are missing after compilation of 3R4 on Solaris 8

total 12138
-rwxr-xr-x 1 esru staff 26296 Mar 30 10:59 aed5
-rwxr-xr-x 1 esru staff 24224 Mar 30 10:59 arch2rad
-rwxr-xr-x 1 esru staff 127352 Mar 30 10:59 bgraph
-rwxr-xr-x 1 esru staff 108052 Mar 30 11:06 calc
-rwxr-xr-x 1 esru staff 6216 Mar 30 11:06 cnt
-rwxr-xr-x 1 esru staff 24576 Mar 26 18:57 colorscale (-)
-rwxr-xr-x 1 esru staff 1272 Mar 30 11:06 compamb (+)
-rwxr-xr-x 1 esru staff 22664 Mar 30 10:58 cv
-rwxr-xr-x 1 esru staff 5277 Mar 30 11:06 dayfact
-rwxr-xr-x 1 esru staff 986 Mar 30 11:06 debugcal
drwxr-xr-x 2 esru staff 512 Mar 30 11:05 dev
-rwxr-xr-x 1 esru staff 106496 Mar 30 10:59 dgraph
-rwxr-xr-x 1 esru staff 77544 Mar 30 11:06 ev
-rwxr-xr-x 1 esru staff 3892 Mar 26 18:57 falsecolor (-)
-rwxr-xr-x 1 esru staff 113580 Mar 30 11:06 findglare
-rwxr-xr-x 1 esru staff 106692 Mar 30 10:59 gcomp
-rwxr-xr-x 1 esru staff 35876 Mar 30 11:00 genblinds
-rwxr-xr-x 1 esru staff 9592 Mar 30 11:00 genbox
-rwxr-xr-x 1 esru staff 23624 Mar 30 11:00 genclock
-rwxr-xr-x 1 esru staff 211290 Mar 26 18:58 gendaylit (-)
-rwxr-xr-x 1 esru staff 29472 Mar 30 11:00 genprism
-rwxr-xr-x 1 esru staff 91036 Mar 30 11:00 genrev
-rwxr-xr-x 1 esru staff 62060 Mar 30 11:05 genrhgrid (+)
-rwxr-xr-x 1 esru staff 54104 Mar 30 11:00 gensky
-rwxr-xr-x 1 esru staff 104712 Mar 30 11:00 gensurf
-rwxr-xr-x 1 esru staff 92972 Mar 30 11:00 genworm
-rwxr-xr-x 1 esru staff 102520 Mar 30 11:00 getbbox
-rwxr-xr-x 1 esru staff 14092 Mar 30 11:06 getinfo
-rwxr-xr-x 1 esru staff 5863 Mar 30 11:06 glare
-rwxr-xr-x 1 esru staff 97940 Mar 30 11:06 glarendx
-rwxr-xr-x 1 esru staff 40960 Mar 26 18:58 greyscale (-)
-rwxr-xr-x 1 esru staff 173664 Mar 30 11:06 glrad (+)
-rwxr-xr-x 1 esru staff 8776 Mar 30 11:06 histo
-rwxr-xr-x 1 esru staff 58736 Mar 30 10:59 ies2rad
-rwxr-xr-x 1 esru staff 138700 Mar 30 10:59 igraph
-rwxr-xr-x 1 esru staff 34760 Mar 30 10:58 imagew
-rwxr-xr-x 1 esru staff 36252 Mar 30 10:58 impress
-rwxr-xr-x 1 esru staff 7244 Mar 30 11:06 lam
-rwxr-xr-x 1 esru staff 27068 Mar 30 10:59 lampcolor
-rwxr-xr-x 1 esru staff 26448 Mar 30 11:01 lookamb
-rwxr-xr-x 1 esru staff 65536 Mar 26 18:58 macbethcal (-)
-rwxr-xr-x 1 esru staff 34284 Mar 30 10:58 meta2tga
-rwxr-xr-x 1 esru staff 100936 Mar 30 10:59 mgf2inv
-rwxr-xr-x 1 esru staff 108788 Mar 30 10:59 mgf2meta
-rwxr-xr-x 1 esru staff 119924 Mar 30 10:59 mgf2rad
-rwxr-xr-x 1 esru staff 89692 Mar 30 10:59 mgfilt
-rwxr-xr-x 1 esru staff 91292 Mar 30 11:00 mkillum
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 mt160r (-)
-rwxr-xr-x 1 esru staff 34244 Mar 30 10:58 mx80
-rwxr-xr-x 1 esru staff 7312 Mar 30 11:06 neat
-rwxr-xr-x 1 esru staff 45552 Mar 30 10:59 nff2rad
-rwxr-xr-x 1 esru staff 3960 Mar 26 18:58 normpat (-)
-rwxr-xr-x 1 esru staff 66152 Mar 30 10:59 obj2rad
-rwxr-xr-x 1 esru staff 1127 Mar 30 11:06 objline
-rwxr-xr-x 1 esru staff 979 Mar 30 11:06 objpict
-rwxr-xr-x 1 esru staff 1651 Mar 30 11:06 objview
-rwxr-xr-x 1 esru staff 122864 Mar 30 11:00 oconv
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 oki20 (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 oki20c (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 paintjet (-)
-rwxr-xr-x 1 esru staff 114688 Mar 26 18:58 pcomb (-)
-rwxr-xr-x 1 esru staff 40960 Mar 26 18:58 pcompos (-)
-rwxr-xr-x 1 esru staff 122880 Mar 26 18:58 pcond (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 pcwarp (-)
-rwxr-xr-x 1 esru staff 737 Mar 26 18:58 pdfblur (-)
--rwxr-xr-x 1 esru staff 28936 Mar 30 10:58 pexpand
-rwxr-xr-x 1 esru staff 32768 Mar 26 18:58 pextrem (-)
-rwxr-xr-x 1 esru staff 106496 Mar 26 18:58 pfilt (-)
-rwxr-xr-x 1 esru staff 32768 Mar 26 18:58 pflip (-)
-rwxr-xr-x 1 esru staff 114688 Mar 26 18:58 pinterp (-)
-rwxr-xr-x 1 esru staff 21960 Mar 30 10:59 plot4
-rwxr-xr-x 1 esru staff 37484 Mar 30 10:58 plotin
-rwxr-xr-x 1 esru staff 691 Mar 26 18:58 pmblur (-)
-rwxr-xr-x 1 esru staff 32768 Mar 26 18:58 protate (-)
-rwxr-xr-x 1 esru staff 40960 Mar 26 18:58 psign (-)
-rwxr-xr-x 1 esru staff 31420 Mar 30 10:58 psmeta
-rwxr-xr-x 1 esru staff 25496 Mar 30 10:58 psort
-rwxr-xr-x 1 esru staff 81920 Mar 26 18:58 pvalue (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_avs (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_bn (-)
-rwxr-xr-x 1 esru staff 65536 Mar 26 18:58 ra_gif (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_pict (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_ppm (-)
-rwxr-xr-x 1 esru staff 57344 Mar 26 18:58 ra_pr (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_pr24 (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_ps (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_rgbe (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_t16 (-)
-rwxr-xr-x 1 esru staff 65536 Mar 26 18:58 ra_t8 (-)
-rwxr-xr-x 1 esru staff 106496 Mar 26 18:58 ra_tiff (-)
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ra_xyze (-)
-rwxr-xr-x 1 esru staff 109244 Mar 30 11:06 rad
-rwxr-xr-x 1 esru staff 61812 Mar 30 10:59 rad2mgf
-rwxr-xr-x 1 esru staff 412 Mar 30 11:06 raddepend
-rwxr-xr-x 1 esru staff 119020 Mar 30 11:06 ranimate
-rwxr-xr-x 1 esru staff 116396 Mar 30 11:06 rcalc
-rwxr-xr-x 1 esru staff 47684 Mar 30 11:00 replmarks
-rwxr-xr-x 1 esru staff 133528 Mar 30 11:05 rhcopy (+)
-rwxr-xr-x 1 esru staff 80528 Mar 30 11:05 rhinfo (+)
-rwxr-xr-x 1 esru staff 169132 Mar 30 11:05 rholo (+)
-rwxr-xr-x 1 esru staff 84636 Mar 30 11:05 rhoptimize (+)
-rwxr-xr-x 1 esru staff 142736 Mar 30 11:05 rhpict (+)
-rwxr-xr-x 1 esru staff 264 Mar 30 11:06 rlux
-rwxr-xr-x 1 esru staff 298 Mar 30 10:57 rmake
-rwxr-xr-x 1 esru staff 437632 Mar 30 11:01 rpict
-rwxr-xr-x 1 esru staff 97108 Mar 30 11:06 rpiece
-rwxr-xr-x 1 esru staff 426756 Mar 30 11:01 rtrace
-rwxr-xr-x 1 esru staff 467880 Mar 30 11:01 rview
-rwxr-xr-x 1 esru staff 44140 Mar 30 10:58 t4014
-rwxr-xr-x 1 esru staff 14228 Mar 30 11:06 tabfunc
-rwxr-xr-x 1 esru staff 10160 Mar 30 10:59 thf2rad
-rwxr-xr-x 1 esru staff 42108 Mar 30 10:59 tmesh2rad
-rwxr-xr-x 1 esru staff 38572 Mar 30 11:06 total
-rwxr-xr-x 1 esru staff 49152 Mar 26 18:58 ttyimage (-)
-rwxr-xr-x 1 esru staff 73520 Mar 30 11:06 vwrays (+)
-rwxr-xr-x 1 esru staff 69956 Mar 30 11:06 vwright
-rwxr-xr-x 1 esru staff 33824 Mar 30 10:58 x11meta
-rwxr-xr-x 1 esru staff 78168 Mar 30 11:00 xform
-rwxr-xr-x 1 esru staff 76276 Mar 30 11:06 xglaresrc
-rwxr-xr-x 1 esru staff 131072 Mar 26 18:58 ximage (-)
-rwxr-xr-x 1 esru staff 65536 Mar 26 18:58 xshowtrace (-)
-rwxr-xr-x 1 esru staff 1254 Mar 26 18:58 xyzimage (-)

Then I have tried to compile, the version 3.1.8 on Solaris 8. I still
have some warnings, but the list of files is similar to the list
I have on the linux side. Unfortunately, when I run a simulation I got
very often the following message:

rpict: 27851797 rays, 2.95% after 0.300u 0.000s 0.551r hours on pico
rpict: atan2: domain error
rpict: warning - compute error for colorpict "skyfunc"
rpict: 29280188 rays, 3.32% after 0.318u 0.000s 0.583r hours on pico

Thanks in advance for any suggestion.

Kind regards

Stephane Citherlet

Hi Stephane,

You should generally ignore warning messages from the Radiance compilations -- fatal errors and missing binaries are the real concern. In the case of Solaris, there is a problem with the "install" program used by the TIFF library, which I have not been able to manage to work around. The reason that none of the picture processing tools got installed was because of the failure in the src/px directory to make ra_tiff and normtiff, which depend on the TIFF library.

The solution to this problem is to change to the src/px/tiff/libtiff directory and run "make install", then manually move the libtiff.a program to the ../../lib directory like so:

  mv libtiff.a ../../lib

Then, pop up to the px directory and rerun "rmake install" like so:

  rmake install

That should install the picture filters. I wish I knew how to fix the TIFF library, but the install script is horribly complicated and uses the Bourne shell, which is something of a mystery to me....

-Greg