[Radiance-dev] Help compiling 3R9 for Linux

Peter Apian-Bennewitz apian at pab-opto.de
Thu May 1 00:50:36 PDT 2008


Hi Greg,

didn't know you were just about to release a new version with broadly 
scheduled testing.

so why not take the opportunity and actually check the setvbuf call, 
'#ifdef linux' if needed ?

Another subtle suggestion:
It helps to trace problems and add information about other packages, 
when the testers mention parameters of their Linux distribution:

    the compiler version used (gcc -v)

    the shared lib versions used, e.g.:
    host $ ldd /usr/local/radiance/bin/rpict
            linux-gate.so.1 =>  (0xffffe000)
            libm.so.6 => /lib/tls/libm.so.6 (0xb7ee7000)
            libc.so.6 => /lib/tls/libc.so.6 (0xb7db4000)
            /lib/ld-linux.so.2 (0xb7f1e000)
    host $ ll /lib/tls/libc.so.6
    lrwxrwxrwx 1 root root 13 Feb 23 15:40 /lib/tls/libc.so.6 ->
    libc-2.3.6.so

Since Radiance depends so very little on other packages, it seems useful 
to know what the respective distributions supply for these few libs, in 
extension to the distribution names.

-Peter

btw1: running 'gcc -Wall' on the rt subdirectory prints warnings of 
uninitialized variables. (output attached, on gcc 4.1.2) If someone 
want's to do a touch more, it's worth checking with the latest gcc 
(4.3.x) and/or Intel/AMD optimizations.

btw2: if anyone feels wants to be a pioneer during the holiday: running 
a debugger like valgrind on the crucial rpict and rtrace wouldn't hurt, 
although it does take some time to separate noise from true errors. It's 
worth it. anyone bothered doing this already ?

btw3: the radiance-online box, nearly celebrating one year of happy life 
at Berkeley, still runs Debian Linux.

-- 
 pab-opto, Freiburg, Germany, http://www.pab-opto.de
 [see web page to check digital email signature]

-------------- next part --------------
rtmain.c: In function 'main':
rtmain.c:69: warning: 'tralp' may be used uninitialized in this function
rtmain.c:70: warning: 'duped1' may be used uninitialized in this function
persist.c: In function 'pfhold':
persist.c:188: warning: label 'openerr' defined but not used
ambcomp.c: In function 'doambient':
ambcomp.c:158: warning: 'd' may be used uninitialized in this function
srcobstr.c: In function 'initobscache':
srcobstr.c:66: warning: 'ax' may be used uninitialized in this function
srcobstr.c:66: warning: 'ax2' may be used uninitialized in this function
srcobstr.c:66: warning: 'ax1' may be used uninitialized in this function
srcobstr.c: In function 'srcobstructp':
srcobstr.c:256: warning: 'ax' may be used uninitialized in this function
dielectric.c: In function 'm_dielectric':
dielectric.c:77: warning: 'transdist' may be used uninitialized in this function
dielectric.c:78: warning: 'mirdist' may be used uninitialized in this function
glass.c: In function 'm_glass':
glass.c:53: warning: 'rindex' may be used uninitialized in this function
m_brdf.c: In function 'm_brdf':
m_brdf.c:210: warning: 'transdist' may be used uninitialized in this function
m_brdf.c:210: warning: 'transtest' may be used uninitialized in this function
fprism.c: In function 'l_get_val':
fprism.c:778: warning: 'rayt' may be used uninitialized in this function
data.c: In function 'datavalue':
data.c:305: warning: 'asize' may be used uninitialized in this function
duphead.o: In function `openheader':
duphead.c:(.text+0xac): warning: the use of `mktemp' is dangerous, better use `mkstemp'
rpmain.c: In function 'main':
rpmain.c:79: warning: 'duped1' may be used uninitialized in this function
rpict.o: In function `rpict':
rpict.c:(.text+0x1bd8): warning: the use of `mktemp' is dangerous, better use `mkstemp'
devcomm.c: In function 'comm_init':
devcomm.c:100: warning: missing sentinel in function call
x11.o: In function `std_comin':
x11.c:(.text+0xdce): warning: the `gets' function is dangerous and should not be used.


More information about the Radiance-dev mailing list