[comp.mail.misc] Compiling smail 3.1.19 on SunOS 4.1

pashdown@shotput.es.com@bambam.UUCP (Pete Ashdown) (08/29/90)

I've been able to compile smail under SunOS 4.0.3 with no real problems, but
now that I've updated to 4.1, I get this error:

"spool.c", line 277: F_TLOCK undefined
"spool.c", line 395: F_TLOCK undefined
"spool.c", line 442: F_ULOCK undefined
"spool.c", line 1006: F_TLOCK undefined
*** Error code 1
make: Fatal error: Command failed for target `spool.o'

Does anyone know a fix for this?

() ()             -=Adolescent Deformed Karate Lobsters!=-               "
( " ) - 'Like Linguini, where's my house slippers?'                 /  (  ) 
 ( )                       'I thot I tol you to shaddup, Ricotta!!'   () ()
 /|\  Pete Ashdown pashdown@esunix.es.com ...utah-cs!esunix!pashdown    /|\   

lyndon@cs.athabascau.ca (Lyndon Nerenberg) (08/31/90)

pashdown@shotput.es.com@bambam.UUCP (Pete Ashdown) writes:

>I've been able to compile smail under SunOS 4.0.3 with no real problems, but
>now that I've updated to 4.1, I get this error:
>"spool.c", line 277: F_TLOCK undefined
>"spool.c", line 395: F_TLOCK undefined
>"spool.c", line 442: F_ULOCK undefined
>"spool.c", line 1006: F_TLOCK undefined
>*** Error code 1
>make: Fatal error: Command failed for target `spool.o'
>Does anyone know a fix for this?

Yup. (This is an UNOFFICIAL patch, although it has been submitted to
bugs-smail.)

*** /tmp/,RCSt1a02951	Mon Aug 20 16:58:55 1990
--- src/spool.c	Mon Aug 20 16:57:33 1990
***************
*** 53,59 ****
  # include <fcntl.h>
  #endif
  #ifdef UNIX_BSD
! # include <sys/file.h>
  #endif
  
  #ifdef STANDALONE
--- 53,63 ----
  # include <fcntl.h>
  #endif
  #ifdef UNIX_BSD
! # ifdef UNIX_SUN_OS_4
! #  include <unistd.h>
! # else /* not UNIX_SUN_OS_4 */
! #  include <sys/file.h>
! # endif /* not UNIX_SUN_OS_4 */
  #endif
  
  #ifdef STANDALONE
*** /tmp/,RCSt1a02956	Mon Aug 20 16:59:11 1990
--- src/sysdep.c	Mon Aug 20 16:57:36 1990
***************
*** 61,66 ****
--- 61,69 ----
  
  #ifdef	UNIX_BSD
  # include <sys/time.h>
+ # ifdef UNIX_SUN_OS_4
+ #  include <unistd.h>
+ # endif /* UNIX_SUN_OS_4 */
  # include <sys/file.h>
  #else
  # include <time.h>

-- 
     Lyndon Nerenberg  VE6BBM / Computing Services / Athabasca University
         {alberta,cbmvax,mips}!atha!lyndon || lyndon@cs.athabascau.ca
                           Practice Safe Government
                                 Use Kingdoms