php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60869 gearman php extension build failed
Submitted: 2012-01-24 13:46 UTC Modified: 2012-01-24 18:11 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: colorix dot studio at gmail dot com Assigned:
Status: Closed Package: gearman (PECL)
PHP Version: 5.3.9 OS: debian 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: colorix dot studio at gmail dot com
New email:
PHP Version: OS:

 

 [2012-01-24 13:46 UTC] colorix dot studio at gmail dot com
Description:
------------
#aptitude install gearman libgearman-dev
#pecl install gearman


/usr/include/libgearman/gearman.h:39:36: fatal error: libgearman-1.0/gearman.h: 
No such file or directory


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-24 13:51 UTC] colorix dot studio at gmail dot com
root@Debian-60-squeeze-64-minimal / # find -name 'gearman.h'
./usr/include/libgearman/gearman.h
root@Debian-60-squeeze-64-minimal / # cat ./usr/include/libgearman/gearman.h
#include <libgearman-1.0/gearman.h>
root@Debian-60-squeeze-64-minimal / #
 [2012-01-24 16:56 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-01-24 16:56 UTC] rasmus@php.net
root@Debian-60-squeeze-64-minimal / # cat ./usr/include/libgearman/gearman.h
#include <libgearman-1.0/gearman.h>

Ok, but does /usr/include/libgearman-1.0/gearman.h actually exist?
 [2012-01-24 17:27 UTC] colorix dot studio at gmail dot com
-Status: Feedback +Status: Open
 [2012-01-24 17:27 UTC] colorix dot studio at gmail dot com
root@Debian-60-squeeze-64-minimal / # find -name 'gearman.h'
./usr/include/libgearman/gearman.h

as you can see, it doesn't
 [2012-01-24 17:29 UTC] colorix dot studio at gmail dot com
I can add, then i installed gearman extension on the same system just a week ago, and everything was fine
 [2012-01-24 17:48 UTC] rasmus@php.net
-Status: Open +Status: Feedback
 [2012-01-24 17:48 UTC] rasmus@php.net
Right, so your libgearman-dev install is broken. It doesn't have anything to do 
with PHP. libgearman-dev installed a header file which references a file that 
doesn't exist with:

  #include <libgearman-1.0/gearman.h>

PHP needs that gearman.h file to compile.

On my Debian box the include files installed by libgearman-dev are these:

/usr/include/libgearman/byteorder.h
/usr/include/libgearman/strerror.h
/usr/include/libgearman/client.h
/usr/include/libgearman/command.h
/usr/include/libgearman/connection.h
/usr/include/libgearman/packet.h
/usr/include/libgearman/constants.h
/usr/include/libgearman/configure.h
/usr/include/libgearman/gearman.h
/usr/include/libgearman/visibility.h
/usr/include/libgearman/log.h
/usr/include/libgearman/task.h
/usr/include/libgearman/worker.h
/usr/include/libgearman/universal.h
/usr/include/libgearman/core.h
/usr/include/libgearman/job.h

And /usr/include/libgearman/gearman.h is the actual gearman.h file with all the 
contents. It doesn't reference a different version that doesn't exist.
 [2012-01-24 18:11 UTC] colorix dot studio at gmail dot com
thanks. i'll watch what's wrong with lib
 [2012-01-24 18:11 UTC] colorix dot studio at gmail dot com
-Status: Feedback +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jan 29 08:01:25 2020 UTC