Comment 5 for bug 980114

Revision history for this message
Oleg (ok-k) wrote :

Hi Brian!
Here's the release info:
[root@demo gearmand-0.32]# cat /etc/redhat-release
CentOS release 5.7 (Final)

I've tried to include
#ifndef O_CLOEXEC
#define O_CLOEXEC
#endif

into util/pidfile.cc
after all #include

Here's the result of make:
.....
  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:126: error: expected primary-expression before ‘,’ token
make[1]: *** [util/pidfile.o] Error 1
make[1]: Leaving directory `/opt/src/gearmand-0.32'
make: *** [all] Error 2

Also seen some weird strings during make (not sure if it's related to this case):
....
  CXX libgearman/libgearman_libgearman_la-worker.lo
  CXXLD libgearman/libgearman.la
/usr/bin/ld: skipping incompatible /usr/lib/libuuid.so when searching for -luuid
/usr/bin/ld: skipping incompatible /usr/lib/libuuid.a when searching for -luuid
  CXX libtest/libtest_libtest_la-binaries.lo
  CXX libtest/libtest_libtest_la-cmdline.lo
.....