The Samba-Bugzilla – Bug 3230
compiling samba 3.0.20 on Windows 2000 and CYGWIN 1.5.18
Last modified: 2005-11-22 09:01:52 UTC
I am trying to compile the samba 3.0.20 on Windows 2000 using CYGWIN 1.5.18
toolkit. I am getting the following error:
checking configure summary... ERROR: No locking available. Running Samba would
I think the samba compilation is broken on cygwin. It may be due to broken 64
bit locking using fcntl().
I am attaching part of message from config.log file. I have entire config.log
file on my system, let me know for more information if required.
| #include "./tests/fcntl_lock.c"
configure:28291: result: no
configure:28301: checking for broken (glibc2.1/x86) 64 bit fcntl locking
configure:28319: gcc -o conftest.exe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_SAMBA_BUILD_ conftest.c -lresolv -liconv >&5
In file included from conftest.c:240:
./tests/fcntl_lock64.c: In function `main':
./tests/fcntl_lock64.c:35: error: storage size of 'lock' isn't known
./tests/fcntl_lock64.c:54: error: `F_GETLK64' undeclared (first use in this
./tests/fcntl_lock64.c:54: error: (Each undeclared identifier is reported only once
./tests/fcntl_lock64.c:54: error: for each function it appears in.)
./tests/fcntl_lock64.c:79: error: `F_SETLK64' undeclared (first use in this
configure:28322: $? = 1
configure: program exited with status 1
configure: failed program was:
Created attachment 1558 [details]
Looks like cygwin only partiully implements the large file extensions to POSIX.
They need to fix this, not us I think - these tests work on all other POSIX
large file systems.
cygwin issue. Closing.