Subject: Re: Problem Compiling Pine 3.92 for SCO

From: Johnny Wang <[email-masked]>
Date: Fri, 19 Apr 1996 09:32:05 -0700

On Fri, 19 Apr 1996, Aerial Empire wrote:

> Please could you point me towards the sight from where you uploaded Pine? 
> I am also looking for a version for our SCO Openserver.
> 

The main site is in ftp.cac.washington.edu 
I don't remember the exact directory, but there should be a pine 
directory.  They have just released 3.93 which still did not resolve my 
compiling problem.

You may want to use archie to find a mirror site close to you.  Or I 
guess you can use the web to search for it.

I still like to hear from those that have successfully compiled Pine3.93 
on the SCO 3.2v4.2 either with gcc or cc compiler.

Johnny

Previous post on the error
 
I'm having some problem compiling Pine 3.92 for SCO 3.2v4.2.  I use 
"build sco" and got all the binaries except for pine.  I get warnings 
during compilation, but when it is compiling send.c in pine directory, I 
get a segmentation violation.  I attached the error code at the end of 
this message.
 
=============================
Making Pine.
	cc   -g -DDEBUG  -DSCO -DSYSTYPE=\"SCO\" -DMOUSE -c send.c
send.c
send.c(3740) : warning C4047: 'argument' : different levels of indirection
send.c(3740) : warning C4022: 'mail_parameters' : pointer mismatch : parameter 3

> snip

Compiler error (assertion): file @(#)reg86.c:1.12, line 365 source=1854
Compiler error : Segmentation violation
*** Error code 11
 
Stop.

---

From: Richard Gering <[email-masked]>
Date: Tue, 23 Apr 1996 17:36:31 +0200 (WST)

> on the SCO 3.2v4.2 either with gcc or cc compiler.

I've successfully compiled all versions of Pine from 3.91 through 3.93 on
my SCO Unix system. I'm running release 3.2v4.2 and I'm using the standard
cc compiler (the one derived from Microsoft's C compiler version 6).
Haven't tried using the alternate rcc (by AT&T) yet with Pine and gcc is
only installed on my Linux system. For now anyway :-) 

All versions gave me working binaries, altough the build of pine itself
does show you a ton of warnings. A lot of these message are the result of
cc getting confused by the ANSI style function prototyping followed by the
K&R style function definition. This is what gives you the messages like

  send.c(3064) : warning C4200: previous declarator is not compatible with
                 default argument promotion

All 170 of them. But I do end up with a working binary!

It seems that your compiler is getting totally confused. What version of
the development system are you using?  Any patched installed or not 
installed (the last question could be hard to answer ;-)

Try running fixmog and/or fixperm . Even though your problem doesn't seem
file permission related, these critters often solve many problems.

If you still can't get it to compile, you can try mailing me a copy of the
output of 'swconfig'. Perhaps I can find out what's different between your
system and mine. 

Regards,

- Richard Gering.

+-----------------------------------------------------------------------------+
| Richard Gering ([email-masked]) | Let me make one thing perfectly clear:  |
| Computer Industries International | I never explain anything! (Mary Poppins)| 
+-----------------------------------------------------------------------------+