> 
> Seeing xgrass in Reston was enough to convince me it was
> time to make it.  I made grass4.1beta without any problems,
> but am stuck on xgrass at xgrass/display :  the loader
> can't find strdup.  Sure enough, it's called in lex.c
> (and declared twice!), and not defined in any of the code
> in src/xgrass/display.
> 
> Have I missed a header file somewhere?
> 
> I'm compiling on a DECStation 5000, X with Motif;  the
> X headers seem to be in order.

strdup is one of the string functions defined under SunOS, among
others.  But, it is not available for Ultrix, for reasons that are
unclear to all but DEC.  

Here is the man page fragment dealing with strdup from the SunOS page:

==================================================================

STRING(3)              C LIBRARY FUNCTIONS              STRING(3)

NAME
     strcat,  strncat,  strdup,  strcmp,   strncmp,   strcasecmp,
     strncasecmp,   strcpy,  strncpy,  strlen,  strchr,  strrchr,
     strpbrk, strspn, strcspn, strstr, strtok,  index,  rindex  -
     string operations

SYNOPSIS
     #include <string.h>

...

     char *strdup(s1)
     char *s1;

...


DESCRIPTION
     These functions operate on null-terminated strings.  They do
     not check for overflow of any receiving string.

...


     strdup() returns a pointer to a new string which is a dupli-
     cate  of the string pointed to by s1.  The space for the new
     string is obtained using malloc(3V).  If the new string can-
     not be created, a NULL pointer is returned.

...

=========================

I have fiddled around a bit, trying to get around this, but havn't had any 
luck getting the resulting code to run.  I don't think this one will be too
hard to fix.


+------------------------------------------------------------------------------+
| Kenn Gardels                Tel +01 (510) 642-9205   Fax +01 (510) 643-5571  |
| CEDR - 390 Wurster Hall     Internet  gardels@ced.berkeley.edu               |
| University of California    Bitnet    gardels@UCBCED                         |
| Berkeley, CA  94720         Calendar  gardels@tahoe.ced.berkeley.edu         |
+------------------------------------------------------------------------------+

