|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51821 configure fails to pick up a custom prefix for libevent
Submitted: 2010-05-14 14:34 UTC Modified: 2010-05-19 13:32 UTC
From: admin at saltwaterc dot net Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.2 OS: Linux
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:
Bug Type:
From: admin at saltwaterc dot net
New email:
PHP Version: OS:


 [2010-05-14 14:34 UTC] admin at saltwaterc dot net
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
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() {
      return 0;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-16 22:59 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: fat
 [2010-05-19 13:29 UTC]
Automatic comment from SVN on behalf of fat
Log: - #51821, fix --with-libevent-dir (patch by tony2001)
 [2010-05-19 13:32 UTC]
-Status: Assigned +Status: Closed
 [2010-05-19 13:32 UTC]
fixed in trunk (revision 299485)
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 05:01:29 2024 UTC