🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #1652

Re: Compiling smail 3.1.19 on SunOS 4.1

#1652
From: Lyndon Nerenberg
Date: Thu, 30 Aug 1990 18:36
58 lines
2073 bytes
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
Technical Details
Message-ID: <233@aupair.cs.athabascau.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!mit-eddie!uw-beaver!ubc-cs!alberta!atha!aupair.cs.athabascau.ca!lyndon
References: <2062@bambam.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!mit-eddie!uw-beaver!ubc-cs!alberta!atha!aupair.cs.athabascau.ca!lyndon
From: lyndon@cs.athabascau.ca (Lyndon Nerenberg)
Newsgroups: comp.mail.misc
Subject: Re: Compiling smail 3.1.19 on SunOS 4.1
Message-ID: <233@aupair.cs.athabascau.ca>
Date: 30 Aug 90 18:36:09 GMT
References: <2062@bambam.UUCP>
Distribution: comp
Organization: Athabasca University
Lines: 58