compiling problems: grass5.0beta Linux-suse6

Agustin Lobo alobo at ija.csic.es
Thu Mar 18 09:23:18 EST 1999


Hi there!

We are trying to compile grass5.0beta
on a Linux (Suse 6.0 box).

We alrready have problems at runing the setup:

1. Do we need the Motif include files? I'm not able to
find the directory.

2. X library: we have:
/usr/X11R6/include
/usr/X11R6/include/X11
/usr/X11/include
/usr/X11/include/X11
/usr/include/X11

With all of them we get:

"This is an invalid path. Try again. "

Do we need the X11 libraries for tclTk Grass? In
principle, we do not want Grass.X

3. We get warnings with the math lib:

Specify the math library.
Enter - if there is no math library, otherwise enter -lm.

MATHLIB [-lm] : 

Checking -lm. Please watch for any errors
utils/math.c: In function `main':
utils/math.c:3: warning: type mismatch in implicit declaration for 
built-in function `fabs'
utils/math.c:4: warning: type mismatch in implicit declaration for 
built-in function `sin'

Check complete
Any problems?

I answered "n" as these were just Warnings, correct?
(The alternative is not giving any math library, would this be better?)

4. TERMLIB:
TERMLIB [-l] : -ltermlib

Checking -ltermlib. Please watch for any errors
/usr/i486-linux/bin/ld: cannot open -ltermlib: No such file or directory
collect2: ld returned 1 exit status

Check complete
Any problems?     

Here we have problems. Should we just state - ? (i.e., no termlib
library?)

5. Same thing for curses:
Specify the curses library.

CURSES [-lcurses] :

Checking -lcurses. Please watch for any errors
/usr/i486-linux/bin/ld: cannot open -lcurses: No such file or directory
collect2: ld returned 1 exit status

Check complete
Any problems? 


If we specify -lgcc:

URSES [-l] : -lgcc

Checking -lgcc. Please watch for any errors
/tmp/ccZ1IINq.o: In function `main':
/tmp/ccZ1IINq.o(.text+0x4): undefined reference to `initscr'
/tmp/ccZ1IINq.o(.text+0x9): undefined reference to `raw'
/tmp/ccZ1IINq.o(.text+0xe): undefined reference to `noecho'
/tmp/ccZ1IINq.o(.text+0x13): undefined reference to `nonl'
/tmp/ccZ1IINq.o(.text+0x18): undefined reference to `cbreak'
/tmp/ccZ1IINq.o(.text+0x1d): undefined reference to `stdscr'
/tmp/ccZ1IINq.o(.text+0x23): undefined reference to `wclear'
/tmp/ccZ1IINq.o(.text+0x2b): undefined reference to `stdscr'
/tmp/ccZ1IINq.o(.text+0x31): undefined reference to `wrefresh'
/tmp/ccZ1IINq.o(.text+0x39): undefined reference to `endwin'
collect2: ld returned 1 exit status



Finally:

6. Should we use gcc or cc?

7. How was the command to run GISGEN and get the output bith to the
terminal and to a file? (We are using bash,  by the way, is it
better than csh?).

Thanks!


****NOTE NEW PHONE NUMBER*****
Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es
http://pangea.ija.csic.es/alobo




More information about the grass-user mailing list