grass termlib problems

Maribeth Milner mmilner1 at unl.edu
Tue Apr 20 18:01:04 EDT 1999


Can anyone help us with the following problem?...

If we specify "-ltermlib" for the TERMLIB option while running the setup
script (the relevant part of the "head" file is below), then we get a
compiler error telling us that there are multiple definitions for
Def_term.  However, if we leave that option blank, we get "undefined symbol"
errors.  The multiple definition errors are pasted below.

TERMLIB             = -ltermlib
CURSES              = -lcurses $(TERMLIB)
MATHLIB             = -lm

Compile error:

/usr/ucb/cc -s -o /usr/local/grass42/etc/bin/main/inter/d.3d OBJ/main.o
OBJ/threed.o OBJ/transform.o OBJ/clip.o  OBJ/get_range.o OBJ/check_opt.o
OBJ/get_inputs.o OBJ/sigint.o OBJ/get_row.o OBJ/draw_face.o
/home/jenny/src42/src/libes/LIB/libD.a
/home/jenny/src42/src/libes/LIB/libdisplay.a
/home/jenny/src42/src/libes/LIB/libraster.a
/home/jenny/src42/src/libes/LIB/libgis.a
/home/jenny/src42/src/libes/LIB/libvask.a -lcurses -ltermlib -lm
ld: fatal: symbol `Def_term' is multiply defined:
        (file /usr/ucblib/libcurses.a(curses.o) and file
/usr/ccs/lib/libtermlib.a(setupterm.o));
ld: warning: symbol `ttytype' has differing sizes:
        (file /usr/ucblib/libcurses.a(curses.o) value=0x32; file
/usr/ccs/lib/libtermlib.a(setupterm.o) value=0x400);
        /usr/ccs/lib/libtermlib.a(setupterm.o) definition taken
ld: fatal: File processing errors. No output written to
/usr/local/grass42/etc/bin/main/inter/d.3d
*** Error code 1
make: Fatal error: Command failed for target
`/usr/local/grass42/etc/bin/main/inter/d.3d'
GISGEN failure at STEP: src/display/d.3d

TIA,

Maribeth



More information about the grass-user mailing list