Bug #51821 [NEW]: configure fails to pick up a custom prefix for libevent
| From: | admin at saltwaterc dot net | Date: | Fri, 14 May 2010 12:34:41 +0000 |
| Subject: | Bug #51821 [NEW]: configure fails to pick up a custom prefix for libevent | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-150465@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.3.2
Package: FPM related
Bug Type: Bug
Bug description:configure fails to pick up a custom prefix for libevent
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 bug report at http://bugs.php.net/bug.php?id=51821&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51821&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51821&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51821&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51821&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51821&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51821&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51821&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51821&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51821&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51821&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51821&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51821&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51821&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51821&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51821&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51821&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51821&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51821&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51821&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51821&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51821&r=mysqlcfg