Comment 4 for bug 980114

Revision history for this message
Brian Aker (brianaker) wrote : Re: [Bug 980114] O_CLOEXEC was not declared in this scope

What distribution/version?

Can you see if this works:

#ifndef O_CLOEXEC
#define O_CLOEXEC
#endif

Place after all include files have been included.

Thanks!

On Apr 13, 2012, at 5:14 AM, Oleg wrote:

> I've just got the same issue (it's the first time a see such error - we have gearman 0.26 installed currently).
> Compilation string is:
> CXX=/usr/bin/g++44 CC=/usr/bin/gcc44 ./configure --prefix=/usr --with-boost=/usr/include/ --with-drizzled libdrizzle_CFLAGS="-I/opt/src/drizzle7-2011.11.29/libdrizzle-2.0" libdrizzle_LIBS="-ldrizzle-2.0" --disable-libmemcached --disable-libpq --disable-libtokyocabinet
>
> then i execute make and get the following:
> make all-am
> make[1]: Entering directory `/opt/src/gearmand-0.32'
> CXX libgearman/libgearman_libgearman_la-actions.lo
> CXX libgearman/libgearman_libgearman_la-aggregator.lo
> CXX libgearman/libgearman_libgearman_la-allocator.lo
> ....
> CXX bin/gearman.o
> CXX bin/error.o
> CXX util/pidfile.o
> util/pidfile.cc: In member function ‘bool datadifferential::util::Pidfile::create()’:
> util/pidfile.cc:122: error: ‘
> O_CLOEXEC’ was not declared in this scope
> make[1]: *** [util/pidfile.o] Error 1
> make[1]: Leaving directory `/opt/src/gearmand-0.32'
> make: *** [all] Error 2
>
> Server is : Linux 2.6.18-274.18.1.el5xen #1 SMP Thu Feb 9 13:27:02 EST
> 2012 x86_64 x86_64 x86_64 GNU/Linux
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/980114
>
> Title:
> O_CLOEXEC was not declared in this scope
>
> Status in Gearman Server and Client Libraries:
> Incomplete
>
> Bug description:
> Here is the error output of 'make' on Mac OS X 10.6.8 while trying to
> compile gearmand 0.32:
>
> CXX util/pidfile.o
> util/pidfile.cc: In member function ‘bool datadifferential::util::Pidfile::create()’:
> util/pidfile.cc:122: error: ‘O_CLOEXEC’ was not declared in this scope
> make[1]: *** [util/pidfile.o] Error 1
> make: *** [all] Error 2
>
> Here are the configuration options and summary:
>
> ./configure --prefix=/usr/local --with-lib-prefix=/opt/local --with-
> boost=/opt/local
>
> --------------------------------------------------------------
> Configuration summary for gearmand version 0.32
>
> * Installation prefix: /usr/local
> * System type: apple-darwin10.8.0
> * Host CPU: x86_64
> * C Compiler: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
> * Assertions enabled: yes
> * Debug enabled: no
> * Warnings as failure:
> * Building with libsqlite3 yes
> * Building with libdrizzle no
> * Building with libmemcached no
> * Building with libpq no
> * Building with tokyocabinet no
> * Building with libmysql yes
>
> --------------------------------------------------------------
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gearmand/+bug/980114/+subscriptions