Subject: RE: Building Pine under Solaris 2.4

From: Manfred Sever <[email-masked]>
Date: Mon, 24 Apr 1995 09:47:57 -0400

Well, I finally got Pine to compile and installed on a
Sparc 20 running Solaris 2.4

Here is what I did:

1.) First I applied a patch (pine3.91.tar), but this didn't seem to
    make a difference.  I still got the same compile errors.
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

2.) I then added a definition:  `-Dconst' to CFLAGS, in `makefile.sol'
    BUT this did not work, so I took it out again.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

3.) I then made the following modifications to `./pine/makefile.sol':
    CC=cc
    LDCC=cc

    I also made the following modifications to `./pine/osdep/os-sv4.h':
    #define ANSI
    /*#define     const           */
    /*#define signal(a,b) sigset(a, b) */
    /*extern void (*sigset())();       */
    #define QSType void
    /*#define QSType char  */

With these definitions in `makefile.sol', and the above uncommented and
commented-out definitions in `os-sv4.h', Pine built with only a few
warning messages about ANSI-C compatibility.  (I also added the following
compiler options to the native cc Sun compiler: -fast -xcg92 -KPIC -Xa
but this shouldn't matter.)

Compiling with gcc didn't work at all, (even with the patch described in
`1.)' above).  In fact, gcc died a terrible death on `pico'.  I have
the Cygnus gcc compiler installed here.

So its DONE and Pine seems to work fine with no modifications other than
to the `makefile.sol' and `os-sv4.h' files.

Special thanks to:  David Drum, David L Miller, Chip Old, and Wai Ming Tai
for their responses.

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: [email-masked] (R. Stewart Ellis)
Date: 25 Apr 95 00:25:44 GMT

>    /*extern void (*sigset())();       */

This is almost certainly a mistake.  Signal semantics for Solaris and other
SVR4 variants are quite different from earlier UNIXes.  Check
comp.unix.solaris and the Solaris Porting FAQ.

 >but this shouldn't matter.)

There is no native Sun cc compiler, they are all add-ons now.

 >the Cygnus gcc compiler installed here.

Did you run the fixincludes according to the Cygnus install instructions?
All versions of gcc depend on that crucial step to get their include files
setup right.

Many people have done it.  You must have gotten a step wrong.

-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt. Inst.    /   _____  ______ 
  Flint, MI 48504      [email-masked]               /        / /  /  / /
  Gopher,chimera,nn,tin,jove,modems, free code is best!/________/ /  /  / /