[GRASSLIST:2045] Re: Newbie Grass5.0.0pre1 compilation problem
glynn.clements at virgin.net
Mon Jul 2 03:59:43 EDT 2001
Simon Parker wrote:
> Now I know that I don't have permission to write to this directory as user,
> but this doeasn't seem to be the right place for the file. Looking through
> the Gmakefile it seems as though the variable $(BIN_CONTRIB_CMD) is
> undefined. I tried setting this manually and the compile gets further but
> then gives an error:
> /usr/local/grass/src/libes/gis/flat.c undefined reference to 'deflate
> Is this some reference to the now replaced LZW compression libraries? If so
> is there anything simple I can do to change the code to reflect this? Thanks
"deflate" comes from zlib (libz), which provides "gzip"
(de)compression. All programs which are linked against libgis also
need to be linked against libz.
AFAIK, the correct way to do this is to ensure that any program whose
compilation command includes $(GISLIB) also includes $(XDRLIB).
However, unlike $(GISLIB), $(XDRLIB) should not be listed as a
dependency, as it is a list of compiler/linker switches rather than
the pathname of a library file.
For an example, look at virtually any "Gmakefile".
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user