[MacPorts] #22660: Can't install pecl/mailparse with MacPorts' php5-mbstring
MacPorts
noreply at macports.org
Mon Nov 23 19:30:24 PST 2009
#22660: Can't install pecl/mailparse with MacPorts' php5-mbstring
---------------------------------+------------------------------------------
Reporter: andy@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone: MacPorts 1.8.2
Component: ports | Version: 1.8.1
Keywords: | Port:
---------------------------------+------------------------------------------
The PECL/mailparse library compiles against the mbstring extension,
*including the headers* (not just the .so).
== Reproduce ==
{{{
# port install php5-mbstring
# pecl install mailparse
-------
pecl/mailparse requires PHP extension "mbstring"
No valid packages found
install failed
}}}
When trying to compile manually, via phpize / make:
{{{
In file included from
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:27:
/private/tmp/pear/download/mailparse-2.1.5/php_mailparse.h:100:49: error:
ext/mbstring/libmbfl/mbfl/mbfilter.h: No such file or directory
In file included from
/private/tmp/pear/download/mailparse-2.1.5/php_mailparse.h:109,
from
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:27:
/private/tmp/pear/download/mailparse-2.1.5/php_mailparse_mime.h:68: error:
expected specifier-qualifier-list before ‘mbfl_convert_filter’
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c: In function
‘zif_mailparse_determine_best_xfer_encoding’:
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:884: error:
variable ‘bestenc’ has initializer but incomplete type
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:884: error:
‘mbfl_no_encoding_7bit’ undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:884: error: (Each
undeclared identifier is reported only once
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:884: error: for
each function it appears in.)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:884: error: storage
size of ‘bestenc’ isn’t known
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:900: error:
‘mbfl_no_encoding_8bit’ undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:902: error:
‘mbfl_no_encoding_base64’ undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:912: error:
‘mbfl_no_encoding_qprint’ undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:915: warning: cast
to pointer from integer of different size
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c: In function
‘zif_mailparse_stream_encode’:
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:950: error: storage
size of ‘enc’ isn’t known
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:951: error:
‘mbfl_convert_filter’ undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:951: error: ‘conv’
undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:969: error:
‘mbfl_no_encoding_invalid’ undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:980: error:
‘mbfl_no_encoding_8bit’ undeclared (first use in this function)
/private/tmp/pear/download/mailparse-2.1.5/mailparse.c:988: error:
‘mbfl_no_encoding_qprint’ undeclared (first use in this function)
}}}
== Solution ==
Allow mbstring to be compiled directly into PHP5 with --enable-mbstring.
(Pre-php5extension behavior?)
Admittedly, mailparse is one of the few (only?) PECL packages that
requires an extension in this manner, but it's useful enough.
--
Ticket URL: <http://trac.macports.org/ticket/22660>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list