|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62621 config.m4 library/include search issues
Submitted: 2012-07-20 17:50 UTC Modified: 2013-10-24 08:37 UTC
Avg. Score:3.2 ± 0.6
Reproduced:2 of 5 (40.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: Assigned: laruence (profile)
Status: Closed Package: lua (PECL)
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2012-07-20 17:50 UTC]
On systems (Ubuntu) with multiple versions of lua installed to


or other configurations - the config.m4 does not detect the correct locations for those includes and libraries correctly

this makes pecl install fail without workarounds via symlinks


configure (last revision 2012-07-20 22:59 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-20 17:50 UTC]
-Assigned To: +Assigned To: laruence
 [2012-07-20 18:04 UTC]
Oh - and there's also an issue of naming for libraries - some libs are using liblua{version}.a (silly ubuntu) as well, so the detection needs to be a little more flexible there as well
 [2012-07-20 22:59 UTC]
The following patch has been added/updated:

Patch Name: configure
Revision:   1342825172
 [2012-07-20 23:08 UTC]
Yeah, the config.m4 had some major issues - on linux you don't need the lua.a file to do the linking - it's better to use the check_library macro

The attached patch will fall back to detecting "versioned" lua libraries as well which should cover ubuntu/debian weirdness as well
 [2013-10-23 17:13 UTC]
This patch also solves configure on Fedora which use

Please apply it
 [2013-10-24 08:37 UTC]
-Status: Assigned +Status: Closed
 [2013-10-24 08:37 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 07:01:25 2023 UTC