Subject: pine3.91 build cvx

From: [email-masked]
Date: Wed, 26 Oct 1994 10:12:46 +0100 (MET)

Dear Pine Team, dear Pekka

tried to compile pine3.91 under convex_os11 with /bin/cc.

I finally got it compiled when I removed these two lines 

extern char *malloc();
extern char *realloc();

from ./imap/non-ANSI/c-client/os_cvx.h

There are still some warnings which I include below.
pine seems to work. However, when quitting pine I get the message:
Error resetting signals: Interrupted system call

BTW: Is there a need for the 3.90 workaround -string read_write

Yours
------------------------------------------------------------------------------
Martin Spohn                     |
Universitaet Tuebingen           Z                          Tel. 07071 29 6970
Zentrum fuer Datenverarbeitung   D          E-mail: [email-masked]
Abteilung Netze                  V                          Fax: 07071 29 5912
Brunnenstr. 27, 72074 Tuebingen  |
------------------------------------------------------------------------------

make args are "CC=cc"

Making c-client library, mtest and imapd
make build SYSTYPE=non-ANSI OS=cvx
echo cvx > OSTYPE
rm -rf systype
ln -s non-ANSI systype
cd non-ANSI/c-client; make cvx
make mtest OS=cvx EXTRADRIVERS=""  STDPROTO=bezerkproto  CFLAGS="-O -ext -Dconst= "
./drivers  imap nntp pop3 mh mtx tenex mmdf bezerk news phile dummy
rm -f OSTYPE CFLAGS LDFLAGS osdep.h
echo cvx > OSTYPE
echo -O -ext -Dconst=  > CFLAGS
echo   > LDFLAGS
ln -s os_cvx.h osdep.h
cc -O -ext -Dconst=  -c mail.c
cc -O -ext -Dconst=  -c bezerk.c
cc -O -ext -Dconst=  -c mtx.c
cc -O -ext -Dconst=  -c tenex2.c
cc -O -ext -Dconst=  -c mbox.c
cc -O -ext -Dconst=  -c mh.c
cc -O -ext -Dconst=  -c mmdf.c
cc -O -ext -Dconst=  -c imap2.c
cc -O -ext -Dconst=  -c pop3.c
cc -O -ext -Dconst=  -c news.c
cc -O -ext -Dconst=  -c nntpcunx.c
cc -O -ext -Dconst=  -c phile.c
cc -O -ext -Dconst=  -c dummy.c
cc -O -ext -Dconst=  -c smtp.c
cc -O -ext -Dconst=  -c nntp.c
cc -O -ext -Dconst=  -c rfc822.c
cc -O -ext -Dconst=  -c misc.c
cc -O -ext -Dconst=  -DSTDPROTO=bezerkproto  -DRSH=\"rsh\" -DRSHPATH=\"/usr/ucb/rsh\"   -c os_cvx.c
cc: Warning on line 44 of ./fs_unix.c: illegal pointer/integer combination.
cc: Warning on line 59 of ./fs_unix.c: illegal pointer/integer combination.
cc: Warning on line 239 of ./env_unix.c: illegal pointer/integer combination.
mv os_cvx.o osdep.o
cc -O -ext -Dconst=  -c sm_unix.c
cc -O -ext -Dconst=  -c newsrc.c
cc: Warning on line 346 of newsrc.c: function newsrc_write has return(e); and return;
rm -f c-client.a
ar rc c-client.a mail.o bezerk.o mtx.o tenex2.o mbox.o mh.o mmdf.o imap2.o pop3.o  news.o nntpcunx.o phile.o dummy.o smtp.o nntp.o rfc822.o misc.o  osdep.o sm_unix.o newsrc.o
ranlib c-client.a
cc -O -ext -Dconst=  -c mtest.c
cc -O -ext -Dconst=  -o mtest mtest.o c-client.a 
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
cc -I../c-client `cat ../c-client/CFLAGS` -c ipop2d.c
cc -I../c-client `cat ../c-client/CFLAGS` -o ipop2d ipop2d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
cc -I../c-client `cat ../c-client/CFLAGS` -c ipop3d.c
cc: Warning on line 341 of ipop3d.c: function blat has return(e); and return;
cc -I../c-client `cat ../c-client/CFLAGS` -o ipop3d ipop3d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`
cd non-ANSI/imapd;make
cc -I../c-client `cat ../c-client/CFLAGS` -c imapd.c
cc -I../c-client `cat ../c-client/CFLAGS` -o imapd imapd.o ../c-client/c-client.a `cat ../c-client/LDFLAGS`

Making Pico
rm -f osdep.c
cp os_unix.c osdep.c
rm -f osdep.h
cp os_unix.h osdep.h
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb attach.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb ansi.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb basic.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb bind.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb browse.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb buffer.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb composer.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb display.c
cc: Warning on line 1671 of display.c: actual and formal point to different types
cc: Warning on line 1671 of display.c: actual and formal point to different types
cc: Warning on line 1714 of display.c: actual and formal point to different types
cc: Warning on line 1714 of display.c: actual and formal point to different types
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb file.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb fileio.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb line.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb osdep.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb pico.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb random.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb region.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb search.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb spell.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb tcap.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb window.c
cc -c -Dcvx -DPOSIX -DJOB_CONTROL -cxdb word.c
ar ru libpico.a attach.o ansi.o basic.o bind.o browse.o buffer.o  composer.o display.o file.o fileio.o line.o osdep.o  pico.o random.o region.o search.o spell.o tcap.o window.o word.o
ar: creating libpico.a
ranlib libpico.a
cc -Dcvx -DPOSIX -DJOB_CONTROL -cxdb main.c libpico.a -ltermcap -lc -o pico

Making Pine.
rm -f os.h
ln -s osdep/os-cvx.h os.h
./cmplhlp2.sh  < pine.hlp > helptext.h
cc -DCVX    -DSYSTYPE=\"CVX\" -c addrbook.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c adrbklib.c
cc: Warning on line 4111 of adrbklib.c: actual and formal point to different types
cc: Warning on line 4168 of adrbklib.c: actual and formal point to different types
cc -DCVX    -DSYSTYPE=\"CVX\" -c args.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c context.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c filter.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c folder.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c help.c
./cmplhelp.sh  < pine.hlp > helptext.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c helptext.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c imap.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c init.c
cc: Warning on line 3366 of init.c: actual and formal point to different types
cc -DCVX    -DSYSTYPE=\"CVX\" -c mailcap.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c mailcmd.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c mailindx.c
cc: Warning on line 133 of mailindx.c: a bit field must have type int or unsigned int
cc: Warning on line 134 of mailindx.c: a bit field must have type int or unsigned int
cc: Warning on line 1634 of mailindx.c: actual and formal point to different types
cc: Warning on line 1687 of mailindx.c: actual and formal point to different types
cc: Warning on line 1714 of mailindx.c: actual and formal point to different types
cc -DCVX    -DSYSTYPE=\"CVX\" -c mailpart.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c mailview.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c newmail.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c other.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c pine.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c print.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c reply.c
cc: Warning on line 1517 of reply.c: label 'bomb' defined but not referenced.
cc: Warning on line 1523 of reply.c: code unreachable.
cc: Warning on line 1525 of reply.c: code unreachable.
cc -DCVX    -DSYSTYPE=\"CVX\" -c screen.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c send.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c signals.c
cc: Warning on line 412 of signals.c: operands of = point to incompatible types.
cc: Warning on line 413 of signals.c: operands of = point to incompatible types.
cc: Warning on line 415 of signals.c: operands of = point to incompatible types.
cc: Warning on line 416 of signals.c: operands of = point to incompatible types.
cc -DCVX    -DSYSTYPE=\"CVX\" -c status.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c strings.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c ttyin.c
cc: Warning on line 1675 of ttyin.c: expression statement has no effect
cc -DCVX    -DSYSTYPE=\"CVX\" -c ttyout.c
cd osdep; make includer os-cvx.c; cd ..
cc -o includer includer.c
./includer < os-cvx.ic > os-cvx.c
rm -f os.c
ln -s osdep/os-cvx.c os.c
cc -DCVX    -DSYSTYPE=\"CVX\" -c os.c
cc: Warning on line 1261 of os.c: operands of = point to incompatible types.
cc: Warning on line 1262 of os.c: operands of = point to incompatible types.
cc: Warning on line 1263 of os.c: operands of = point to incompatible types.
cc: Warning on line 1318 of os.c: actual and formal point to different types
cc: Warning on line 1466 of os.c: label 'done' defined but not referenced.
echo "char datestamp[]="\"`date`\"";" > date.c
cc -c -DCVX    -DSYSTYPE=\"CVX\" -o date.o date.c
cc  -DCVX    -DSYSTYPE=\"CVX\" -o pine addrbook.o adrbklib.o args.o context.o filter.o  folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o  mailindx.o mailpart.o mailview.o newmail.o other.o pine.o print.o  reply.o screen.o send.o signals.o stat
us.o strings.o ttyin.o  ttyout.o os.o date.o ../pico/libpico.a ../c-client/c-client.a -ltermlib

Links to executables are in bin directory:
text      data      bss       tdata     tbss      common    dec       hex
1699840   61440     65536     16384     8192      0         1851392   1c4000    bin/pine
585728    20480     24576     16384     8192      0         655360    a0000     bin/mtest
606208    20480     32768     16384     8192      0         684032    a7000     bin/imapd
335872    16384     12288     8192      8192      0         380928    5d000     bin/pico
Done

---

From: Pekka Kytolaakso <[email-masked]>
Date: Wed, 26 Oct 1994 15:57:43 +0200 (EET)

> from ./imap/non-ANSI/c-client/os_cvx.h

These definitions need to be commented in os_cvx.h. I forgot to report it.~
 
> There are still some warnings which I include below.

I get the same warnings.

> BTW: Is there a need for the 3.90 workaround -string read_write

I haven't had time to test 3.91 on Convex.  It looks like the problem in
3.90 but I'm not shure. For some reason I don't get the message whe in run
sunig '-d 9'. I'll try to look in it more closelly tomorrow.

Pekka Kytölaakso
---------------------------------------------------------------
[email-masked] FUNET/CSC Finnish University and Research Network
[email-masked]      PL 405  FIN-02101 Espoo FINLAND
Phone: +358 0 4572246     Telefax: + 358 0 4572302