php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56722 mailparse won't compile
Submitted: 2005-12-13 13:10 UTC Modified: 2008-03-23 21:57 UTC
Votes:5
Avg. Score:4.8 ± 0.4
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:0 (0.0%)
From: rick at revenew dot nl Assigned:
Status: No Feedback Package: mailparse (PECL)
PHP Version: 5.1.2 OS: Debian Sarge x86_64
Private report: No CVE-ID: None
 [2005-12-13 13:10 UTC] rick at revenew dot nl
Description:
------------
mailparse won't compile, it's missing mbfilter headers. php is compiled with --enable-mbstring and --with-libmfl.

It looks identical to bug 3516 (http://pecl.php.net/bugs/bug.php?id=3516) which is closed.

Reproduce code:
---------------
see description

Expected result:
----------------
a compiled mailparse module

Actual result:
--------------
In file included from /home/rick/mailparse-2.1.1/mailparse.c:27:
/home/rick/mailparse-2.1.1/php_mailparse.h:86:49: ext/mbstring/libmbfl/mbfl/mbfilter.h: No such file or directory
In file included from /home/rick/mailparse-2.1.1/php_mailparse.h:95,
                 from /home/rick/mailparse-2.1.1/mailparse.c:27:
/home/rick/mailparse-2.1.1/php_mailparse_mime.h:68: error: syntax error before "mbfl_convert_filter"
/home/rick/mailparse-2.1.1/php_mailparse_mime.h:68: warning: no semicolon at end of struct or union
/home/rick/mailparse-2.1.1/php_mailparse_mime.h:82: error: syntax error before '}' token
/home/rick/mailparse-2.1.1/mailparse.c: In function `mimepart_dtor':
/home/rick/mailparse-2.1.1/mailparse.c:120: error: dereferencing pointer to incomplete type
/home/rick/mailparse-2.1.1/mailparse.c:120: error: dereferencing pointer to incomplete type


etc...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-13 13:13 UTC] pierre dot php at gmail dot com
Set to the correct package.
 [2006-01-17 06:10 UTC] rick at revenew dot nl
Is anyone looking into this? It just tested with PHP 5.1.2 and  the bug still exists.
 [2006-01-17 10:13 UTC] rick at revenew dot nl
Ok I just copied the mbstring directory from the php source tree to the includes dir. Now mailparse seems to compile fine, but the compiled module won't load:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5-ext/mailparse.so' - /usr/local/php5-ext/mailparse.so: undefined symbol: OnUpdateString in Unknown on line 0
 [2006-01-24 04:28 UTC] adele at kaluma dot com
I also had the same problem compiling mailparse, in the end I got it working by doing the following:
1.  Im working on php 5.1.1 and I had to recompile php with the --enable-mbstring=all option in order to get mbstring included in php (its not included by default, and mailparse is dependant on this extension)
2.  I created a folder named ext within the mailparse source and copied the mbstring folder from php source into the ext folder I created earlier
3.  Then I ran ./configure + make + make install in the mailparse source folder and it compiled
4.  Added the extension in the php.ini file and restarted apache
 [2006-01-24 04:42 UTC] rick at revenew dot nl
I tried your solution, it leaves me with a compiled mailparse module like I had before. This module won't load either. It gives me the same error as before: 

[24-Jan-2006 10:43:55] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5-ext/mailparse.so' - /usr/local/php5-ext/mailparse.so: undefined symbol: OnUpdateString in Unknown on line 0
 [2006-02-20 07:27 UTC] rick at revenew dot nl
Ok, I got mailparse up & running again. The thing that was causing this is the --enable-versioning option in the php configure line. Without this option mailparse loads fine.
 [2006-10-10 15:59 UTC] judas dot iscariote at gmail dot com
this is a bug in the way the php mbstring extension install the headers, according to my test, the problem has been solved in PHP 5.2.0 RC5.
 [2007-09-27 14:59 UTC] stephen at vitrue dot com
For others having the same problem and finding this link through google/etc Rick's suggestion, "[2006-01-17 15:13 UTC] rick at revenew dot nl", worked perfectly for me.

Thanks Rick!
 [2007-10-26 18:58 UTC] admin at anonymous dot com
I tried --with-mbstring=all but after that mailparse still doesn't load. I get the following.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429/mailparse.so: undefined symbol: empty_string in Unknown on line 0

I am using php 5.2.2
 [2008-01-08 15:12 UTC] shire@php.net
Is this still an outstanding issue with the latest php and mailparse?  I don't currently have a reproduction for this so if someone is still experiencing a problem with this please let me know and I'll do my best to help resolve the problem.
 [2008-03-23 21:57 UTC] shire@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC