Subject: Problems compiling 3.89 on SGI

From: "Carolynn Seeley ( Spring )" <[email-masked]>
Date: Tue, 26 Jul 1994 09:26:21 -0400 (EDT)

I compiled PINE 3.89 on our SGI running IRIX Release 4.0.5 last December 
and we had few problems.  We have now upgraded the release of IRIX to 5.2 
and PINE 3.89 won't compile.  

When doing a 'build sgi' I get the following error:

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

make: fatal error.

Has anyone come across this before? Can someone help me with this please?
Thank you.

-------------------------------------------------------------------------------
Carolynn Seeley                     email:  [email-masked]
Consultant, Office Systems Support          [email-masked]
PINE Administrator
Computing and Information Services     
McMaster University, ABB-132
(905) 525-9140              x27090     
------------------------------------------------------------------------------

---

From: Mark Crispin <[email-masked]>
Date: Tue, 26 Jul 1994 10:13:39 -0700

Try changing _tzname to tzname, or just delete that reference entirely.  We
did the latter with Pine 3.90, since it seems that SGI can't make up its mind
what it is called.

---

From: [email-masked] (Karsten Kuenne)
Date: 27 Jul 1994 16:41:56 GMT

>>>>> ""Carolynn" == "Carolynn Seeley ( Spring )" <[email-masked]> writes:

"Carolynn> I compiled PINE 3.89 on our SGI running IRIX Release 4.0.5
"Carolynn> last December and we had few problems.  We have now
"Carolynn> upgraded the release of IRIX to 5.2 and PINE 3.89 won't
"Carolynn> compile.

"Carolynn> When doing a 'build sgi' I get the following error:

"Carolynn> 	cc -O -cckr -Wf,-XNh2000 -Dconst= -DRSH=\"rsh\"
"Carolynn> -DRSHPATH=\"/usr/bsd/rsh\" -c os_sgi.c cfe: Error:
"Carolynn> os_sgi.c, line 90: '_tzname' undefined; reoccuuences will
"Carolynn> not be reported.  _tzname[t->tm_isdst ? 1 : )]); ---^ ***
"Carolynn> Error code 1 (bu21)

"Carolynn> make: fatal error.

"Carolynn> Has anyone come across this before? Can someone help me
"Carolynn> with this please?  Thank you.

It's easy to fix, you have to declare _tzname in os_sgi.c. Add the following
line at around line 82 in os_sgi.c:

     extern char *_tzname[2];

That should do it.

Karsten.
-- 
////////////////////////////////////////////////////////////////////
Karsten Kuenne, DESY (-R2-), Notkestr. 85, 22607 Hamburg, Germany
phone: +49-40-8998-3315      fax: +49-40-8998-4429
e-mail: <[email-masked]>, <[email-masked]>

---

From: [email-masked] (Randy Zagar)
Date: 28 Jul 1994 20:17:17 GMT

Karsten Kuenne writes:

>
> It's easy to fix, you have to declare _tzname in os_sgi.c.
> Add the following line at around line 82 in os_sgi.c:
>
>     extern char *_tzname[2];
>
> That should do it.
>
> Karsten.

In SGI's Irix-5.2, /usr/include/time.h already declares

	extern char *tzname[2];

If you change _tzname to tzname in rfc822_date()  (in "os_sgi.c"), then
everything will compile just fine.

Also, there is another bug in os_sgi.c that causes problems with remote
imap sessions.  Even when you have /etc/rimapd defined on the server,
pine will still prompt you for a password.

This can be fixed by finding the string (in os_sgi.c)

	"/usr/ucb/rsh"

and changing it to RSHPATH (no quotes).  RSHPATH is already defined
in the makefile and will be handled by the c-preprocessor.

-Randy

---
 ______________________________________________________________________
/                                                                      \
| Randy Zagar                 |      Voice: 302/831-1139               |
| College of Marine Studies   |        FAX: 302/831-6838               |
| University of Delaware      |   Internet: [email-masked] |
| Newark, DE 19711            | Compu$erve: 73072,1413                 |
|----------------------------------------------------------------------|
|          PGP Key available on request, or by 'finger'.               |
\______________________________________________________________________/