[GRASS5] problem with gis library - timestamp

I have a program that links to the gis library, and when attempting
to compile it, I get errors relating to the timestamp.c and sites.c
code, all dealing with undefined references to "datetime_copy"
"datetime_format" "datetime_scan" and "datetime_copy".

Anyone know what is wrong?

Here is the result from gmake5:

/usr/local/grass5/grass5.0beta10/src/libes/LIB.i686-pc-linux-gnu/libgis.a(si
tes.o): In function `G_site_get_head':
/usr/local/grass5/grass5.0beta10/src/libes/gis/sites.c:803: undefined
reference to `datetime_error_msg'
/usr/local/grass5/grass5.0beta10/src/libes/LIB.i686-pc-linux-gnu/libgis.a(ti
mestamp.o): In function `G_set_timestamp':
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:15: undefined
reference to `datetime_copy'
/usr/local/grass5/grass5.0beta10/src/libes/LIB.i686-pc-linux-gnu/libgis.a(ti
mestamp.o): In function `G_set_timestamp_range':
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:23: undefined
reference to `datetime_copy'
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:24: undefined
reference to `datetime_copy'
/usr/local/grass5/grass5.0beta10/src/libes/LIB.i686-pc-linux-gnu/libgis.a(ti
mestamp.o): In function `G_format_timestamp':
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:60: undefined
reference to `datetime_format'
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:65: undefined
reference to `datetime_format'
/usr/local/grass5/grass5.0beta10/src/libes/LIB.i686-pc-linux-gnu/libgis.a(ti
mestamp.o): In function `G_scan_timestamp':
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:95: undefined
reference to `datetime_scan'
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:95: undefined
reference to `datetime_scan'
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:101: undefined
reference to `datetime_scan'
/usr/local/grass5/grass5.0beta10/src/libes/LIB.i686-pc-linux-gnu/libgis.a(ti
mestamp.o): In function `G_get_timestamps':
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:116: undefined
reference to `datetime_copy'
/usr/local/grass5/grass5.0beta10/src/libes/gis/timestamp.c:121: undefined
reference to `datetime_copy'
collect2: ld returned 1 exit status
make: *** [/usr/local/grass5/etc/bin/contrib/cmd/r.le.setup] Error 1

Thanks for any help...

Bill Baker
University of Wyoming
BAKERWL@UWYO.EDU

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Bill,

On Wed, Dec 27, 2000 at 09:22:05AM -0700, William L. Baker wrote:

I have a program that links to the gis library, and when attempting
to compile it, I get errors relating to the timestamp.c and sites.c
code, all dealing with undefined references to "datetime_copy"
"datetime_format" "datetime_scan" and "datetime_copy".

Anyone know what is wrong?

yes: You need a reference to the DateTime library in Gmakefile.

Recommended is to have all GRASS libs in a
LIBES=$(DISPLAYLIB) $(RASTERLIB) $(GISLIB) $(DATETIMELIB)

line and use this to reference the GRASS libes for CC line and above.
The non-GRASS libs may *not* go into this LIBES line.

This is described in "SUBMITTING" file in CVS.
I'll send the latest SUBMITTING off-list to you now.

This will help,

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'