Bug 3230 - compiling samba 3.0.20 on Windows 2000 and CYGWIN 1.5.18
Summary: compiling samba 3.0.20 on Windows 2000 and CYGWIN 1.5.18
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.9
Hardware: x86 Windows 2000
: P3 major
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-01 11:14 UTC by SAM SHARMA
Modified: 2005-11-22 09:01 UTC (History)
0 users

See Also:


Attachments
zipped config.log (61.39 KB, text/plain)
2005-11-01 11:17 UTC, SAM SHARMA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description SAM SHARMA 2005-11-01 11:14:30 UTC
Hi

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
be unsafe

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
function)
./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
function)
configure:28322: $? = 1
configure: program exited with status 1
configure: failed program was:
Comment 1 SAM SHARMA 2005-11-01 11:17:30 UTC
Created attachment 1558 [details]
zipped config.log
Comment 2 Jeremy Allison 2005-11-01 11:59:14 UTC
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.
Jeremy.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-11-22 09:01:52 UTC
cygwin issue.  Closing.