php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63062 gearman extension compile error
Submitted: 2012-09-11 09:58 UTC Modified: 2012-09-24 08:12 UTC
Votes:3
Avg. Score:3.3 ± 1.2
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: michael dot schobel-thoma at ventum dot de Assigned: hradtke (profile)
Status: Closed Package: gearman (PECL)
PHP Version: 5.4.6 OS: SLES 10.3
Private report: No CVE-ID: None
 [2012-09-11 09:58 UTC] michael dot schobel-thoma at ventum dot de
Description:
------------
After compiling and installing germand 1.1.0, gearman extension 1.0.3 won´t compile. Configure runs without problems, but compiling breaks:

folder@server:~/local/folder4/gearman-1.0.3> make
/bin/sh /apps/home/folder/local/folder4/gearman-1.0.3/libtool --mode=compile cc  -I. -I/apps/home/folder/local/folder4/gearman-1.0.3 -DPHP_ATOM_INC -I/apps/home/folder/local/folder4/gearman-1.0.3/include -I/apps/home/folder/local/folder4/gearman-1.0.3/main -I/apps/home/folder/local/folder4/gearman-1.0.3 -I/apps/folder/local/folder4/include/php -I/apps/folder/local/folder4/include/php/main -I/apps/folder/local/folder4/include/php/TSRM -I/apps/folder/local/folder4/include/php/Zend -I/apps/folder/local/folder4/include/php/ext -I/apps/folder/local/folder4/include/php/ext/date/lib -I/apps/folder/local/folder4/include  -DHAVE_CONFIG_H  -g -O2 -Wall   -c /apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c -o php_gearman.lo
 cc -I. -I/apps/home/folder/local/folder4/gearman-1.0.3 -DPHP_ATOM_INC -I/apps/home/folder/local/folder4/gearman-1.0.3/include -I/apps/home/folder/local/folder4/gearman-1.0.3/main -I/apps/home/folder/local/folder4/gearman-1.0.3 -I/apps/folder/local/folder4/include/php -I/apps/folder/local/folder4/include/php/main -I/apps/folder/local/folder4/include/php/TSRM -I/apps/folder/local/folder4/include/php/Zend -I/apps/folder/local/folder4/include/php/ext -I/apps/folder/local/folder4/include/php/ext/date/lib -I/apps/folder/local/folder4/include -DHAVE_CONFIG_H -g -O2 -Wall -c /apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c  -fPIC -DPIC -o .libs/php_gearman.o
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘zif_gearman_job_send_data’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:1486: error: dereferencing pointer to incomplete type
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘zif_gearman_job_send_warning’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:1514: error: dereferencing pointer to incomplete type
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘zif_gearman_job_send_status’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:1537: error: dereferencing pointer to incomplete type
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘zif_gearman_job_send_complete’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:1559: error: dereferencing pointer to incomplete type
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘zif_gearman_job_send_exception’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:1581: error: dereferencing pointer to incomplete type
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘zif_gearman_job_send_fail’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:1600: error: dereferencing pointer to incomplete type
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘_php_worker_function_callback’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:3521: error: dereferencing pointer to incomplete type
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c: In function ‘zm_startup_gearman’:
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:4638: error: ‘GEARMAN_MAGIC_TEXT’ undeclared (first use in this function)
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:4638: error: (Each undeclared identifier is reported only once
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:4638: error: for each function it appears in.)
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:4641: error: ‘GEARMAN_MAGIC_REQUEST’ undeclared (first use in this function)
/apps/home/folder/local/folder4/gearman-1.0.3/php_gearman.c:4644: error: ‘GEARMAN_MAGIC_RESPONSE’ undeclared (first use in this function)
make: *** [php_gearman.lo] Error 1


Expected result:
----------------
compiling should not break.

Actual result:
--------------
compiling breaks

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-11 18:46 UTC] hradtke@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: hradtke
 [2012-09-13 01:10 UTC] bjohns at alumni dot usc dot edu
I encountered this same error in compilation on CENTOS using 5.3.3.  It seems to 
be related to Gearman 1.1.0 exclusively; rolling gearman and libgearman back to 
0.37 resolved the build issues for me.  PECL extensions confirmed working 
afterwards.
 [2012-09-13 16:35 UTC] hradtke@php.net
I have opened https://bugs.launchpad.net/gearmand/+bug/1050507 to address the BC 
break. We will have to wait until Brian fixes the issue.
 [2012-09-24 08:12 UTC] michael dot schobel-thoma at ventum dot de
-Status: Assigned +Status: Closed
 [2012-09-24 08:12 UTC] michael dot schobel-thoma at ventum dot de
Fixed in gearman 1.1.0 and libgearman 1.1.1!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC