David Shapiro
2002-Oct-28 20:00 UTC
[Samba] solaris 7 and cvs samba 3.x build - No locking available. Running Samba would be unsafe solaris
Hello, Getting during configure the infamous error: No locking available. Running Samba would be unsafe solaris I went into tests folder and tried summary.c. It fails with the above error. I tried to make the fcntl_lock manually like it tries and got the following: root@raven:/usr/local/samba/source/tests #gcc -m32 -o fcntl_lock fcntl_lock.c fcntl_lock.c: In function `main': fcntl_lock.c:43: storage size of `lock' isn't known fcntl_lock.c:55: `O_RDONLY' undeclared (first use in this function) fcntl_lock.c:55: (Each undeclared identifier is reported only once fcntl_lock.c:55: for each function it appears in.) fcntl_lock.c:63: `F_WRLCK' undeclared (first use in this function) fcntl_lock.c:72: `F_GETLK' undeclared (first use in this function) fcntl_lock.c:75: `F_UNLCK' undeclared (first use in this function) fcntl_lock.c:84: `O_RDWR' undeclared (first use in this function) fcntl_lock.c:84: `O_CREAT' undeclared (first use in this function) fcntl_lock.c:84: `O_EXCL' undeclared (first use in this function) fcntl_lock.c:99: `F_SETLK' undeclared (first use in this function) Any thoughts on how to fix this? I tried --with-spinlocks, but configure fails anyway trying to do the fcntl locking.
Matthew Hannigan
2002-Oct-28 23:02 UTC
[Samba] solaris 7 and cvs samba 3.x build - No locking available. Running Samba would be unsafe solaris
On Mon, Oct 28, 2002 at 02:55:05PM -0500, David Shapiro wrote:> Hello, > > Getting during configure the infamous error: No locking available. Running > Samba would be unsafe solarisDunno why you would get this, solaris works fine of course. Maybe something screwy with your gcc installation?> [problems compiling fcntl_lock]Find the lines #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif and remove the #ifdef and #endif lines. Matt