Issue with compilation and installation of gearmand 1.1.x on CentOS 6.5 x86_64 based Server

Bug #1327038 reported by Vipin Goel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
New
Undecided
Vipin Goel

Bug Description

Configuration summary for gearmand version 1.1.12

   * Installation prefix: /usr/local
   * System type: unknown-linux-gnu
   * Host CPU: x86_64
   * C Compiler: cc -std=gnu99 cc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
   * C Flags: -g -O2 -Wno-unknown-pragmas -Wno-pragmas -Wall -Wextra -Wno-attributes -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wformat-y2k -Wlogical-op -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 -funsafe-loop-optimizations -Wclobbered -Wunused -Wunused-variable -Wunused-parameter -Wwrite-strings -fwrapv -pipe -fPIE -pie -Wpacked
   * C++ Compiler: c++ c++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
   * C++ Flags: -g -O2 -std=c++0x -Wno-unknown-pragmas -Wno-pragmas -Wall -Wextra -Wno-attributes -Waddress -Warray-bounds -Wchar-subscripts -Wcomment -Wctor-dtor-privacy -Wfloat-equal -Wformat=2 -Wformat-y2k -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 -funsafe-loop-optimizations -Wclobbered -Wunused -Wunused-variable -Wunused-parameter -Wwrite-strings -Wformat-security -fwrapv -pipe -fPIE -pie -Wpacked
   * CPP Flags: -fvisibility=hidden
   * LIBS:
   * LDFLAGS Flags:
   * Assertions enabled: no
   * Debug enabled: no
   * Warnings as failure: no
   * Building with libsqlite3 no
   * Building with libdrizzle yes
   * Building with libmemcached not found
   * Building with libpq no
   * Building with tokyocabinet no
   * Building with libmysql yes
   * SSL enabled: no
   * cyassl found: no
   * openssl found: no
   * make -j: 5
   * VCS checkout: no
   * sphinx-build: :

$make

Output Come

  CXX libgearman/protocol/libgearman_libgearmancore_la-work_exception.lo
  CXX libgearman/libgearman_libgearmancore_la-server_options.lo
  CXX libgearman/libgearman_libgearmancore_la-strerror.lo
  CXX libgearman/libgearman_libgearmancore_la-universal.lo
  CXX libgearman/libgearman_libgearmancore_la-uuid.lo
  CXXLD libgearman/libgearmancore.la
  CXX libhashkit/libhashkit_libhashkitinc_la-aes.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-algorithm.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-behavior.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-crc32.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-digest.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-encrypt.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-fnv_32.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-fnv_64.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-function.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-has.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-hashkit.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-jenkins.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-ketama.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-md5.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-murmur.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-murmur3.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-murmur3_api.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-one_at_a_time.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-str_algorithm.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-strerror.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-string.lo
  CXX libhashkit/libhashkit_libhashkitinc_la-nohsieh.lo
  CXXLD libhashkit/libhashkitinc.la
  CXX benchmark/benchmark.lo
  CXXLD benchmark/libbenchmark.la
  CXX libgearman-server/plugins/protocol/http/libgearman_server_libgearman_server_la-protocol.lo
  CXX libgearman-server/plugins/protocol/gear/libgearman_server_libgearman_server_la-protocol.lo
  CXX libgearman-server/plugins/queue/default/libgearman_server_libgearman_server_la-queue.lo
  CXX libgearman-server/plugins/queue/drizzle/libgearman_server_libgearman_server_la-queue.lo
  CXX libgearman-server/plugins/queue/redis/libgearman_server_libgearman_server_la-queue.lo
  CXX libgearman-server/plugins/queue/mysql/libgearman_server_libgearman_server_la-queue.lo
libgearman-server/plugins/queue/mysql/queue.cc:49:19: error: mysql.h: No such file or directory
libgearman-server/plugins/queue/mysql/queue.cc:50:20: error: errmsg.h: No such file or directory
libgearman-server/plugins/queue/mysql/queue.cc:78: error: ISO C++ forbids declaration of 'MYSQL' with no type
libgearman-server/plugins/queue/mysql/queue.cc:78: error: expected ';' before '*' token
libgearman-server/plugins/queue/mysql/queue.cc:79: error: ISO C++ forbids declaration of 'MYSQL_STMT' with no type
libgearman-server/plugins/queue/mysql/queue.cc:79: error: expected ';' before '*' token
libgearman-server/plugins/queue/mysql/queue.cc:80: error: ISO C++ forbids declaration of 'MYSQL_STMT' with no type
libgearman-server/plugins/queue/mysql/queue.cc:80: error: expected ';' before '*' token
libgearman-server/plugins/queue/mysql/queue.cc: In constructor 'gearmand::plugins::queue::MySQL::MySQL()':
libgearman-server/plugins/queue/mysql/queue.cc:98: error: class 'gearmand::plugins::queue::MySQL' does not have any field named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:99: error: class 'gearmand::plugins::queue::MySQL' does not have any field named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:100: error: class 'gearmand::plugins::queue::MySQL' does not have any field named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc: In destructor 'virtual gearmand::plugins::queue::MySQL::~MySQL()':
libgearman-server/plugins/queue/mysql/queue.cc:113: error: 'add_stmt' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:115: error: 'mysql_stmt_close' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:117: error: 'con' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:119: error: 'mysql_close' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc: In member function 'gearmand_error_t gearmand::plugins::queue::MySQL::prepareAddStatement()':
libgearman-server/plugins/queue/mysql/queue.cc:132: error: 'class gearmand::plugins::queue::MySQL' has no member named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:132: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:132: error: 'mysql_stmt_init' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:134: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:134: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:143: error: 'class gearmand::plugins::queue::MySQL' has no member named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:143: error: 'mysql_stmt_prepare' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:145: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:145: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc: In member function 'gearmand_error_t gearmand::plugins::queue::MySQL::prepareDoneStatement()':
libgearman-server/plugins/queue/mysql/queue.cc:156: error: 'class gearmand::plugins::queue::MySQL' has no member named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:156: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:156: error: 'mysql_stmt_init' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:158: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:158: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:167: error: 'class gearmand::plugins::queue::MySQL' has no member named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:167: error: 'mysql_stmt_prepare' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:169: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:169: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc: In function 'gearmand_error_t _initialize(gearman_server_st&, gearmand::plugins::queue::MySQL*)':
libgearman-server/plugins/queue/mysql/queue.cc:210: error: 'MYSQL_RES' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:210: error: 'result' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:211: error: 'my_bool' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:211: error: expected ';' before 'my_true'
libgearman-server/plugins/queue/mysql/queue.cc:217: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:217: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:217: error: 'mysql_init' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:219: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:219: error: 'MYSQL_READ_DEFAULT_GROUP' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:219: error: 'mysql_options' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:221: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:226: error: 'mysql_real_connect' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:228: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:228: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:233: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:233: error: 'MYSQL_OPT_RECONNECT' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:233: error: 'my_true' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:235: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:235: error: 'mysql_list_tables' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:237: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:237: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:241: error: 'mysql_num_rows' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:258: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:258: error: 'mysql_real_query' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:260: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:260: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:265: error: 'mysql_free_result' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc: In function 'gearmand_error_t _mysql_queue_add(gearman_server_st*, void*, const char*, size_t, const char*, size_t, const void*, size_t, gearman_job_priority_t, int64_t)':
libgearman-server/plugins/queue/mysql/queue.cc:293: error: 'MYSQL_BIND' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:293: error: expected ';' before 'bind'
libgearman-server/plugins/queue/mysql/queue.cc:300: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:300: error: request for member 'buffer_type' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:300: error: 'MYSQL_TYPE_STRING' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:301: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:301: error: request for member 'buffer' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:302: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:302: error: request for member 'buffer_length' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:303: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:303: error: request for member 'is_null' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:304: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:304: error: request for member 'length' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:306: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:306: error: request for member 'buffer_type' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:307: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:307: error: request for member 'buffer' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:308: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:308: error: request for member 'buffer_length' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:309: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:309: error: request for member 'is_null' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:310: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:310: error: request for member 'length' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:312: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:312: error: request for member 'buffer_type' in '*(bind + 2u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:312: error: 'MYSQL_TYPE_LONG' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:313: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:313: error: request for member 'buffer' in '*(bind + 2u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:314: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:314: error: request for member 'is_null' in '*(bind + 2u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:315: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:315: error: request for member 'length' in '*(bind + 2u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:317: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:317: error: request for member 'buffer_type' in '*(bind + 3u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:317: error: 'MYSQL_TYPE_LONG_BLOB' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:318: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:318: error: request for member 'buffer' in '*(bind + 3u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:319: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:319: error: request for member 'buffer_length' in '*(bind + 3u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:320: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:320: error: request for member 'is_null' in '*(bind + 3u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:321: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:321: error: request for member 'length' in '*(bind + 3u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:323: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:323: error: request for member 'buffer_type' in '*(bind + 4u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:324: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:324: error: request for member 'buffer' in '*(bind + 4u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:325: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:325: error: request for member 'is_null' in '*(bind + 4u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:326: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:326: error: request for member 'length' in '*(bind + 4u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:330: error: 'class gearmand::plugins::queue::MySQL' has no member named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:330: error: 'mysql_stmt_bind_param' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:332: error: 'class gearmand::plugins::queue::MySQL' has no member named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:332: error: 'mysql_stmt_errno' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:332: error: 'CR_NO_PREPARE_STMT' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:342: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:342: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:347: error: 'class gearmand::plugins::queue::MySQL' has no member named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:347: error: 'mysql_stmt_execute' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:349: error: 'class gearmand::plugins::queue::MySQL' has no member named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:349: error: 'mysql_stmt_errno' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:349: error: 'CR_SERVER_LOST' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:351: error: 'class gearmand::plugins::queue::MySQL' has no member named 'add_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:351: error: 'mysql_stmt_close' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:357: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:357: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc: In function 'gearmand_error_t _mysql_queue_done(gearman_server_st*, void*, const char*, size_t, const char*, size_t)':
libgearman-server/plugins/queue/mysql/queue.cc:382: error: 'MYSQL_BIND' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:382: error: expected ';' before 'bind'
libgearman-server/plugins/queue/mysql/queue.cc:389: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:389: error: request for member 'buffer_type' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:389: error: 'MYSQL_TYPE_STRING' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:390: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:390: error: request for member 'buffer' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:391: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:391: error: request for member 'buffer_length' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:392: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:392: error: request for member 'is_null' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:393: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:393: error: request for member 'length' in 'bind', which is of non-class type 'int(int, const sockaddr*, socklen_t)throw ()'
libgearman-server/plugins/queue/mysql/queue.cc:395: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:395: error: request for member 'buffer_type' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:396: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:396: error: request for member 'buffer' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:397: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:397: error: request for member 'buffer_length' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:398: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:398: error: request for member 'is_null' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:399: warning: pointer to a function used in arithmetic
libgearman-server/plugins/queue/mysql/queue.cc:399: error: request for member 'length' in '*(bind + 1u)', which is of non-class type 'int(int, const sockaddr*, socklen_t)'
libgearman-server/plugins/queue/mysql/queue.cc:403: error: 'class gearmand::plugins::queue::MySQL' has no member named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:403: error: 'mysql_stmt_bind_param' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:405: error: 'class gearmand::plugins::queue::MySQL' has no member named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:405: error: 'mysql_stmt_errno' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:405: error: 'CR_NO_PREPARE_STMT' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:415: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:415: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:420: error: 'class gearmand::plugins::queue::MySQL' has no member named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:420: error: 'mysql_stmt_execute' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:422: error: 'class gearmand::plugins::queue::MySQL' has no member named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:422: error: 'mysql_stmt_errno' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:422: error: 'CR_SERVER_LOST' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:424: error: 'class gearmand::plugins::queue::MySQL' has no member named 'done_stmt'
libgearman-server/plugins/queue/mysql/queue.cc:424: error: 'mysql_stmt_close' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:430: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:430: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc: In function 'gearmand_error_t _mysql_queue_replay(gearman_server_st*, void*, gearmand_error_t (*)(gearman_server_st*, void*, const char*, size_t, const char*, size_t, const void*, size_t, gearman_job_priority_t, int64_t), void*)':
libgearman-server/plugins/queue/mysql/queue.cc:446: error: 'MYSQL_RES' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:446: error: 'result' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:447: error: 'MYSQL_ROW' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:447: error: expected ';' before 'row'
libgearman-server/plugins/queue/mysql/queue.cc:458: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:458: error: 'mysql_real_query' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:460: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:460: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:464: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:464: error: 'mysql_store_result' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:466: error: 'class gearmand::plugins::queue::MySQL' has no member named 'con'
libgearman-server/plugins/queue/mysql/queue.cc:466: error: 'mysql_error' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:470: error: 'mysql_num_fields' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:478: error: 'row' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:478: error: 'mysql_fetch_row' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:484: error: 'mysql_fetch_lengths' was not declared in this scope
libgearman-server/plugins/queue/mysql/queue.cc:518: error: 'mysql_free_result' was not declared in this scope
make[1]: *** [libgearman-server/plugins/queue/mysql/libgearman_server_libgearman_server_la-queue.lo] Error 1
make[1]: Leaving directory `/usr/share/gearmand-1.1.12'
make: *** [all] Error 2

Why this issue happening?

Vipin Goel (vips21k)
Changed in gearmand:
assignee: nobody → Vipin Goel (vips21k)
Revision history for this message
AgBorkowski (andrzejborkowski) wrote :

same
osx mavericks

==> Downloading https://launchpad.net/gearmand/1.2/1.1.11/+download/gearmand-1.1.11.tar.gz
Already downloaded: /Library/Caches/Homebrew/gearman-1.1.11.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gearman/1.1.11 --without-mysql
==> make install
make[2]: *** [libgearman/libgearman_server_libgearman_server_la-pipe.lo] Error 1
1 error generated.
make[2]: *** [libgearman/libgearman_server_libgearman_server_la-command.lo] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

Vipin Goel (vips21k)
summary: Issue with compilation when install gearmand 1.1.x on CentOS 6.5 x86_64
- base Server
+ based Server
summary: - Issue with compilation when install gearmand 1.1.x on CentOS 6.5 x86_64
- based Server
+ Issue with compilation and installation of gearmand 1.1.x on CentOS 6.5
+ x86_64 based Server
Revision history for this message
chjgcn (chjgcn) wrote :

Maybe the GCC is too old?

Revision history for this message
mt (ntuanphuc) wrote :

I use Centos 6.5 x86_64 and got the same issues (I tried gearman 1.1.12 and gearman 1.1.11)
any idea on other version?

Revision history for this message
Dawid Gorczyca (1david-gorczyca) wrote :

I had the same problem, try adding mysql-devel package - yum install mysql-devel, after that if you run make again should work. My machine was Centos 6.2

Revision history for this message
Dawid Gorczyca (1david-gorczyca) wrote :
Revision history for this message
chjgcn (chjgcn) wrote :

Mark!
In these widely used distributions like CentOS and Debian, the header files are split from base package and made as dev package.
The dependent dev packages must be installed before building software from source in these Linux distributions.

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.