Bug 162629 - mailparse extension gives undefined symbol: mbfl_convert_filter_new
mailparse extension gives undefined symbol: mbfl_convert_filter_new
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: php-pecl-mailparse (Show other bugs)
4
All Linux
medium Severity low
: ---
: ---
Assigned To: Matthias Saou
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-06 18:16 EDT by Tom Fishwick
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: 2.1.1-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-11-07 08:16:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Tom Fishwick 2005-07-06 18:16:21 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
Installed php-mbstring-5.0.4-10.3, then installed php-pecl-mailparse-2.1-2

executing 'php -v' gives

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mailparse.so' - /usr/lib/php/modules/mailparse.so: undefined symbol: mbfl_convert_filter_new in Unknown on line 0

putting "extension=mbstring.so" at the top of /etc/php.ini fixes the problem. So it seem to be a simple extension order loading issue.

Version-Release number of selected component (if applicable):
php-pecl-mailparse-2.1-2 php-mbstring-5.0.4-10.3 php-5.0.4-10.3

How reproducible:
Always

Steps to Reproduce:
1. install php-pecl-mailparse
2. run "php -v"
  

Actual Results:  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mailparse.so' - /usr/lib/php/modules/mailparse.so: undefined symbol: mbfl_convert_filter_new in Unknown on line 0
PHP 5.0.4 (cli) (built: Jul  4 2005 10:39:59)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies


Expected Results:  PHP 5.0.4 (cli) (built: Jul  4 2005 10:39:59)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies

Additional info:
Comment 1 Joe Orton 2005-07-07 05:34:02 EDT
There's no magic fix for this.  php-pecl-mailparse package should bundle an .ini
file which will sort alphabetically after the mbstring.ini; if it does that this
should work deterministically.

Possibly we should move to using a numeric prefix for the ini filenames as this
kind of thing becomes more common.
Comment 2 Adam J. Griff, Ph.D. 2005-08-25 14:54:06 EDT
Another fix that works but not the best solution.
edit /etc/php.d/mbstring.ini and comment out the extension
edit /etc/php.d/mailparse.ini and add 
extension=mbstring.so

If you don't comment out mbstring.ini you get a duplicate load error.
Comment 3 Joe Orton 2005-09-08 06:25:11 EDT
This needs to be fixed in the mailparse package, either way.
Comment 4 Matthias Saou 2005-09-08 06:51:08 EDT
Yup, exactly. I don't recall exactly when this changed, but this problem
appeared only recently, possibly when mbstring got split out as a shared module.
I thought I already had fixed this, but maybe I didn't yet commit the change,
which I'll then do very shortly.
Comment 5 Matthias Saou 2005-11-07 08:16:03 EST
Sorry for the delay. I thought I had already fixed this, but it turns out that I
hadn't commited the change. It is now done at last.

Note You need to log in before you can comment on or make changes to this bug.