Bug #51821 [Asn->Csd]: configure fails to pick up a custom prefix for libevent
| From: | fat@php.net | Date: | Wed, 19 May 2010 11:32:18 +0000 |
| Subject: | Bug #51821 [Asn->Csd]: configure fails to pick up a custom prefix for libevent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-150596@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51821&edit=1
ID: 51821
Updated by: fat@php.net
Reported by: admin at saltwaterc dot net
Summary: configure fails to pick up a custom prefix for
libevent
-Status: Assigned
+Status: Closed
Type: Bug
Package: FPM related
Operating System: Linux
PHP Version: 5.3.2
Assigned To: fat
New Comment:
fixed in trunk (revision 299485)
Previous Comments:
------------------------------------------------------------------------
[2010-05-19 13:29:33] fat@php.net
Automatic comment from SVN on behalf of fat
Revision: http://svn.php.net/viewvc/?view=revision&revision=299485
Log: - #51821, fix --with-libevent-dir (patch by tony2001)
------------------------------------------------------------------------
[2010-05-14 14:34:40] admin at saltwaterc dot net
Description:
------------
Using a custom prefix for the libevent installation
(/usr/local/libevent-1.4.13) doesn't get picked up by the configure
script, even though I properly used the --with-libevent-dir option.
Unless the prefix for the libevent installation is a path that ldconfig
knows about, the configure fails.
I could "fix" it with:
export LD_LIBRARY_PATH=/usr/local/libevent-$libevent_version/lib
within my build script which gives me the idea that the configure fails
to properly set its environment. Still an arcane method though.
Test script:
---------------
./configure [...] --enable-fpm --with-fpm-user=php-fpm
--with-fpm-group=php-fpm --with-libevent-dir=/usr/local/libevent-1.4.13
Expected result:
----------------
To run configure without errors.
Actual result:
--------------
./configure says:
checking for FPM build... yes
checking for libevent >= 1.4.11 install prefix...
/usr/local/libevent-1.4.13
no
configure: error: build test failed. Please check the config.log for
details.
config.log says:
configure:9409: checking for libevent >= 1.4.11 install prefix
configure:9524: gcc -o conftest -g -O2 -fvisibility=hidden
-I/usr/local/libevent-1.4.13/include -L/usr/local/libevent-1.4.13/lib
conftest.c -levent 1>&5
configure:9724: gcc -o conftest -g -O2 -fvisibility=hidden conftest.c
-L/usr/local/libevent-1.4.13/lib -levent 1>&5
configure: failed program was:
#line 9713 "configure"
#include "confdefs.h"
char event_init();
int main() {
event_init();
return 0;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51821&edit=1