Subject: SOLUTION: compiling pine on solaris 2.4

From: [email-masked] (Eddy Verbeemen)
Date: Fri, 8 Mar 1996 16:42:38 GMT

I had quite some problems compiling pine 3.91 on solaris 2.4
I am/was not the only one since I have seen quite some postings about the
same problem, but I never saw any answer.

Apparently the solaris support in the makefiles works only on solaris 2.2
(also the pre-compiled binaries on ftp.cac.washington.edu are solaris 2.2)
I tried all sorts of combinations (cc5.sol, gcc, ..) but all to no avail:
  imap, mtest and pico compiled -- be it with a lot of warnings -- 
    but pine simply wouldn't.

Carefull examination of the compiler error showed that the problem was 
not in the pine code, but in the the include files stdio.h, stdlib.h and
unistd.h : redefinition of functions (eg getopt).
Examining those files showed that if __STDC__ was defined, the functions
were defined twice if some other compile conditions were met.
Reading the man page for cc showed the magic cc option: -Xs

The solution: modify makefile.sol in both the pico and pine directories
    - define LDCC as cc (forget about using cc5.sol) :   LDCC= cc
    - add -Xs to CFLAGS

I bet that someone who is used to compile stuff on solaris 2.4 could have
solved this problem in a fraction of the time I needed. But since I did not
find any answer in this or other newsgroups ...

Happy compiling.

Eddy
-- 
Eddy Verbeemen (UNIX System Administrator)
Interuniversitair Micro Electronica Centrum
IMEC   Kapeldreef 75            phone: +32 (0)16 281602
B 3001 Heverlee Belgium         email: [email-masked]

---

From: Bookout <[email-masked]>
Date: Sat, 9 Mar 1996 07:57:19 -0500 (EST)

Eddy,
I read your recent message on Pine configurations with a lot of interest.

Would you please tell me how I can get the Pine Manual that shows 
configuration possibilities?

My server uses UNIX _ SunOS Release 4.1.3_U1 SCLS #1_.

Can you easily explain to a novice what all that means?

Henry
[email-masked]