Subject: problems with solaris

From: Manfred Sever <[email-masked]>
Date: Tue, 18 Apr 1995 15:43:30 -0400

Hi,

I hope that some of you can help me.  I'm having trouble building
Pine for a Sun Sparc 20 running Solaris 2.4.

I untar the tarfile, cd into pine3.91 and type:
``build sol''

The programs:  mtest, imapd and pico seem to get built OK, but
for pine I get:

Making Pine.
rm -f os.h
ln -s osdep/os-sv4.h os.h
./cmplhlp2.sh  < pine.hlp > helptext.h
cc -DSV4    -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'
 
Links to executables are in bin directory:
size: bin/pine: cannot open
bin/mtest: 516976 + 26120 + 1896 = 544992
bin/imapd: 544896 + 28144 + 9076 = 582116
bin/pico: 128456 + 24560 + 8140 = 161156
Done

Can someone tell me what's wrong and how to fix it?
I've never build pine before.

Manfred.

===============================================================================
Manfred D. M. Sever               |
                                  |
Space Robotics Group,             | E-mail: [email-masked]
University of Toronto             | Tel.:   (416) 667-7744 (Desk)
Institute for Aerospace Studies   |         (416) 667-7731 (Computer Room)
4925 Dufferin Street              |         (416) 667-7722 (Lab)
Downsview, ON  CANADA             | Fax:    (416) 667-7799
M3H 5T6                           |
===============================================================================

---

From: David L Miller <[email-masked]>
Date: Wed, 19 Apr 1995 15:08:08 -0700 (PDT)

Add "-Dconst=" to the CFLAGS line in pine/makefile.sol 

|\ |  |\/|  David L. Miller    [email-masked]  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing, JE-20
4545 15th Ave NE, Seattle WA 98105, USA

On Tue, 18 Apr 1995, Manfred Sever wrote:

> Date: Tue, 18 Apr 1995 15:43:30 -0400
> From: Manfred Sever <[email-masked]>
> To: [email-masked]
> Cc: [email-masked]
> Subject: problems with solaris
> 
> 
> Hi,
>

---

From: Chip Old <[email-masked]>
Date: Sun, 23 Apr 1995 02:39:21 -0400 (EDT)

> Pine for a Sun Sparc 20 running Solaris 2.4.
 
Had the same problem here, so gave it up and FTPd the precompiled 
binaries for Solaris from cac.washington.com.  It works just fine, 
although I had to create a couple of non-standard (for Solaris) 
directories to match the compilation.
 
--------------------------------------------------------------------
Francis E. Old (Chip Old)         Internet: [email-masked]
Internetworking Administrator     Voice:    (410) 887-6180
Baltimore County Public Library   FAX:      (410) 887-2091
320 York Road
Towson, Maryland 21204 USA

---

From: Wai Ming Tai <[email-masked]>
Date: Mon, 24 Apr 1995 11:03:13 +0100 (BST)

> > Pine for a Sun Sparc 20 running Solaris 2.4.

The change I have made is in file c-clients/osdep.h

comment out the line:
  #include <string.h>
  #include <unistd.h>

I use gcc 2.6.3 and it complains about the two lines. I use the sv4 
definition.

Hope that help.

I might have changed one or two other thing which I have forgotten.

Regards,

Wai.

 ======================================================================
 Mr. Wai-Ming Tai                           | E-mail:                   
 School of Cosmic Physics,                  |  Internet: [email-masked] 
 The Dublin Institute for Advanced Studies, |      SPAN: 29522::WAI     
 5 Merrion Square, Dublin 2.                |                             
 IRELAND                                    |
 Tel: +353-1-6621333    FAX: +353-1-6621477 |
 ======================================================================