[0.12] cannot compile php pecl extension

38 views
Skip to first unread message

Artur Bodera

unread,
Feb 19, 2010, 12:20:29 PM2/19/10
to gearman
After upgrading to 0.12, recompiling and installing I am not able to
re-build my pecl php extension:

# pecl install channel://pecl.php.net/gearman-0.6.0
[...]
/var/tmp/gearman/php_gearman.c:910: error: expected specifier-
qualifier-list before ‘gearman_st’
/var/tmp/gearman/php_gearman.c: In function ‘zm_startup_gearman’:
/var/tmp/gearman/php_gearman.c:4491: error: ‘GEARMAN_ALLOCATED’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4491: error: (Each undeclared
identifier is reported only once
/var/tmp/gearman/php_gearman.c:4491: error: for each function it
appears in.)
/var/tmp/gearman/php_gearman.c:4500: error: ‘GEARMAN_CON_ALLOCATED’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4518: error:
‘GEARMAN_CON_STATE_ADDRINFO’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4521: error:
‘GEARMAN_CON_STATE_CONNECT’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4524: error:
‘GEARMAN_CON_STATE_CONNECTING’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4527: error:
‘GEARMAN_CON_STATE_CONNECTED’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4533: error:
‘GEARMAN_CON_SEND_STATE_PRE_FLUSH’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4536: error:
‘GEARMAN_CON_SEND_STATE_FORCE_FLUSH’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4539: error:
‘GEARMAN_CON_SEND_STATE_FLUSH’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4542: error:
‘GEARMAN_CON_SEND_STATE_FLUSH_DATA’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4545: error:
‘GEARMAN_CON_RECV_STATE_NONE’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4548: error:
‘GEARMAN_CON_RECV_STATE_READ’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4554: error: ‘GEARMAN_PACKET_ALLOCATED’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4557: error: ‘GEARMAN_PACKET_COMPLETE’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4560: error: ‘GEARMAN_PACKET_FREE_DATA’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4686: error: ‘GEARMAN_TASK_ALLOCATED’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4689: error: ‘GEARMAN_TASK_SEND_IN_USE’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4728: error: ‘GEARMAN_JOB_ALLOCATED’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4731: error:
‘GEARMAN_JOB_ASSIGNED_IN_USE’ undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4734: error: ‘GEARMAN_JOB_WORK_IN_USE’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4737: error: ‘GEARMAN_JOB_FINISHED’
undeclared (first use in this function)
/var/tmp/gearman/php_gearman.c:4827: error:
‘GEARMAN_WORKER_FUNCTION_PACKET_IN_USE’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4830: error:
‘GEARMAN_WORKER_FUNCTION_CHANGE’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4833: error:
‘GEARMAN_WORKER_FUNCTION_REMOVE’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4836: error:
‘GEARMAN_WORKER_WORK_STATE_GRAB_JOB’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4839: error:
‘GEARMAN_WORKER_WORK_STATE_FUNCTION’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4842: error:
‘GEARMAN_WORKER_WORK_STATE_COMPLETE’ undeclared (first use in this
function)
/var/tmp/gearman/php_gearman.c:4845: error:
‘GEARMAN_WORKER_WORK_STATE_FAIL’ undeclared (first use in this
function)
make: *** [php_gearman.lo] Error 1
ERROR: `make' failed


Whole log at: http://pastebin.com/d216ce42

Please assist.

A.

Maciej Nadolski

unread,
Feb 22, 2010, 6:14:42 AM2/22/10
to gearman
Hi.

I have exactly the same problem.

Miro Solanka

unread,
Feb 22, 2010, 1:03:06 PM2/22/10
to gearman
Can confirm the same problem with gearmand-0.12 & PECL gearman-0.6.0


On Feb 22, 12:14 pm, Maciej Nadolski <maciej.nadol...@gmail.com>
wrote:

James M. Luedke

unread,
Feb 22, 2010, 1:45:40 PM2/22/10
to gea...@googlegroups.com
There were some core api changes to libgearman which has broken
compiling of the pecl extension. There will be a new release of the pecl
extension some time this week.

The pecl svn trunk should build against gearmand-0.12.

-jluedke


Miro Solanka wrote:
> Can confirm the same problem with gearmand-0.12 & PECL gearman-0.6.0
>
>
> On Feb 22, 12:14 pm, Maciej Nadolski <maciej.nadol...@gmail.com>
> wrote:
>
>> Hi.
>>
>> I have exactly the same problem.
>>
>> On 19 Lut, 18:20, Artur Bodera <abod...@gmail.com> wrote:
>>
>>
>>
>>
>>> After upgrading to 0.12, recompiling and installing I am not able to
>>> re-build my pecl php extension:
>>>
>>> # pecl install channel://pecl.php.net/gearman-0.6.0
>>> [...]
>>> /var/tmp/gearman/php_gearman.c:910: error: expected specifier-

>>> qualifier-list before �gearman_st�
>>> /var/tmp/gearman/php_gearman.c: In function �zm_startup_gearman�:
>>> /var/tmp/gearman/php_gearman.c:4491: error: �GEARMAN_ALLOCATED�


>>> undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4491: error: (Each undeclared
>>> identifier is reported only once
>>> /var/tmp/gearman/php_gearman.c:4491: error: for each function it
>>> appears in.)

>>> /var/tmp/gearman/php_gearman.c:4500: error: �GEARMAN_CON_ALLOCATED�


>>> undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4518: error:

>>> �GEARMAN_CON_STATE_ADDRINFO� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4521: error:
>>> �GEARMAN_CON_STATE_CONNECT� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4524: error:
>>> �GEARMAN_CON_STATE_CONNECTING� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4527: error:
>>> �GEARMAN_CON_STATE_CONNECTED� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4533: error:
>>> �GEARMAN_CON_SEND_STATE_PRE_FLUSH� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4536: error:
>>> �GEARMAN_CON_SEND_STATE_FORCE_FLUSH� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4539: error:
>>> �GEARMAN_CON_SEND_STATE_FLUSH� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4542: error:
>>> �GEARMAN_CON_SEND_STATE_FLUSH_DATA� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4545: error:
>>> �GEARMAN_CON_RECV_STATE_NONE� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4548: error:
>>> �GEARMAN_CON_RECV_STATE_READ� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4554: error: �GEARMAN_PACKET_ALLOCATED�


>>> undeclared (first use in this function)

>>> /var/tmp/gearman/php_gearman.c:4557: error: �GEARMAN_PACKET_COMPLETE�


>>> undeclared (first use in this function)

>>> /var/tmp/gearman/php_gearman.c:4560: error: �GEARMAN_PACKET_FREE_DATA�


>>> undeclared (first use in this function)

>>> /var/tmp/gearman/php_gearman.c:4686: error: �GEARMAN_TASK_ALLOCATED�


>>> undeclared (first use in this function)

>>> /var/tmp/gearman/php_gearman.c:4689: error: �GEARMAN_TASK_SEND_IN_USE�


>>> undeclared (first use in this function)

>>> /var/tmp/gearman/php_gearman.c:4728: error: �GEARMAN_JOB_ALLOCATED�


>>> undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4731: error:

>>> �GEARMAN_JOB_ASSIGNED_IN_USE� undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4734: error: �GEARMAN_JOB_WORK_IN_USE�


>>> undeclared (first use in this function)

>>> /var/tmp/gearman/php_gearman.c:4737: error: �GEARMAN_JOB_FINISHED�


>>> undeclared (first use in this function)
>>> /var/tmp/gearman/php_gearman.c:4827: error:

>>> �GEARMAN_WORKER_FUNCTION_PACKET_IN_USE� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4830: error:
>>> �GEARMAN_WORKER_FUNCTION_CHANGE� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4833: error:
>>> �GEARMAN_WORKER_FUNCTION_REMOVE� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4836: error:
>>> �GEARMAN_WORKER_WORK_STATE_GRAB_JOB� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4839: error:
>>> �GEARMAN_WORKER_WORK_STATE_FUNCTION� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4842: error:
>>> �GEARMAN_WORKER_WORK_STATE_COMPLETE� undeclared (first use in this
>>> function)
>>> /var/tmp/gearman/php_gearman.c:4845: error:
>>> �GEARMAN_WORKER_WORK_STATE_FAIL� undeclared (first use in this

Reply all
Reply to author
Forward
0 new messages