rad3R5 from latest stable cvs doesn't compile

Hi all,

I'm having problems compiling radiance from sources from radiance-online cvs. I downloaded the stable tarball and am able to compile most of the executables, but it errors in the src/px dir every time. It seems that the tiff directory is the cause of the problem. It appears that the configure script is borked in some way. I have run the script manually and end up with the same results:

It seems to fill the resulting Makefile with random spew

Warning, this file was automatically created by the TIFF configure script#Warning, this file was automatically created b
y the TIFF configure script Warning, this file was automatically created by the TIFF configure script@Warning, this file
  was automatically created by the TIFF configure scriptWWarning, this file was automatically created by the TIFF configu
re scriptAWarning, this file was automatically created by the TIFF configure scriptRWarning, this file was automatically
  created by the TIFF configure scriptNWarning, this file was automatically created by the TIFF configure scriptIWarning,
  this file was automatically created by the TIFF configure scriptNWarning, this file was automatically created by the TI
FF configure scriptGWarning, this file was automatically created by the TIFF configure script@Warning, this file was aut
omatically created by the TIFF configure script

is all one line. This behaviour continues in the version, libdirs, machine type, and random(?) lines throughout the file. This causes make to bomb out with a missing separator error during the compile.

I'm wondering if this is a local toolchain problem, or if anyone else has experienced this behaviour. I'm compiling on a linux system (gentoo), which has been compiled from scratch using this same toolchain - gcc 3.2.1, glibc 2.3.1, and the gnu toolset. I have invoked the makeall script from a tcsh shell.

any ideas?

tom

Hi Tom,
I've had the same problem compiling radiance on SuSE-Linux, Version 8.1.
The trouble was caused by sed version 3.02.xx(in conjunction with the
variable POSIXLY_CORRECT in the configure-script). As far as I know,
when
POSIXLY_CORRECT is set, the sed versions(I tried out version 3.02.51,
3.02.60
and 4.06) insert the replacement string before each character in the
matched
line, e.g. the command sed "/@VERSION@/s;;v3.4beta037;g" applied to

# VERSION: @VERSION@"

will result in

v3.4beta037#v3.4beta037
v3.4beta037Vv3.4beta037Ev3.4beta037Rv3.4beta037Sv3.4beta037Iv3.4beta037Ov3.4beta037Nv3.4beta037:v3.4beta037
v3.4beta037@v3.4beta037Vv3.4beta037Ev3.4beta037Rv3.4beta037Sv3.4beta037Iv3.4beta037Ov3.4beta037Nv3.4beta037@v3.4beta037

whereas sed 3.02 generates

# VERSION: v3.4beta037

I handled this problem by reverting back to sed version 3.02.
Maybe you can remove/comment out the line

POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions

in ray/src/px/tiff/configure, but I don't know if this leads to any side
effects.

Augustinus

tom wrote:

···

Hi all,

I'm having problems compiling radiance from sources from
radiance-online cvs. I downloaded the stable tarball and am able to
compile most of the executables, but it errors in the src/px dir every
time. It seems that the tiff directory is the cause of the problem. It
appears that the configure script is borked in some way. I have run the
script manually and end up with the same results:

It seems to fill the resulting Makefile with random spew

Warning, this file was automatically created by the TIFF configure
script#Warning, this file was automatically created b
y the TIFF configure script Warning, this file was automatically created
by the TIFF configure script@Warning, this file
  was automatically created by the TIFF configure scriptWWarning, this
file was automatically created by the TIFF configu
re scriptAWarning, this file was automatically created by the TIFF
configure scriptRWarning, this file was automatically
  created by the TIFF configure scriptNWarning, this file was
automatically created by the TIFF configure scriptIWarning,
  this file was automatically created by the TIFF configure
scriptNWarning, this file was automatically created by the TI
FF configure scriptGWarning, this file was automatically created by the
TIFF configure script@Warning, this file was aut
omatically created by the TIFF configure script

is all one line. This behaviour continues in the version, libdirs,
machine type, and random(?) lines throughout the file. This causes make
to bomb out with a missing separator error during the compile.

I'm wondering if this is a local toolchain problem, or if anyone else
has experienced this behaviour. I'm compiling on a linux system
(gentoo), which has been compiled from scratch using this same toolchain
- gcc 3.2.1, glibc 2.3.1, and the gnu toolset. I have invoked the
makeall script from a tcsh shell.

any ideas?

tom

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

Augustinus Topor wrote:

Hi Tom,
I've had the same problem compiling radiance on SuSE-Linux

<snip of very good analysis of problem>

I handled this problem by reverting back to sed version 3.02.
Maybe you can remove/comment out the line

POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions

in ray/src/px/tiff/configure, but I don't know if this leads to any side
effects.

Augustinus,

I am using sed 4.05. I commented out the line in the configure script and everything appeared to compile - including ra_tiff and friends. It appears that oconv and rpict and rview seem to work, but I'm still left with a nonworking ximage. Time to fiddle around a little more :slight_smile:

Thank you for the help,

tom

Hi all,
I'm having problems compiling radiance from sources from
radiance-online cvs. I downloaded the stable tarball and a...
compile most of the executables, but it errors in the src/...

Too many errors encountered; the rest of the message is ignored:
time.

I am running Red Hat 9. I saw Tom had a similar problem back in April.
What I did not see is if he ever got it working and how.

Etienne

···

_________________________________________________________________
Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

etienne canard wrote:

Hi all,
I'm having problems compiling radiance from sources from
radiance-online cvs. I downloaded the stable tarball and a...

Actually, the CVS HEAD dump is usually more stable than the
so called "official release"...

compile most of the executables, but it errors in the src/...

Too many errors encountered; the rest of the message is ignored:
time.

Most likely you left out step 2. of the installation instructions
as given on the download page:

  2. download the ball of auxiliary files

The contents of this archive are necessary for both releases
to build correctly.

-schorsch

···

--
Georg Mischler -- simulations developer -- schorsch at schorsch com
+schorsch.com+ -- lighting design tools -- http://www.schorsch.com/

I do have both files. The programs I am left without are ximage,xshowtrace and xyzimage. This is the error I am recieving:

cd libtiff ; make install
make[1]: Entering directory `/Working/Software/Radiance3.HEAD/ray/src/px/tiff/libtiff'
Makefile:31: *** missing separator. Stop.
make[1]: Leaving directory `/Working/Software/Radiance3.HEAD/ray/src/px/tiff/libtiff'
make: *** [../lib/libtiff.a] Error 2
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/
.
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/
gcc -I../common -L../lib -O2 -DSPEED=200 -Dlinux -D_FILE_OFFSET_BITS=64 -L/usr/X11R6/lib -I/usr/include/
make: Target `install' not remade because of errors.

···

From: Georg Mischler <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [Radiance-general] rad3R5 from latest stable cvs doesn't compile
Date: Sun, 18 Jan 2004 16:16:40 -0500 (EST)

etienne canard wrote:

> Hi all,
> I'm having problems compiling radiance from sources from
> radiance-online cvs. I downloaded the stable tarball and a...

Actually, the CVS HEAD dump is usually more stable than the
so called "official release"...

> compile most of the executables, but it errors in the src/...
>
> Too many errors encountered; the rest of the message is ignored:
> time.

Most likely you left out step 2. of the installation instructions
as given on the download page:

  2. download the ball of auxiliary files

The contents of this archive are necessary for both releases
to build correctly.

-schorsch

--
Georg Mischler -- simulations developer -- schorsch at schorsch com
+schorsch.com+ -- lighting design tools -- http://www.schorsch.com/
_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_________________________________________________________________
Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

etienne canard wrote:

I do have both files. The programs I am left without are ximage,xshowtrace and xyzimage. This is the error I am recieving:

cd libtiff ; make install
make[1]: Entering directory `/Working/Software/Radiance3.HEAD/ray/src/px/tiff/libtiff'
Makefile:31: *** missing separator. Stop.

In the followup post to mine in the archives, there is a workaround to this same problem. The last time I built the 'official' release (to use Roland's pmap addition), I just copied my system libtiff and headers into the Radiance source tree and built/linked against these. Everything built and seemed to function correctly. The included libtiff configure process doesn't seem to like newer versions of GNU sed - or vise versa :wink:

tom

This sounds very familiar. My solution was to edit the RMakefile
in src/px to link to the existing system libraries. This was as
simple as:

186c186
< ra_tiff: ra_tiff.o ../lib/libtiff.a

···

On Sun, 18 Jan 2004, tom wrote:

etienne canard wrote:
> I do have both files. The programs I am left without are
> ximage,xshowtrace and xyzimage. This is the error I am recieving:
>
> cd libtiff ; make install
> make[1]: Entering directory
> `/Working/Software/Radiance3.HEAD/ray/src/px/tiff/libtiff'
> Makefile:31: *** missing separator. Stop.

In the followup post to mine in the archives, there is a workaround to
this same problem. The last time I built the 'official' release (to use
Roland's pmap addition), I just copied my system libtiff and headers
into the Radiance source tree and built/linked against these. Everything
built and seemed to function correctly. The included libtiff configure
process doesn't seem to like newer versions of GNU sed - or vise versa :wink:

---

ra_tiff: ra_tiff.o /usr/lib/libtiff.a

189c189
< ../common/tiff.h ../common/tiffio.h: ../lib/libtiff.a
---

../common/tiff.h ../common/tiffio.h: /usr/lib/libtiff.a

193c193
< normtiff: normtiff.o ../lib/libtiff.a
---

normtiff: normtiff.o /usr/lib/libtiff.a

Mark

Thanks Tom for sharing your solution. It did the trick. As you may have deduced, I do not have a healthy amount of compiling experience.

···

From: tom <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: [Radiance-general] rad3R5 from latest stable cvs doesn't compile
Date: Sun, 18 Jan 2004 20:33:56 -0800

etienne canard wrote:

I do have both files. The programs I am left without are ximage,xshowtrace and xyzimage. This is the error I am recieving:

cd libtiff ; make install
make[1]: Entering directory `/Working/Software/Radiance3.HEAD/ray/src/px/tiff/libtiff'
Makefile:31: *** missing separator. Stop.

In the followup post to mine in the archives, there is a workaround to this same problem. The last time I built the 'official' release (to use Roland's pmap addition), I just copied my system libtiff and headers into the Radiance source tree and built/linked against these. Everything built and seemed to function correctly. The included libtiff configure process doesn't seem to like newer versions of GNU sed - or vise versa :wink:

tom

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

_________________________________________________________________
Rethink your business approach for the new year with the helpful tips here. http://special.msn.com/bcentral/prep04.armx