Subject: _tzname undfined on sgi

From: [email-masked] ()
Date: 30 May 1994 17:12:04 GMT

I've been trying to build pine on a SGI Challenge running Irix 5.1.1,
but 'build sgi' tells me:
make args are "CC=cc"

Making c-client library and mtest
        cc -O -cckr -Wf,-XNh2000 -Dconst= -DRSH=\"rsh\" -DRSHPATH=\"/usr/bsd/rsc
cfe: Error: os_sgi.c, line 90: '_tzname' undefined; reoccurrences will not be r.
           _tzname[t->tm_isdst ? 1 : 0]);
        ---^
*** Error code 1 (bu21)

and thus don't build pine (It does build pico, but nothing else)

Any ideas out there?

Thomas

[email-masked]

---

From: Rick Troxel <[email-masked]>
Date: Tue, 31 May 1994 13:10:30 +0059 (EDT)

> and thus don't build pine (It does build pico, but nothing else)

I made the following mods in building pine on a kindred system.  I
believe these are all known to the Pine team.

BTW, you should check your mail configuration.  Your return address was 
given as [email-masked].

*** imap/non-ANSI/c-client/os_sgi.c.ORIG	Mon Dec  6 11:22:25 1993
--- imap/non-ANSI/c-client/os_sgi.c	Tue Feb 22 16:06:30 1994
***************
*** 87,93 ****
    sprintf (date,"%s, %d %s %d %02d:%02d:%02d %+03d%02d (%s)",
  	   days[t->tm_wday],t->tm_mday,months[t->tm_mon],t->tm_year+1900,
  	   t->tm_hour,t->tm_min,t->tm_sec,zone/60,abs(zone)%60,
! 	   _tzname[t->tm_isdst ? 1 : 0]);
  }
  ^L
  /* Get a block of free storage
--- 87,93 ----
    sprintf (date,"%s, %d %s %d %02d:%02d:%02d %+03d%02d (%s)",
  	   days[t->tm_wday],t->tm_mday,months[t->tm_mon],t->tm_year+1900,
  	   t->tm_hour,t->tm_min,t->tm_sec,zone/60,abs(zone)%60,
! 	   tzname[t->tm_isdst ? 1 : 0]);
  }
  ^L
  /* Get a block of free storage
***************
*** 408,414 ****
      dup2 (pipeo[0],0);		/* parent's output is my input */
      close (pipeo[0]); close (pipeo[1]);
  				/* now run it */
!     execl ("/usr/ucb/rsh","rsh",hostname,"exec",service,0);
      _exit (1);			/* spazzed */
    }
  ^L
--- 408,414 ----
      dup2 (pipeo[0],0);		/* parent's output is my input */
      close (pipeo[0]); close (pipeo[1]);
  				/* now run it */
!     execl (RSHPATH,"rsh",hostname,"exec",service,0);
      _exit (1);			/* spazzed */
    }
  ^L

*** pine/ttyout.c.ORIG	Wed Sep 29 18:34:07 1993
--- pine/ttyout.c	Tue Mar  1 11:48:09 1994
***************
*** 132,138 ****
              *_scrollregion, *_scrollup, *_scrolldown,
              *_termcap_init, *_termcap_end;
  static int   _lines, _columns;
! char  termname[40];
  #ifndef USE_TERMINFO
  static char  _terminal[1024];         /* Storage for terminal entry */
  static char  _capabilities[1024];     /* String for cursor motion */
--- 132,138 ----
              *_scrollregion, *_scrollup, *_scrolldown,
              *_termcap_init, *_termcap_end;
  static int   _lines, _columns;
! char  term_name[40];
  #ifndef USE_TERMINFO
  static char  _terminal[1024];         /* Storage for terminal entry */
  static char  _capabilities[1024];     /* String for cursor motion */
***************
*** 183,190 ****
      *tt = NULL;
      ttnm = getenv ("TERM");
      if (!ttnm) return -1;
!     strcpy (termname, ttnm);
!     setupterm (termname, 1 /* (ignored) */, &err);
      switch (err) {
      case -1 : return -3;
      case 0 : return -2;
--- 183,190 ----
      *tt = NULL;
      ttnm = getenv ("TERM");
      if (!ttnm) return -1;
!     strcpy (term_name, ttnm);
!     setupterm (term_name, 1 /* (ignored) */, &err);
      switch (err) {
      case -1 : return -3;
      case 0 : return -2;
***************
*** 230,239 ****
      *tt = NULL;
      if (getenv("TERM") == NULL) return(-1);
  
!     if (strcpy(termname, getenv("TERM")) == NULL)
      	return(-1);
  
!     if ((err = tgetent(_terminal, termname)) != 1)
      	return(err-2);
  
      ttyo = (struct ttyo *)fs_get(sizeof (struct ttyo));
--- 230,239 ----
      *tt = NULL;
      if (getenv("TERM") == NULL) return(-1);
  
!     if (strcpy(term_name, getenv("TERM")) == NULL)
      	return(-1);
  
!     if ((err = tgetent(_terminal, term_name)) != 1)
      	return(err-2);
  
      ttyo = (struct ttyo *)fs_get(sizeof (struct ttyo));
***************
*** 302,308 ****
            return(-4);
      }
  
!     dprint(1, (debugfile, "Terminal type: %s\n", termname));
  
      /*------ Figure out scrolling mode -----*/
      if(_scrollregion != NULL && _scrollregion[0] != '\0' &&
--- 302,308 ----
            return(-4);
      }
  
!     dprint(1, (debugfile, "Terminal type: %s\n", term_name));
  
      /*------ Figure out scrolling mode -----*/
      if(_scrollregion != NULL && _scrollregion[0] != '\0' &&

*** pine/ttyin.c.ORIG	Wed Nov 17 20:44:19 1993
--- pine/ttyin.c	Tue Mar  1 11:50:02 1994
***************
*** 820,826 ****

! extern char termname[]; /* termname from ttyout.c-- affect keyboard*/
  /* -------------------------------------------------------------------
       Set up the keyboard -- usually enable some function keys  (UNIX)
  
--- 820,826 ----

! extern char term_name[]; /* term_name from ttyout.c-- affect keyboard*/
  /* -------------------------------------------------------------------
       Set up the keyboard -- usually enable some function keys  (UNIX)
  
***************
*** 836,842 ****
  init_keyboard(use_fkeys)
       int use_fkeys;
  {
!     if(use_fkeys && (!strucmp(termname,"vt102") || !strucmp(termname,"vt100")))
        printf("\033\133\071\071\150");
  
  }
--- 836,843 ----
  init_keyboard(use_fkeys)
       int use_fkeys;
  {
!     if(use_fkeys && \
!        (!strucmp(term_name,"vt102") || !strucmp(term_name,"vt100")))
        printf("\033\133\071\071\150");
  
  }
***************
*** 854,860 ****
  end_keyboard(use_fkeys)
       int use_fkeys;
  {
!     if(use_fkeys && (!strcmp(termname, "vt102") || !strcmp(termname, "vt100"))){
        printf("\033\133\071\071\154");
        fflush(stdout);
      }
--- 855,862 ----
  end_keyboard(use_fkeys)
       int use_fkeys;
  {
!     if(use_fkeys && \
!        (!strcmp(term_name, "vt102") || !strcmp(term_name, "vt100"))){
        printf("\033\133\071\071\154");
        fflush(stdout);
      }

-- 
Rick Troxel     [email-masked]     [email-masked]     301/496-4823
///////////////////////////////////////////////////////////////////////////
     All effort and exertion put forth by man from the fullness of his
     heart is worship, if it  is prompted  by the  highest motives and
     the will to do service to humanity.                 --Abdu'l-Baha