xdriver problem

Markus Neteler neteler at geog.uni-hannover.de
Thu Oct 21 08:53:09 EDT 1999


> linux redhat 6.0 kernel 2.2.15
> grass 4.21 compiled ok but...
> when compiling the xdriver (either _8 or _24) i get this message:
> 
> make[1]: Entering directory
> `/usr/grass4.2/src421/src/display/devices/XDRIVER_24/XDRIVER24'
> 
> rm -f OBJ.linux/SWITCHER.o
> gcc -O2 -m486 -DATT_386 -D_NO_PROTO  -I/usr/include
> -I/usr/grass4.2/src421/src/include   -DUSE_TERMIO -c SWITCHER.c
> SWITCHER.c:45: macro `strcpy' used without args
> make[1]: *** [OBJ.linux/SWITCHER.o] Error 1
> make[1]: Leaving directory
> '/usr/grass4.2/src421/src/display/devices/XDRIVER_24/XDRIVER24'
> make: *** [all] Error 2

Just comment the line 45 in 
src/display/devices/XDRIVER_24/XDRIVER24/Switcher.c
like this:
/*char *malloc(), *strcpy();*/

Then it compiles. (hi C-gurus, I hope it is o.k.)

Markus



More information about the grass-user mailing list