[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#637693: hivex: FTBFS (kfreebsd): error: 'O_CLOEXEC' undeclared (first use in this function)



Hi!

On Sat, 2011-08-13 at 22:10:03 +0200, Hilko Bengen wrote:
> * Christoph Egger:
> > Your package failed to build on the kfreebsd-* buildds:
> > /bin/bash ../libtool --silent --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../lib -I..  -I../../../gnulib/lib -I../../../lib    -g -O2 -c -o libhivex_la-hivex.lo `test -f 'hivex.c' || echo '../../../lib/'`hivex.c
> > ../../../lib/hivex.c: In function 'hivex_open':
> > ../../../lib/hivex.c:296:38: error: 'O_CLOEXEC' undeclared (first use in this function)
> > ../../../lib/hivex.c:296:38: note: each undeclared identifier is reported only once for each function it appears in
> > make[5]: *** [libhivex_la-hivex.lo] Error 1
> 
> Looks like a header file is not included -- or some definition is
> missing. I'd expect O_CLOEXEC to be defined if fcntl.h is included which
> is the case. Is there anything else that needs to be defined or
> included?

glibc for GNU/kFreeBSD is missing O_CLOEXEC, this is actually bug
635192, but in any case assuming unconditional presence of O_CLOEXEC
is non-portable, it was just added to POSIX.1-2008, and previous to
that it was specific to GNU/Linux.

regards,
guillem


Reply to: