Subject: Compiling PINE under Solaris 2.4

From: [email-masked] (Pete Geenhuizen)
Date: 10 Dec 1995 22:04:50 GMT

I'm making the move to Solaris 2.4, and tried to compile Pine 3.91, but
ran into a minor snag.  Here's the error output

Making Pine.
cc -DSV4   -g -DDEBUG -DSYSTYPE=\"SOL\"  -c  addrbook.c
"/usr/include/stdlib.h", line 141: identifier redeclared: getopt
        current : function(int, pointer to pointer to char, pointer to char) 
returning int
        previous: function(int, pointer to const pointer to char, pointer to 
const char) returning int : "/usr/include/stdio.h", line 283
"/usr/include/stdlib.h", line 142: identifier redeclared: getsubopt
        current : function(pointer to pointer to char, pointer to pointer to 
char, pointer to pointer to char) returning int
        previous: function(pointer to pointer to char, pointer to const pointer
 to char, pointer to pointer to char) returning int : "/usr/include/stdio.h", 
line 285
"/usr/include/unistd.h", line 225: identifier redeclared: rename
        current : function(pointer to char, pointer to char) returning int
        previous: function(pointer to const char, pointer to const char) 
returning int : "/usr/include/stdio.h", line 148
"addrbook.c", line 3954: cannot recover from previous errors
cc: acomp failed for addrbook.c
*** Error code 2
make: Fatal error: Command failed for target `addrbook.o'

Has anyone been able to compile Pine under Soalris 2.4 using Sun C? 
If so could you please provide me with the necessary changes to compile pine.

Thanks

Pete
-- 
-------------------------------------------------------------------------
"If there's isn't a god, then who pops up the next kleenex?"
Pete Geenhuizen,                        Systems Administrator, 
[email-masked]              AFTAC PAFB Cocoa Beach, FL

---

From: [email-masked] (Pete Geenhuizen)
Date: 14 Dec 1995 10:18:35 GMT

In article <[email-masked]>,
>ran into a minor snag.  Here's the error output

I got a couple of responses to my Question.  The first one I got I tried, and
it worked.

David Drum has a patch and some instructions on how to apply it.  I used
gcc-2.7.1 and, as Dvid points out, with some warnings Pine compiles and
works just fine.
|> 
|> finger [email-masked] > pine.patch
|> 
|> Edit out the finger information at the top of the file.
|>