Configuration summary for gearmand version 0.28
* Installation prefix: /usr
* System type: unknown-linux-gnu
* Host CPU: x86_64
* C Compiler: gcc (GCC) 4.7.0 20120208 (Red Hat 4.7.0-0.12)
* Assertions enabled: yes
* Debug enabled: no
* Warnings as failure:
* Building with libsqlite3 no
* Building with libdrizzle no
* Building with libmemcached yes
* Building with libpq no
* Building with tokyocabinet no
---
+ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+ make
make all-am
....
g++ -DHAVE_CONFIG_H -I. -I. -g -pipe -O2 -pedantic -Wall -Wundef -Wshadow -fdiagnostics-show-option -floop-parallelize-all -Wstrict-aliasing -Wswitch-enum -Wextra -Wformat -Wno-format-nonliteral -Wno-format-security -Woverloaded-virtual -Wnon-virtual-dtor -Wctor-dtor-privacy -Wno-long-long -Wmissing-declarations -Wframe-larger-than=32768 -Wredundant-decls -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c -o util/pidfile.o util/pidfile.cc
util/pidfile.cc: In function 'void remove_pidfile()':
util/pidfile.cc:60:26: error: 'unlink' was not declared in this scope
util/pidfile.cc: In destructor 'datadifferential::util::Pidfile::~Pidfile()':
util/pidfile.cc:85:36: error: 'access' was not declared in this scope
util/pidfile.cc:91:38: error: 'unlink' was not declared in this scope
util/pidfile.cc: In member function 'bool datadifferential::util::Pidfile::create()':
util/pidfile.cc:108:34: error: 'access' was not declared in this scope
util/pidfile.cc:110:33: error: 'unlink' was not declared in this scope
util/pidfile.cc:131:57: error: 'getpid' was not declared in this scope
util/pidfile.cc:133:33: error: 'write' was not declared in this scope
util/pidfile.cc:138:15: error: 'close' was not declared in this scope
util/pidfile.cc:143:17: error: 'close' was not declared in this scope
make[1]: *** [util/pidfile.o] Error 1
The following patch resolves these issues:
Resolves https:/ /bugs.launchpad .net/gearmand/ +bug/932994 0.28/util/ pidfile. cc.orig 2011-08-17 10:38:30.000000000 -0500 0.28/util/ pidfile. cc 2012-03-07 11:28:22.626664434 -0600
--- gearmand-
+++ gearmand-
@@ -48,6 +48,7 @@
#include <sstream>
#include <sys/stat.h>
#include <sys/types.h>
+#include <unistd.h>
extern "C" {
--- gearmand- 0.28/util/ logfile. cc.orig 2011-08-17 10:38:30.000000000 -0500 0.28/util/ logfile. cc 2012-03-07 11:48:21.600108725 -0600
+++ gearmand-
@@ -49,6 +49,7 @@
#include <sstream>
#include <sys/stat.h>
#include <sys/types.h>
+#include <unistd.h>
namespace datadifferential {
namespace util {