php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58264 Error in config.m4 cause "wrong magic lib version or lib not found"
Submitted: 2008-07-06 16:03 UTC Modified: 2012-06-11 13:49 UTC
From: joakimsen at gmai dot dot com Assigned: felipe (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.5 OS: openSUSE 10.3
Private report: No CVE-ID: None
 [2008-07-06 16:03 UTC] joakimsen at gmai dot dot com
Description:
------------
fileinfo does not compile either using 'pecl install fileinfo' or manually downloading the package and trying to compile.

Always reports:

>"configure: error: wrong magic lib version or lib not found"
>correct magiclib from RPM is installed.

Despite the fact that magliclib and magiclib-devel are installed.

PHP version is 5.2.6.

In order to fix this error (which if you search google seems to be a common issue with many distributions) one must ... "edit config.m4 replace all [occurrences] of the pattern "/lib" with $PHP_LIBDIR."

I must credit Cristian "Elvigia" Rodriguez of the SuSE team for the solution.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-11 13:49 UTC] felipe@php.net
Fileinfo is in the core now.
 [2012-06-11 13:49 UTC] felipe@php.net
-Status: Open +Status: Closed -Package: Fileinfo +Package: *General Issues -Assigned To: +Assigned To: felipe
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 19:01:34 2025 UTC