Falling to compile Gearman 0.28 on Ubuntu with libdrizzle

Bug #944277 reported by Francisco Baptista on 2012-03-01
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Gearman
Medium
Brian Aker

Bug Description

Hi,

Having major problems installing Gearman 0.28 with libDrizzle support.

Server:

Operating system Ubuntu 11.10
CPU Cores 1 core
RAM (Memory) 1GB
HDD (Disk Space) 50GB

Below my steps:

 $wget https://launchpad.net/gearmand/trunk/0.28/+download/gearmand-0.28.tar.gz

$tar zfx gearmand-0.28.tar.gz

$cd gearmand-0.28/

$./configure

---
Configuration summary for gearmand version 0.28

   * Installation prefix: /usr/local
   * System type: unknown-linux-gnu
   * Host CPU: x86_64
   * C Compiler: gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
   * Assertions enabled: yes
   * Debug enabled: no
   * Warnings as failure:
   * Building with libsqlite3 no
   * Building with libdrizzle yes
   * Building with libmemcached no
   * Building with libpq yes
   * Building with tokyocabinet yes

Then:

$make

CXX libgearman-server/plugins/queue/drizzle/libgearman_server_libgearman_server_la-queue.lo
libgearman-server/plugins/queue/drizzle/queue.cc: In function 'gearmand_error_t gearman_server_queue_libdrizzle_init(gearmand::plugins::queue::Drizzle*, gearman_server_st*)':
libgearman-server/plugins/queue/drizzle/queue.cc:417:66: error: 'drizzle_column_skip_all' was not declared in this scope
libgearman-server/plugins/queue/drizzle/queue.cc: In function 'gearmand_error_t _libdrizzle_add(gearman_server_st*, void*, const char*, size_t, const char*, size_t, const void*, size_t, gearmand_job_priority_t, int64_t)':
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 10 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 12 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 10 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 12 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 9 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 11 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 9 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:509:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 11 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc: In function 'gearmand_error_t _libdrizzle_done(gearman_server_st*, void*, const char*, size_t, const char*, size_t)':
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 8 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 10 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 8 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
libgearman-server/plugins/queue/drizzle/queue.cc:568:27: warning: field precision specifier '.*' expects argument of type 'int', but argument 10 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
make[1]: *** [libgearman-server/plugins/queue/drizzle/libgearman_server_libgearman_server_la-queue.lo] Error 1
make[1]: Leaving directory `/root/gearmand-0.28'
make: *** [all] Error 2

Brian Aker (brianaker) wrote :

You need to use the version of libdrizzle via lp:libdrizzle (i.e. trunk)

Changed in gearmand:
assignee: nobody → Brian Aker (brianaker)
importance: Undecided → Medium
status: New → In Progress
milestone: none → 0.29
Dossy Shiobara (dossy) wrote :

Gearman 0.29 still depends on newer libdrizzle than ships with Ubuntu Oneiric. :-(

Dossy Shiobara (dossy) wrote :

Also: lp:libdrizzle now directs folks to lp:drizzle --

"This is the the client and protocol library for the Drizzle project. Please note that this is now maintained as part of the main drizzle project instead of here. Please go to http://launchpad.net/drizzle for the latest version."

So, should the trunk of lp:libdrizzle satisfy the build for Gearman 0.29, or must we use lp:drizzle trunk and build libdrizzle out of it?

Brian Aker (brianaker) on 2012-04-08
summary: - Falling to compile Gearman 0.28 on Ubuntu
+ Falling to compile Gearman 0.28 on Ubuntu with libdrizzle
Dieter Provoost (j-dieter) wrote :

Also failing with "error: 'drizzle_column_skip_all' was not declared in this scope" when compiling 0.32.

Download full text (8.0 KiB)

Pull the code from the latest lp:drizzle

Sent from my Ti85

On Apr 25, 2012, at 13:10, Dieter Provoost <email address hidden> wrote:

> Also failing with "error: 'drizzle_column_skip_all' was not declared in
> this scope" when compiling 0.32.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/944277
>
> Title:
> Falling to compile Gearman 0.28 on Ubuntu with libdrizzle
>
> Status in Gearman Server and Client Libraries:
> In Progress
>
> Bug description:
> Hi,
>
> Having major problems installing Gearman 0.28 with libDrizzle support.
>
> Server:
>
> Operating system Ubuntu 11.10
> CPU Cores 1 core
> RAM (Memory) 1GB
> HDD (Disk Space) 50GB
>
> Below my steps:
>
> $wget
> https://launchpad.net/gearmand/trunk/0.28/+download/gearmand-0.28.tar.gz
>
> $tar zfx gearmand-0.28.tar.gz
>
> $cd gearmand-0.28/
>
> $./configure
>
> ---
> Configuration summary for gearmand version 0.28
>
> * Installation prefix: /usr/local
> * System type: unknown-linux-gnu
> * Host CPU: x86_64
> * C Compiler: gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
> * Assertions enabled: yes
> * Debug enabled: no
> * Warnings as failure:
> * Building with libsqlite3 no
> * Building with libdrizzle yes
> * Building with libmemcached no
> * Building with libpq yes
> * Building with tokyocabinet yes
>
> Then:
>
> $make
>
> CXX libgearman-server/plugins/queue/drizzle/libgearman_server_libgearman_server_la-queue.lo
> libgearman-server/plugins/queue/drizzle/queue.cc: In function 'gearmand_error_t gearman_server_queue_libdrizzle_init(gearmand::plugins::queue::Drizzle*, gearman_server_st*)':
> libgearman-server/plugins/queue/drizzle/queue.cc:417:66: error: 'drizzle_column_skip_all' was not declared in this scope
> libgearman-server/plugins/queue/drizzle/queue.cc: In function 'gearmand_error_t _libdrizzle_add(gearman_server_st*, void*, const char*, size_t, const char*, size_t, const void*, size_t, gearmand_job_priority_t, int64_t)':
> libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
> libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 6 has type 'std::basic_string<char>::size_type {aka long unsigned int}' [-Wformat]
> libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 10 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
> libgearman-server/plugins/queue/drizzle/queue.cc:498:33: warning: field precision specifier '.*' expects argument of type 'int', but argument 12 has type 'std::vector<char>::size_type {aka long unsigned int}' [-Wformat]
> l...

Read more...

Elbandi (ea333) wrote :

My patch add a check to configure to verify that drizzle_column_skip_all function is exists. If not, it create that missing function.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers