php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58938 event.h not found
Submitted: 2009-11-06 13:51 UTC Modified: 2010-01-22 18:50 UTC
From: gaugau at gmail dot com Assigned: jluedke (profile)
Status: Wont fix Package: gearman (PECL)
PHP Version: 5.3.0 OS: Mac OS X Snow Leopard
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: gaugau at gmail dot com
New email:
PHP Version: OS:

 

 [2009-11-06 13:51 UTC] gaugau at gmail dot com
Description:
------------
I tried both installing via "pecl install gearman" and manually, event.h is missing and I don't know what/which library is required. ./configure --help does not have any specific information either. Please let me know what is missing. Thank you.

macbook:gearman-0.6.0 trungson$ sudo make
/bin/sh /Users/trungson/Desktop/gearman-0.6.0/libtool --mode=compile cc  -I. -I/Users/trungson/Desktop/gearman-0.6.0 -DPHP_ATOM_INC -I/Users/trungson/Desktop/gearman-0.6.0/include -I/Users/trungson/Desktop/gearman-0.6.0/main -I/Users/trungson/Desktop/gearman-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -Wall   -c /Users/trungson/Desktop/gearman-0.6.0/php_gearman.c -o php_gearman.lo 
mkdir .libs
 cc -I. -I/Users/trungson/Desktop/gearman-0.6.0 -DPHP_ATOM_INC -I/Users/trungson/Desktop/gearman-0.6.0/include -I/Users/trungson/Desktop/gearman-0.6.0/main -I/Users/trungson/Desktop/gearman-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Wall -c /Users/trungson/Desktop/gearman-0.6.0/php_gearman.c  -fno-common -DPIC -o .libs/php_gearman.o
In file included from /Users/trungson/Desktop/gearman-0.6.0/php_gearman.c:24:
/usr/local/include/libgearman/gearman.h:28:19: error: event.h: No such file or directory
make: *** [php_gearman.lo] Error 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-06 13:57 UTC] gaugau at gmail dot com
After digging a bit more, I believe it's because libevent is installed it into "/opt/local/var/macports/software/libevent/1.4.12_0/opt/local/" (installed via MacPorts)

For the libgearman source, I can can customize it:
./configure --with-libevent-prefix=xxx

How can I customize libevent location when building pecl-gearman the same way?

Thanks
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 18:01:29 2019 UTC