php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36136 Mailparse won't compile
Submitted: 2006-01-23 12:31 UTC Modified: 2007-04-04 18:27 UTC
From: rick at revenew dot nl Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.2 OS: Debian Sarge x86_64
Private report: No CVE-ID: None
 [2006-01-23 12:31 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 PECL bug 3516
(http://pecl.php.net/bugs/bug.php?id=3516) which is closed.

This bug is also reported on the PECL bugsystem (bug 6239).

Reproduce code:
---------------
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...


I tried copying 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

Expected result:
----------------
A working mailparse module

Actual result:
--------------
Mailparse won't compile, after copying mbstring headers by hand, a module compiles, but it won't load.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-23 12:37 UTC] tony2001@php.net
No need to report it twice.
The report in PECL bug system is enough.
 [2006-01-23 12:43 UTC] rick at revenew dot nl
The bug in was reported over a month ago in the PECL bug system, and there was no response at all. I was hoping this would be read a bit more actively.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 04:01:27 2024 UTC