Subject: Help compiling pine for solaris 2.3 on Sparc 1000

From: [email-masked] (Carter Stein)
Date: Sun, 19 Feb 1995 04:36:20 GMT

I ran the command "build sol" to build pine for solaris 2.3 on the S1000.
But, make gave a Fatal Error for addrbook.o.

Can anyone send me some e-mail hints about what may need to be tweeked?

If things work out, I'll send the solution...

Thanks,

--Carter Stein
  [email-masked]
  Pacific States Marine Fisheries Commission
  503.650.5400
==== output of build sol follows =================

make args are "CC=cc"

Making c-client library, mtest and imapd
make build SYSTYPE=non-ANSI OS=sol
echo sol > OSTYPE
rm -rf systype
ln -s non-ANSI systype
cd non-ANSI/c-client; make sol
make mtest OS=sv4 EXTRADRIVERS="" \
	STDPROTO=bezerkproto \
	RSHPATH=/usr/bin/rsh CFLAGS="-g -Dconst= " \
	RANLIB=true LDFLAGS="-lsocket -lnsl -lgen"
./drivers  imap nntp pop3 mh mtx tenex mmdf bezerk news phile dummy
rm -f OSTYPE CFLAGS LDFLAGS osdep.h
echo sv4 > OSTYPE
echo -g -Dconst= > CFLAGS
echo -lsocket -lnsl -lgen  > LDFLAGS
ln -s os_sv4.h osdep.h
cc -g -Dconst=  -c  mtest.c
cc -g -Dconst= -o mtest mtest.o c-client.a -lsocket -lnsl -lgen
cd non-ANSI/ms;make
If CCMD library is not available, ms will not be made.
This is alright since ms is only a demonstration program.
../../../ccmd directory not found, so make.ms is ignored
cd non-ANSI/ipopd;make
cd non-ANSI/imapd;make
`imapd' is up to date.

Making Pico

Making Pine.
cc -DSV4   -g -DDEBUG -DSYSTYPE=\"SOL\"  -c  addrbook.c
"/usr/include/unistd.h", line 172: identifier redeclared: rename
"addrbook.c", line 3954: cannot recover from previous errors
cc: acomp failed for addrbook.c
*** Error code 1
make: Fatal error: Command failed for target `addrbook.o'

Links to executables are in bin directory:
size: bin/pine: cannot open
bin/mtest: 422680 + 26048 + 1896 = 450624
bin/imapd: 445420 + 28068 + 9076 = 482564
bin/pico: 121256 + 24528 + 8140 = 153924
Done

====end of build sol==============================

---

From: [email-masked] (Bob Rahe)
Date: 20 Feb 1995 15:36:16 GMT

>If things work out, I'll send the solution...

  Here are my notes for building on an ss1000 Solaris 2.3.  You should use
the sv4 makefile:

--------- Begin notes..... -----

Turn off DEBUG in the makefile.sv4 for pine 

In pine/headers.h,  move the osdep.h and mail.h include to right after
the stdio include.  This avoids a problem with a different redef of the
rename function.

Set user-domain=your.domain.name in pine.conf.fixed  (Solaris won't get
the FQDN).

In pine/reply.c generate_message-id, use maildomain not hostname

>>> In c-client/tcp_unix.c  (imap/non-ANSI/c-client) init the localhostname to
                         maildomain.  But since this isn't really possible
                         without much grief, hard code the *)&^%#%&^%T*&

------  End notes.....
-- 
-------------------------------------------------------------------------
|Bob Rahe, Delaware Tech&Comm College | AIDS, Drugs, Abortion: -        |
|Computer Center, Dover, Delaware     |  - Don't liberals just kill you?|
|Internet: [email-masked]        |Save whales; and kill babies?    |
-------------------------------------------------------------------------