Subject: Compiling Pine on DG/UX 4.11

From: [email-masked] (Jamie Royer)
Date: 25 Mar 96 16:23:25 PST

I have compiled Pine 3.92 on ("uname -a"):
   dgux themis.ag.gov.bc.ca R4.11 generic AViiON mc88110

To do so, I had to change 4 files.  DG/UX 4.11 has resolved the problem
with "utime".  I have included the "diff" output so "patch" could be
used to apply the changes.

====================================================================
Directory: ..../pine3.92/imap/ANSI/c-client
====================================================================

--------------------------------------------------------------------
diff Makefile.orig Makefile
   - Deleting "-Dconst=" removes the warning messages like:
        /usr/include/string.h:39: warning: conflicting types for
        built-in function `strcpy'
--------------------------------------------------------------------
127c127
<               CFLAGS="-g -Dconst= -DNFSKLUDGE $(EXTRACFLAGS)" RANLIB=true
---
>               CFLAGS="-g -DNFSKLUDGE $(EXTRACFLAGS)" RANLIB=true

--------------------------------------------------------------------
diff os_d-g.c.orig os_d-g.c
   - "crypt" now defined in "unistd.h".
   - "setpgrp" doesn't take parameters, "setpgrp2" does.
   - "utimbuf" now of the form "time_t[2]".
--------------------------------------------------------------------
53c53
< char *crypt (char *key,char *salt);
---
> /* char *crypt (char *key,char *salt); */
54a55
> #define setpgrp setpgrp2
77a79
> /*
81c83
<   times.actime = timep[0];    /* copy the portable values */
---
>   times.actime = timep[0];    /o copy the portable values o/
83c85
<                               /* zap the D-G incompatible values */
---
>                               /o zap the D-G incompatible values o/
85c87
<   return utime (file,&times); /* now call D-G's routine */
---
>   return utime (file,&times); /o now call D-G's routine o/
86a89
> */

--------------------------------------------------------------------
diff os_d-g.h.orig os_d-g.h
   - "utimbuf" now of the form "time_t[2]".
--------------------------------------------------------------------
51,52c51,52
< #define utime portable_utime
< int portable_utime (char *file,time_t timep[2]);
---
> /* #define utime portable_utime */
> /* int portable_utime (char *file,time_t timep[2]); */

====================================================================
Directory: ..../pine3.92/pine
====================================================================

--------------------------------------------------------------------
diff makefile.d-g.orig makefile.d-g
   - Delete "-Dconst=" removes the warning messages like:
        /usr/include/string.h:39: warning: conflicting types for
        built-in function `strcpy'
--------------------------------------------------------------------
61c61
< STDCFLAGS=   -Dconst= -DSV4 -DSYSTYPE=\"D-G\" -DMOUSE
---
> STDCFLAGS=   -DSV4 -DSYSTYPE=\"D-G\" -DMOUSE

----------------------------------------------------------------------
Jamie Royer                         Tel:    (604) 775-2879
Senior Programmer                   Fax:    (604) 775-2880
GAEA Management & Consulting Ltd.   E-Mail: [email-masked]
Burnaby, BC, Canada
----------------------------------------------------------------------
         My opinions may be wrong, but at least they're my own.