Configure fails to locate libevent.a (5.3.1 Patch)

Bug #501269 reported by segabond
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PHP-FPM
New
Undecided
Unassigned

Bug Description

Not sure how it is on other distributions, but on gentoo LIB paths miss trailing slashes so the following chunk fails to find libevent

                        for search_path in $sys_lib_search_path_spec ; do
                                if test -f "$search_path$libevent_a" ; then
                                        LIBEVENT_LIBS="$search_path$libevent_a"
                                        break;
                                fi
                        done

After replacing it with

                        for search_path in $sys_lib_search_path_spec ; do
                                if test -f "$search_path/$libevent_a" ; then
                                        LIBEVENT_LIBS="$search_path/$libevent_a"
                                        break;
                                fi
                        done

it works

Revision history for this message
The Pixel Developer (thepixeldeveloper) wrote :

I can confirm this bug affects PHP 5.3.1 with the latest launchpad release of PHP-FPM. Ubuntu Karmic x64

summary: - configure fails for php-5.3.1
+ Configure fails to locate libevent.a (5.3.1 Patch)
tags: added: 5.3.1 configure integrated libevent.a patch
Revision history for this message
dreamcat4 (dreamcat4) wrote :

Well done for finding the bug. Although you shouldn't be patching configure like that, rather the m4 macros and re-generate configure. Tony is now in charge of taking patches to php-fpm. He appears to have re-written this part of the code and it may already be fixed. You'll need to checkout Tony's SVN branch and re-test on Gentoo, to make sure of that.

The official PHP SVN branch will be the next version of FPM going forwards, with many valuable new features. So there's few benefits to patch the old repository.

See the PHP Bug 49707 for a link to SVN Branch and Tony's email address:

http://bugs.php.net/bug.php?id=49707

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.