Fail to compile Gearman 1.1.5 on Ubuntu 12.10 (drizzle)

Bug #1144632 reported by Goran Miskovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
Fix Released
Medium
Brian Aker

Bug Description

I am getting following error:
tests/drizzle_test.cc:61:72: error: too many arguments to function ‘bool libtest::server_startup(libtest::server_startup_st&, const string&, in_port_t, const char**)’
In file included from ./libtest/test.hpp:79:0,
                 from tests/drizzle_test.cc:10:
./libtest/server_container.h:149:6: note: declared here
make[1]: *** [tests/tests_drizzle_test-drizzle_test.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/schkovich/opt/gearmand-1.1.5'
make: *** [all] Error 2

Configure command: ./configure --disable-libdrizzle --enable-assert --enable-debug --with-gnu-ld
---
Configuration summary for gearmand version 1.1.5

   * Installation prefix: /usr/local
   * System type: unknown-linux-gnu
   * Host CPU: x86_64
   * C Compiler: gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
   * C Flags: -ggdb -g -O0 -Wno-pragmas -Wall -Wextra -Wunknown-pragmas -std=c99 --param=ssp-buffer-size=1 -Wno-attributes -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wlogical-op -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -floop-parallelize-all -fwrapv -pipe
   * C++ Compiler: g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
   * C++ Flags: -ggdb -g -O0 -Wno-pragmas -Wall -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Wno-attributes -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wlogical-op -Wnon-virtual-dtor -Wnormalized=id -Woverloaded-virtual -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wc++11-compat -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -Wformat-security -floop-parallelize-all -fwrapv -pipe
   * CPP Flags: -fvisibility=hidden
   * LIBS:
   * LDFLAGS Flags: -lmcheck
   * Assertions enabled: yes
   * Debug enabled: yes
   * Warnings as failure: no
   * Building with libsqlite3 yes
   * Building with libdrizzle no
   * Building with libmemcached yes
   * Building with libpq no
   * Building with tokyocabinet no
   * Building with libmysql yes
   * make -j: 5
   * VCS checkout: no

---

Note that I am compiling without drizzle support but I have drizzle installed.

Changing tests/drizzle_test.cc:61
if (server_startup(test->_servers, "drizzled", drizzled_port, 0, NULL) == false)
to
if (server_startup(test->_servers, "drizzled", drizzled_port, NULL) == false)
resolved the problem but to be honest I have no idea if perhaps saying
if (server_startup(test->_servers, "drizzled", drizzled_port, 0) == false)
would be better e.g. I don't know if the fourth parameter should be 0 or NULL.

Tags: drizzle test
Brian Aker (brianaker)
Changed in gearmand:
assignee: nobody → Brian Aker (brianaker)
importance: Undecided → Medium
status: New → In Progress
milestone: none → 1.0.4
Brian Aker (brianaker)
Changed in gearmand:
status: In Progress → 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.