[Cook] Compiling under Cygwin?
Aryeh M. Friedman
aryeh at m-net.arbornet.org
Tue Nov 2 05:10:27 EST 2004
[ Charset ISO-8859-1 unsupported, converting... ]
> 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
Make sure the include chain is complete it should have fcntl.h or
ioctl.h somewhere in the include list. It might be hidden as other system
includes bring stuff in. I didn't have this issue when I compiled an older
version of cook under cgywin so it is probally a oversight on peter's behalf
and/or a bug in cgywin's include chain (I found a couple in other OS's so
it is not unheard of).
--Aryeh
More information about the Cook-users
mailing list