'fcntl lock of file' failing, Sol-2.6, Samba-2.0.6

David Collier-Brown davecb at canada.sun.com
Fri Dec 10 13:08:45 GMT 1999

Andrew Rakowski wrote:
| [1999/12/08 12:37:42, 0] lib/pidfile.c:pidfile_create(99)
| ERROR: smbd : fcntl lock of file /opt/local/samba/var/locks/smbd.pid
| failed. Error was No such file or directory
| The problem turns out to be that configure runs tests/fcntl_lock.c
to see
| if fcntl_lock works, and sets HAVE_FCNTL_LOCK based on this test. 
| fcntl_lock.c program opens a file in it's working directory (the
| directory) to test locking.

	Erk! Knowing what kind of filesystem you're going
	to depend upon in the future is a bit difficult.

	The only halfway reasonable suggestion I can make is to have
	configure explicitly check the filesystem or filesystems
	to do it's tests in. We have the data from --prefix,
	--exec-prefix, --program-prefix and friends, but we assume
	reasonable defaults for them if they're not set, and
	we don't know where the data we serve is going to be at all.

	We can address this particular problem by changing the
	tests to use the future location of the lockdir, but
	the general problem is still open.

David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com

More information about the samba-technical mailing list