php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67928 Make Fails
Submitted: 2014-08-28 21:03 UTC Modified: 2017-01-10 08:24 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:0 of 1 (0.0%)
From: diemuzi at gmail dot com Assigned:
Status: Suspended Package: gearman (PECL)
PHP Version: 5.6.0 OS: Archlinux
Private report: No CVE-ID: None
 [2014-08-28 21:03 UTC] diemuzi at gmail dot com
Description:
------------
Currently Gearman Pecl does not compile when using PHP 5.6.0

I currently have Gearman 1.1.12 installed and I am attempting to install the Pecl Extension for 1.1.2

This does work with PHP 5.5.x and older

phpize and configure work as expected. Currently MAKE is what fails.

Actual result:
--------------
[root@pacman32 gearman-1.1.2]$ phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226

[root@pacman32 gearman-1.1.2]$ ./configure \
>     --with-php-config=/usr/local/bin/php-config \
>     --with-gearman=/usr/local/gearman
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.6 (ok)
checking for gawk... gawk
checking whether to enable gearman support... yes, shared
found in /usr/local/gearman
checking for gearman_client_set_context in -lgearman... yes
checking for gearman_worker_set_server_option in -lgearman... yes
checking for gearman_job_error in -lgearman... yes
checking for gearman_client_unique_status in -lgearman... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h

[root@pacman32 gearman-1.1.2]$ make
/bin/sh /usr/local/packages/php_modules/src/gearman-1.1.2/libtool --mode=compile cc  -I. -I/usr/local/packages/php_modules/src/gearman-1.1.2 -DPHP_ATOM_INC -I/usr/local/packages/php_modules/src/gearman-1.1.2/include -I/usr/local/packages/php_modules/src/gearman-1.1.2/main -I/usr/local/packages/php_modules/src/gearman-1.1.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/gearman/include  -DHAVE_CONFIG_H  -g -O2 -Wall   -c /usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c -o php_gearman.lo
mkdir .libs
 cc -I. -I/usr/local/packages/php_modules/src/gearman-1.1.2 -DPHP_ATOM_INC -I/usr/local/packages/php_modules/src/gearman-1.1.2/include -I/usr/local/packages/php_modules/src/gearman-1.1.2/main -I/usr/local/packages/php_modules/src/gearman-1.1.2 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/gearman/include -DHAVE_CONFIG_H -g -O2 -Wall -c /usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c  -fPIC -DPIC -o .libs/php_gearman.o
In file included from /usr/local/gearman/include/libgearman-1.0/constants.h:46:0,
                 from /usr/local/gearman/include/libgearman-1.0/gearman.h:74,
                 from /usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:24:
/usr/local/gearman/include/libgearman-1.0/limits.h:16:22: warning: "/*" within comment [-Wcomment]
  *  copyright notice,/*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 ^
In file included from /usr/local/gearman/include/libgearman-1.0/task.h:48:0,
                 from /usr/local/gearman/include/libgearman-1.0/gearman.h:92,
                 from /usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:24:
/usr/local/gearman/include/libgearman-1.0/interface/task.h:38:13: error: unterminated comment
 #pragma once/*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
             ^
In file included from /usr/local/gearman/include/libgearman-1.0/gearman.h:99:0,
                 from /usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:24:
/usr/local/gearman/include/libgearman-1.0/status.h:31:10: warning: "/*" within comment [-Wcomment]
  *  DATA,/*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 ^
/usr/local/gearman/include/libgearman-1.0/status.h:1:1: error: unterminated comment
 /*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 ^
In file included from /usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:26:0:
/usr/local/gearman/include/libgearman-1.0/status.h:31:10: warning: "/*" within comment [-Wcomment]
  *  DATA,/*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 ^
/usr/local/gearman/include/libgearman-1.0/status.h:1:1: error: unterminated comment
 /*  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c: In function ‘zif_gearman_client_job_status_by_unique_key’:
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:2280:2: warning: implicit declaration of function ‘gearman_status_return’ [-Wimplicit-function-declaration]
  gearman_return_t rc = gearman_status_return(status);
  ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:2288:2: warning: implicit declaration of function ‘gearman_status_is_known’ [-Wimplicit-function-declaration]
  add_next_index_bool(return_value, gearman_status_is_known(status));
  ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:2289:2: warning: implicit declaration of function ‘gearman_status_is_running’ [-Wimplicit-function-declaration]
  add_next_index_bool(return_value, gearman_status_is_running(status));
  ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:2290:2: warning: implicit declaration of function ‘gearman_status_numerator’ [-Wimplicit-function-declaration]
  add_next_index_long(return_value, (long) gearman_status_numerator(status));
  ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:2291:2: warning: implicit declaration of function ‘gearman_status_denominator’ [-Wimplicit-function-declaration]
  add_next_index_long(return_value, (long) gearman_status_denominator(status));
  ^
In file included from /usr/local/include/php/main/php.h:406:0,
                 from /usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:16:
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c: In function ‘zm_startup_gearman’:
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4494:3: error: ‘GEARMAN_MAX_ERROR_SIZE’ undeclared (first use in this function)
   GEARMAN_MAX_ERROR_SIZE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4494:3: note: each undeclared identifier is reported only once for each function it appears in
   GEARMAN_MAX_ERROR_SIZE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4497:3: error: ‘GEARMAN_PACKET_HEADER_SIZE’ undeclared (first use in this function)
   GEARMAN_PACKET_HEADER_SIZE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4503:3: error: ‘GEARMAN_OPTION_SIZE’ undeclared (first use in this function)
   GEARMAN_OPTION_SIZE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4506:3: error: ‘GEARMAN_UNIQUE_SIZE’ undeclared (first use in this function)
   GEARMAN_UNIQUE_SIZE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4509:3: error: ‘GEARMAN_MAX_COMMAND_ARGS’ undeclared (first use in this function)
   GEARMAN_MAX_COMMAND_ARGS,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4515:3: error: ‘GEARMAN_SEND_BUFFER_SIZE’ undeclared (first use in this function)
   GEARMAN_SEND_BUFFER_SIZE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4518:3: error: ‘GEARMAN_RECV_BUFFER_SIZE’ undeclared (first use in this function)
   GEARMAN_RECV_BUFFER_SIZE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4521:3: error: ‘GEARMAN_WORKER_WAIT_TIMEOUT’ undeclared (first use in this function)
   GEARMAN_WORKER_WAIT_TIMEOUT,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4832:3: error: ‘GEARMAN_TASK_STATE_NEW’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_NEW,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4835:3: error: ‘GEARMAN_TASK_STATE_SUBMIT’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_SUBMIT,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4838:3: error: ‘GEARMAN_TASK_STATE_WORKLOAD’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_WORKLOAD,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4841:3: error: ‘GEARMAN_TASK_STATE_WORK’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_WORK,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4844:3: error: ‘GEARMAN_TASK_STATE_CREATED’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_CREATED,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4847:3: error: ‘GEARMAN_TASK_STATE_DATA’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_DATA,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4850:3: error: ‘GEARMAN_TASK_STATE_WARNING’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_WARNING,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4853:3: error: ‘GEARMAN_TASK_STATE_STATUS’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_STATUS,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4856:3: error: ‘GEARMAN_TASK_STATE_COMPLETE’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_COMPLETE,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4859:3: error: ‘GEARMAN_TASK_STATE_EXCEPTION’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_EXCEPTION,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4862:3: error: ‘GEARMAN_TASK_STATE_FAIL’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_FAIL,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/usr/local/packages/php_modules/src/gearman-1.1.2/php_gearman.c:4865:3: error: ‘GEARMAN_TASK_STATE_FINISHED’ undeclared (first use in this function)
   GEARMAN_TASK_STATE_FINISHED,
   ^
/usr/local/include/php/Zend/zend_constants.h:43:103: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
Makefile:181: recipe for target 'php_gearman.lo' failed
make: *** [php_gearman.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-30 12:47 UTC] chjgcn at gmail dot com
I have installed php 5.6.0 from [testing], then make php-gearman using PKGBUILD file, and it is compiled without error.
So I suggest you checking the file
    /usr/local/gearman/include/libgearman-1.0/limits.h
at line 16 to see if there is something wrong.
 [2014-08-30 14:04 UTC] diemuzi at gmail dot com
I am not using the Archlinux packages. I compiled my PHP installation from source and I do the same for Gearman and the PECL Gearman Extension.
 [2017-01-10 08:24 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:24 UTC] kalle@php.net
The gearman extension have not had much activity in the past few years, so I'm taking the safe bet that this is no longer under active development (as I don't consider the typo fixes on the github repo an active development), besides that it also targets unsupported PHP versions. Please unsuspend this report in case it begins to blossom with life once more
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC