Subject: Re: your mail

From: [email-masked] (Ala Khamis)
Date: Thu, 2 Mar 1995 11:43:17 GMT

March 2, 1995

To whom it may concern,

My name is Al Khamis, I am the System Administrator at Galtronics LTD.
in Israel. 
I got throw uucp a tar file called: pine3.91_heb2.03.  At my
company we have Data General Unix System 5.4R2.10 that works in the 
Aviion 5500 server.  I tried compiling the source code for pine along 
with pico, mtest and imapd packages that came with the tar file.  Well as 
you see below only pico worked, but the rest did not, but I did not succeed.  
Pine is an excelant E-mail program, and we at Galtronics would love to 
use it, so if anybody can help us to figure out why is it not compiling, we 
will be very thankfull.  

here is the script I made while compiling:

Script started on Tue Feb 28 09:08:54 1995
Aviion Bourne Shell > [?1h=./bi  uild d-g[?1l>
make args are "CC=cc"

UX:ln: ERROR: Cannot create c-client: File exists
UX:ln: ERROR: Cannot create imapd: File exists
Making c-client library, mtest and imapd
	make build SYSTYPE=ANSI OS=d-g
	echo d-g > OSTYPE
	rm -rf systype
	ln -s ANSI systype
	cd ANSI/c-client; make d-g
	make mtest OS=d-g EXTRADRIVERS="" \
		STDPROTO=bezerkproto \
		RSH=restsh RSHPATH=/usr/bin/restsh \
		CFLAGS="-g -Dconst= " RANLIB=true
	./drivers  imap nntp pop3 mh mtx tenex mmdf bezerk news phile dummy
	rm -f OSTYPE CFLAGS LDFLAGS osdep.h
	echo d-g > OSTYPE
	echo -g -Dconst=  > CFLAGS
	echo   > LDFLAGS
	ln -s os_d-g.h osdep.h
	cc -g -Dconst=  -c mail.c
	cc -g -Dconst=  -c bezerk.c
	cc -g -Dconst=  -c mtx.c
	cc -g -Dconst=  -c tenex2.c
	cc -g -Dconst=  -c mbox.c
	cc -g -Dconst=  -c mh.c
	cc -g -Dconst=  -c mmdf.c
	cc -g -Dconst=  -c imap2.c
	cc -g -Dconst=  -c pop3.c
	cc -g -Dconst=  -c news.c
	cc -g -Dconst=  -c nntpcunx.c
	cc -g -Dconst=  -c phile.c
	cc -g -Dconst=  -c dummy.c
	cc -g -Dconst=  -c smtp.c
	cc -g -Dconst=  -c nntp.c
	cc -g -Dconst=  -c rfc822.c
	cc -g -Dconst=  -c misc.c
	cc -g -Dconst=  -DSTDPROTO=bezerkproto \
	-DRSH=\"restsh\" -DRSHPATH=\"/usr/bin/restsh\" \
	 -c os_d-g.c
tcp_unix.c: In function `tcp_open':
In file included from os_d-g.c:58:
tcp_unix.c:114: incompatible types in assignment
os_d-g.c: In function `portable_utime':
os_d-g.c:78: storage size of `times' isn't known
Fatal error in /usr/lib/gcc/cc1
Exit status 041
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

Making Pico
	rm -f osdep.c
	cp os_unix.c osdep.c
	rm -f osdep.h
	cp os_unix.h osdep.h
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O attach.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O ansi.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O basic.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O bind.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O browse.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O buffer.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O composer.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O display.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O file.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O fileio.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O line.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O osdep.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O pico.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O random.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O region.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O search.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O spell.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O tinfo.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O window.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O word.c
	cc -c -Dsv4 -DPOSIX -DJOB_CONTROL -O htext.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 tinfo.o  window.o word.o htext.o
ar: creating libpico.a
	true libpico.a
	cc -Dsv4 -DPOSIX -DJOB_CONTROL main.c mtext.c libpico.a -lnsl_s -lgen -lcurses  -o pico
main.c:
mtext.c:

Making Pine.
	rm -f os.h
	ln -s osdep/os-sv4.h os.h
	./cmplhlp2.sh  < pine.hlp > helptext.h
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c addrbook.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c adrbklib.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c args.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c context.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c filter.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c folder.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c help.c
	./cmplhelp.sh  < pine.hlp > helptext.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c helptext.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c imap.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c init.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c mailcap.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c mailcmd.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c mailindx.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c mailpart.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c mailview.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c newmail.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c other.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c pine.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c print.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c reply.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c screen.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c send.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c signals.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c status.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c strings.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c ttyin.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c ttyout.c
	cd osdep; make includer os-sv4.c; cd ..
	cc -o includer includer.c
	./includer < os-sv4.ic > os-sv4.c
	rm -f os.c
	ln -s osdep/os-sv4.c os.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c os.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c mtext.c
	cc -DSV4   -g -DDEBUG -DSYSTYPE=\"D-G\" -c htext.c
Make:  Don't know how to make ../c-client/c-client.a.  Stop.

Links to executables are in bin directory:
bin/pine: cannot open

size: bin/pine: cannot open
size: bin/mtest: cannot open
size: bin/imapd: cannot open
bin/pico: 126768 + 49436 + 6244 = 182448
Done
Aviion Bourne Shell > [?1h=exit[?1l>

script done on Tue Feb 28 09:25:15 1995

here is a copy of our "utime.h" whic is in our /usr/include directory:

	/**********************************************************
	* Copyright (C) Data General Corporation, 1984 - 1992	  *
	* All Rights Reserved.					  *
	* Licensed Material-Property of Data General Corporation. *
	* This software is made available solely pursuant to the  *
	* terms of a DGC license agreement which governs its use. *
	**********************************************************/

/*  <@(#) utime.h,v	5.1.1.2>  */

/*	Copyright (c) 1988 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

/*	#ident	"@(#)head:utime.h	1.3"			*/

#ifndef _UTIME_H	/* Prevent multiple inclusions of this file */
#define _UTIME_H

#ifndef ___int_features_h
#include <sys/_int_features.h>
#endif

#ifdef _TARGETTING_M88KBCS_OR_M88KOCS_OR_DGUX

#ifdef _USING_POSIX_OR_XPG3_OR_SYSV4_OR_DGUX

#ifndef ___int_utime_h
#include <sys/_int_utime.h>
#endif

_EXTERN int	utime	_PROTO_ARGS((const char *, const struct utimbuf *));

#endif	/* #ifdef _USING_POSIX_OR_XPG3_OR_SYSV4_OR_DGUX */

#endif	/* #ifdef _TARGETTING_M88KBCS_OR_M88KOCS_OR_DGUX */

#endif	/* #ifndef _UTIME_H */

				Sincerly yours
				A. Khamis
				Galtronics LTD.
				[email-masked]
                                [email-masked]

---

From: "J. Lynn Hilton" <[email-masked]>
Date: Thu, 2 Mar 1995 14:48:31 -0500 (EST)

> use it, so if anybody can help us to figure out why is it not compiling, we 

I just finished compiling Pine 3.91 on our AV5225+ running DG/UX 5.4R3.00, 
and had the very same problem. I resolved it by adding two lines into the 
file pine3.91/imap/ANSI/c-client/os_d-g.h as follows:

#define MAILFILE "/var/mail/%s"
#define ACTIVEFILE "/var/news/active"
#define NEWSSPOOL "/var/spool/news"
#define NFSKLUDGE

#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/dir.h>
#include <time.h>		/* for struct tm */
#include <sys/uio.h>		/* needed for writev() prototypes */
#include <syslog.h>
#include <utime.h>        /* FIRST INSERTED LINE */

#define flock dg_flock

#undef utime              /* SECOND INSERTED LINE */
#define utime portable_utime
int portable_utime (char *file,time_t timep[2]);

#include "env_unix.h"
#include "fs.h"
#include "ftl.h"
#include "nl.h"
#include "tcp.h"

I then executed ./build clean followed by ./build d-g.  Please let me 
know if this does not fix the problem in 5.4R2.01.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
& J. Lynn Hilton                     |  Internet: [email-masked] &
& Concept Automation Services, Inc.  |        or: [email-masked] &
& AOUSC, One Columbus Circle, N.E.   |  Voice: 202-273-2413           &
& Washington, DC  20544              |  FAX:   202-273-2356           &
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&