Tim Martin (me!) wrote: 
> I am compiling the new interp library and *.surf.tps programs, on an
> RS/6000.  The three library directories seem to compile ok, but when I
> try to compile r.resample.tps, I get the error:
> ERROR: ../interp/LIB.RS6000/libinterp.a not an XCOFF object.
 
Thanks to a note from Jaro Hafierka, who asked a similar question
recently, I think I've solved the problem.  When the interp library
is being linked, some other libraries are linked into it as well.
Apparently RS/6000s, or more specifically the "X Common Object File 
Format", doesn't like this.  So the solution is simply to remove
from the Gmakefile the references to the other libraries, in the
interp directory.  The original line, and corrected line, are as 
follows:

#$(LIB): $(LIST) $(TREELIB) $(DATALIB) $(GISLIB) $(BITMAPLIB) $(LINKMLIB) $(VECTLIB)
$(LIB): $(LIST)

Actually I made two other changes.  I changed this line, in the Gmakefile,

#EXTRA_CFLAGS =  -I$(TREEDIR) -I$(DATADIR) $(VECT_INCLUDE)
EXTRA_CFLAGS =   $(VECT_INCLUDE)

and I added dataquad.o and tree.o to the "LIST =" line, dataquad.c and tree.c
to the "SRCS =" line, and copied those sources from their directories to the
interp directory.  I don't think these last changes were needed, though: they
simply mean that all the functions in those two libraries are also compiled
as part of the interp library.  The linker doesn't mind, it seems, if two
libraries containing the same function are linked into an executable.  The
problem it seems is if libraries are linked into libraries.

But I still haven't tested whether the programs work on my computer.
Aren't computers fun?  Thanks, Jaro.

Tim.

 -------------------------------------------------------------------------
 Tim Martin                     *  The conception of illocutionary force
 Spatial Information Systems    *  as a unitary disambiguating context for
 University of Alberta          *  the semantic content produces special
 martin@ulysses.sis.ualberta.ca *  tangles in the case of certain kinds
 (403) 492-6586                 *  of negation.    -Cronen et al., 1990
 -------------------------------------------------------------------------


