From: steve@Nyongwa.CAM.ORG (Steve M. Robbins) Subject: Re: Need help in compiling smail-3.1.26 Date: 5 Sep 1992 19:39:21 GMT
In article <1992Sep05.011651.2195@kithrup.COM> dje@cygnus.com (Doug Evans) writes:
>Pieter Immelman (pi@oliver.sun.ac.za) wrote:
>: Does anybody know what must be changed in the source/installation to
>: get smail linking? Our current problem is that the linker is looking
>: for _lockf. We had a prior problem with F_ULOCK, F_LOCK, F_TLOCK which
>: wasn't defined. This was easily fixed ;) by adding it to unistd.h.
>: As we see it, we're either missing a library or _lockf has a different
>: name in Linux.
>
>There are various ways to proceed. What I did was tell smail to use
>fcntl(F_SETLK) which is the Posix way to do file locking.
>Unfortunately, my Linux box is 1000 miles away. :-(
>
>Lockf() isn't Posix, which is why it is currently unimplemented.
Having F_SETLK must be new, because it isn't in my 0.97p1 kernel.
For those of you with older kernels like me, you can set (in conf/os/linux) :
LOCKING_PROTOCOL=
LOCK_BY_NAME=TRUE
And it should work.
>Doug Evans | With views like these ...
>dje@cygnus.com | who needs disclaimers.
--
Steve Robbins -- steve@nyongwa.cam.org
Do not think that I have come to bring peace on earth;
I have not come to bring peace, but a sword.
- Jesus (Matthew 10:34)