[Cook] Compiling under Cygwin?
John Darrington
john at cellform.com.au
Sat Oct 30 09:28:28 EST 2004
On Fri, Oct 29, 2004 at 03:01:01PM +0100, Delstrother, Jonathan wrote:
I'm hoping to use Cook in Cygwin for distributed compiles, but I'm having
trouble getting Cook compiled in the first place...
./configure seemed to complete fine, but I'm missing a bunch of file lock
constants. Here's the make output:
gcc -Ic_incl -Icommon -g -O2 -c c_incl/cache.c
c_incl/cache.c: In function `flock_shared':
c_incl/cache.c:294: storage size of `p' isn't known
c_incl/cache.c:297: `F_RDLCK' undeclared (first use in this function)
c_incl/cache.c:297: (Each undeclared identifier is reported only once
c_incl/cache.c:297: for each function it appears in.)
c_incl/cache.c:301: `F_SETLKW' undeclared (first use in this function)
c_incl/cache.c: In function `flock_exclusive':
c_incl/cache.c:321: storage size of `p' isn't known
c_incl/cache.c:324: `F_WRLCK' undeclared (first use in this function)
c_incl/cache.c:328: `F_SETLKW' undeclared (first use in this function)
c_incl/cache.c: In function `flock_release':
c_incl/cache.c:348: storage size of `p' isn't known
c_incl/cache.c:351: `F_UNLCK' undeclared (first use in this function)
c_incl/cache.c:355: `F_SETLKW' undeclared (first use in this function)
make: *** [c_incl/cache.o] Error 1
Any advice would be appreciated. Has anyone got the distributed compiling
working in Cygwin?
Cook under Cygwin works fine for me.
It looks like you need to first install the relevant library which
provides posix locking. I can't tell you which one it would be.
But you said that configure `completes fine'. But did you have a look
at the logs it produces? It probably says something like `Looking for
flock: no'. Maybe configure.ac should be changed to give an error if
it can't find the appropriate libraries.
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://wwwkeys.pgp.net or any PGP keyserver for public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20041030/76de7d12/attachment.pgp>
More information about the Cook-users
mailing list