[Cook] Compiling under Cygwin?
Scott Finneran
scottf at pacom.com
Tue Nov 2 09:18:51 EST 2004
I just compiled cook under the latest cygwin and had no hassles. About
the only thing non-standard about my install is that I chose the 3.4.x
version of gcc, g++ and gcc-core packages.
There were name-mangling bugs in the 3.2 & 3.3 for cygwin that prevented
me from compiling Peter's srecord (http://srecord.sourceforge.net)
tools. The bugs are fixed in 3.4. I realise that your issue isn't
name-mangling but it would explain why some people were able to compile
with old versions of cygwin (and I can get it compiled with the latest).
Cheers,
Scott
Aryeh M. Friedman wrote:
> [ 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
> _______________________________________________
> Cook-users mailing list
> Cook-users at auug.org.au
> http://www.auug.org.au/mailman/listinfo/cook-users
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg
More information about the Cook-users
mailing list