My first attempt to build 2.5.2

Geoffrey Lee snail_talk at yahoo.com
Tue May 2 16:54:52 GMT 2000


>
> I'm running a linux system somewhere between redhat 6.1 and 6.2, and am
> configuring with:
>


fcntl locking seems to be broekn for me too, easy fix is to grab the old
.2.5 source and replace fcntl test c program files with the old versions.

there were some changes and now it doesn't work ..



> /configure --prefix=/usr --with-lockdir=/var/lock/samba
> --with-sambaconfdir=/etc --with-privatedir=/etc
> --with-swatdir=/usr/share/swat --localstatedir=/var/log/samba
> --with-automount --with-quotas --with-pam --with-smbmount --with-ldap
>
> and it ends with:
>
> ..
> checking configure summary
> ERROR: No locking available. Running Samba would be unsafe
> configure: error: summary failure. Aborting config
>
> Looking in config.log, I find this:
>
> configure:9785: checking for fcntl locking
> configure:9798: gcc -o conftest -O   conftest.c -lreadline  -ldl
> -lcrypt 1>&5
> /tmp/ccjBUaf2.o: In function `main':
> /tmp/ccjBUaf2.o(.text+0x24): undefined reference to `sys_fork'
> /tmp/ccjBUaf2.o(.text+0x6d): undefined reference to `sys_getpid'
> /tmp/ccjBUaf2.o(.text+0xd8): undefined reference to `sys_getpid'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 9794 "configure"
> #include "confdefs.h"
> #include "./tests/fcntl_lock.c"
> configure:9821: checking for broken (glibc2.1/x86) 64 bit fcntl locking
> configure:9834: gcc -o conftest -O   conftest.c -lreadline  -ldl
> -lcrypt 1>&5
> tests/fcntl_lock64.c: In function `main':
> In file included from configure:9831:
> tests/fcntl_lock64.c:35: storage size of `lock' isn't known
> configure: failed program was:
> #line 9830 "configure"
> #include "confdefs.h"
> #include "./tests/fcntl_lock64.c"
> configure:9859: checking for 64 bit fcntl locking
> configure:9892: gcc -o conftest -O   conftest.c -lreadline  -ldl
> -lcrypt 1>&5
> configure: In function `main':
> configure:9883: storage size of `fl64' isn't known
> configure: failed program was:
> #line 9868 "configure"
> #include "confdefs.h"
>
> #if defined(HAVE_UNISTD_H)
> #include <unistd.h>
> #endif
> #include <stdio.h>
> #include <stdlib.h>
>
> #ifdef HAVE_FCNTL_H
> #include <fcntl.h>
> #endif
>
> #ifdef HAVE_SYS_FCNTL_H
> #include <sys/fcntl.h>
> #endif
> main() { struct flock64 fl64;
> #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
> exit(0);
> #else
> exit(1);
> #endif
> }
>
> --
> Chris Garrigues                 virCIO
> http://www.DeepEddy.Com/~cwg/	http://www.virCIO.Com
> +1 512 432 4046                 +1 512 374 0500
> 				4314 Avenue C
> O-				Austin, TX  78751-3709
>
>
>   My email address is an experiment in SPAM elimination.  For an
>   explanation of what we're doing, see http://www.DeepEddy.Com/tms.html
>
>     Nobody ever got fired for buying Microsoft,
>       but they could get fired for relying on Microsoft.
>
>
>



More information about the samba-ntdom mailing list