on centos5 compilation of gearmand 0.32 fails

Bug #996527 reported by Thomas Loescher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
Fix Released
Medium
Brian Aker

Bug Description

Hello,

i'm trying to compilate geamand 0.32 on centos 5 64 Bit. I get the following error:

  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]: Leaving directory `/srv/nfsmounts/rpmbuild/x86_64.el5/BUILD/gearmand-0.32'
make[1]: *** [util/pidfile.o] Error 1
make: *** [all] Error 2

compilation on Version 0.29 worked fine with following settings but failed with 0.32:

LDFLAGS="-L/usr/lib64/boost141"; export LDFLAGS;
CPPFLAGS="-I/usr/include/boost141"; export CPPFLAGS;
export CC='gcc44'
export CXX='g++44'

%configure --disable-libpq --disable-libtokyocabinet --disable-libdrizzle --disable-libmemcached --without-postgresql

Do you need more information?

thank you very much and best regards

Thomas

Revision history for this message
Brian Aker (brianaker) wrote : Re: [Bug 996527] [NEW] on centos5 compilation of gearmand 0.32 fails

Please try to compile with trunk.

On May 8, 2012, at 6:20, Thomas Loescher <email address hidden> wrote:

> Public bug reported:
>
> Hello,
>
> i'm trying to compilate geamand 0.32 on centos 5 64 Bit. I get the
> following error:
>
> 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]: Leaving directory `/srv/nfsmounts/rpmbuild/x86_64.el5/BUILD/gearmand-0.32'
> make[1]: *** [util/pidfile.o] Error 1
> make: *** [all] Error 2
>
>
> compilation on Version 0.29 worked fine with following settings but failed with 0.32:
>
> LDFLAGS="-L/usr/lib64/boost141"; export LDFLAGS;
> CPPFLAGS="-I/usr/include/boost141"; export CPPFLAGS;
> export CC='gcc44'
> export CXX='g++44'
>
> %configure --disable-libpq --disable-libtokyocabinet --disable-
> libdrizzle --disable-libmemcached --without-postgresql
>
>
> Do you need more information?
>
> thank you very much and best regards
>
> Thomas
>
> ** Affects: gearmand
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> Gearman.
> https://bugs.launchpad.net/bugs/996527
>
> Title:
> on centos5 compilation of gearmand 0.32 fails
>
> Status in Gearman Server and Client Libraries:
> New
>
> Bug description:
> Hello,
>
> i'm trying to compilate geamand 0.32 on centos 5 64 Bit. I get the
> following error:
>
> 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]: Leaving directory `/srv/nfsmounts/rpmbuild/x86_64.el5/BUILD/gearmand-0.32'
> make[1]: *** [util/pidfile.o] Error 1
> make: *** [all] Error 2
>
>
> compilation on Version 0.29 worked fine with following settings but failed with 0.32:
>
> LDFLAGS="-L/usr/lib64/boost141"; export LDFLAGS;
> CPPFLAGS="-I/usr/include/boost141"; export CPPFLAGS;
> export CC='gcc44'
> export CXX='g++44'
>
> %configure --disable-libpq --disable-libtokyocabinet --disable-
> libdrizzle --disable-libmemcached --without-postgresql
>
>
> Do you need more information?
>
> thank you very much and best regards
>
> Thomas
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gearmand/+bug/996527/+subscriptions

Revision history for this message
Thomas Loescher (u9okyh) wrote :

Hello,

thanks for your answer. I found a solution for this specific case.
I created a Patch from the most recent version of util/pidfile.cc to port the changes back to version 0.32 (see attachement)
Now it compiles and works fine.
At least I'd like to know what is the benefit of this O_CLOEXEC stuff? why it's not available on centos 5 (system to old?)
It seems that some other guys ran into the same problem (Bug #980114 )

from my side, bug can be closed

best regards and thank you for gearmand

Thomas

Brian Aker (brianaker)
Changed in gearmand:
assignee: nobody → Brian Aker (brianaker)
milestone: none → 0.34
importance: Undecided → Medium
status: New → Fix Committed
Brian Aker (brianaker)
Changed in gearmand:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.