Subject: building pine on solaris 2.3

From: [email-masked] (Mitch Baltuch)
Date: 29 Aug 94 20:02:13 GMT

has anyone managed to build pine on solaris 2.3 with the ansi compiler?
neither pico or pine will build.  i tried using gcc and pico would build,
but pine still failed.

thanks,
mitch

--
_______________________________________________________________________________
Mitchell S. Baltuch			   Unidata Program Center
Software Engineer			   Univ. Corp for Atmospheric Research
[email-masked]			   WWW: http://www.unidata.ucar.edu/

---

From: [email-masked] (Amos A. Gouaux)
Date: 30 Aug 1994 00:15:14 GMT

Mitch> has anyone managed to build pine on solaris 2.3 with the ansi
    Mitch> compiler?  neither pico or pine will build.  i tried using gcc
    Mitch> and pico would build, but pine still failed.
 
To compile pine on Solaris using gcc:
 
1.  Under the distribution source directory, edit pine/makefile.sol.  Specify
    the following make variables:
 
    CC= gcc
    CFLAGS= -DSV4 $(OPTIMIZE) $(PROFILE) $(DEBUG) -ansi -DANSI -DSYSTYPE=\"SOL\"
    LDCC= gcc
 
2.  In pine/osdep, edit the file os-sv4.h and make the following modifications:
 
    /*----------------- Are we ANSI? ---------------------------------------*/
    #define ANSI          /* this is an ANSI compiler */
 
    /*  #define const           /* compiler doesn't support const */
 
3.  Under the distribution source directory, edit pico/makefile.sol.  Specify
    the following make variables:
 
    CC= gcc
    LDCC= gcc
    CFLAGS=     -Dsv4 -DPOSIX -DJOB_CONTROL -ansi

---

From: [email-masked] (Philip Hazel)
Date: 31 Aug 1994 09:23:30 GMT

In article <mitch.778190533@wcfields>, [email-masked] (Mitch Baltuch) writes:
|> 
|> has anyone managed to build pine on solaris 2.3 with the ansi compiler?
|> neither pico or pine will build.  i tried using gcc and pico would build,
|> but pine still failed.

I built Pine 3.90 yesterday without any trouble at all, using Sun's ANSI 
compiler. This is what I did:

. Edited pine/osdep/os-sv4.h and made 3 changes:

  . Set the locations of the pine global configuration files;
  . De-commented the setting of ANSI;
  . Commented the null definition of "const".
  
. Edited pine/makefile.sol and made one change:
  
  . Commented out the compiler flag setting for -g -DDEBUG.
  
. Typed "build sol" at top level. 

I have been using it without any problems ever since.

-- 
Philip Hazel                   University Computing Service,
[email-masked]             New Museums Site, Cambridge CB2 3QG,
[email-masked]          England.  Phone: +44 1223 334714