Subject: Has anyone recently compiled the rayshade package?
To: None <current-users@netbsd.org>
From: John F. Woods <jfw@jfwhome.funhouse.com>
List: current-users
Date: 01/07/1999 21:48:10
Has anyone recently built the rayshade package?  When I try, it blows up with
the following:

cc -O2 -o rayshade main.o raytrace.o version.o ../libshade/libshade.a ../libray/
libray.a /usr/pkg/lib/librle.a -lm
imagetext.o: Undefined symbol `_ImageRead' referenced from text segment
imagetext.o: Undefined symbol `_ImageIndex' referenced from text segment
imagetext.o: Undefined symbol `_ImageIndex' referenced from text segment
imagetext.o: Undefined symbol `_ImageIndex' referenced from text segment
collect2: ld returned 1 exit status
*** Error code 1

I have just done a sup, so I am up to date.

Hmm, I just reran the make process, and it builds the libray.a library
like this:

for i in libcommon libobj libimage liblight libsurf libtext; do  (cd $i && make
-);  done
ar cur ../libray.a memory.o expr.o transform.o rotate.o sampling.o scale.o trans
late.o vecmath.o xform.o
/usr/bin/ranlib ../libray.a
`../libray.a' is up to date.
`../libray.a' is up to date.
`../libray.a' is up to date.
`../libray.a' is up to date.
`../libray.a' is up to date.

That looks like a symptom of busted dependancies.  (I.e. just because
libray.a is "newer" than the .o files, that's not sufficient!)  If I
do a make clean first, it works OK, except for the file containing the
missing definitions:

/usr/bin/ranlib ../libray.a
cc -I/usr/pkg/include 
  -I/usr/pkgsrc/graphics/rayshade/../../graphics/urt/work/include
  -I.. -I../.. -I/usr/pkgsrc/graphics/rayshade/../../graphics/urt/work
  -O2 -c image.c
`../libray.a' is up to date.

I'm doing this on a PII-350, and I'll bet that the file date for
image.o and libray.a differ by less than a second...

What's the right way to express this kind of dependancy?