php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56306 Cannot compile mailparse
Submitted: 2005-02-18 05:58 UTC Modified: 2005-02-28 00:24 UTC
From: sebastian@php.net Assigned: wez
Status: Closed Package: mailparse (PECL)
PHP Version: 5.0.3 OS: Linux
Private report: No CVE-ID:
 [2005-02-18 05:58 UTC] sebastian@php.net
Description:
------------
mailparse-2.1 does not build with PHP 5. The ext/mbstring/libmbfl/mbfl/mbfilter.h header is not found.

It builds fine with PHP 4.3.10.

Actual result:
--------------
/bin/sh /home/sb/mailparse-2.1/libtool --mode=compile gcc  -I. -I/home/sb/mailparse-2.1 -DPHP_ATOM_INC -I/home/sb/mailparse-2.1/include -I/home/sb/mailparse-2.1/main -I/home/sb/mailparse-2.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM  -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /home/sb/mailparse-2.1/mailparse.c -o mailparse.lo
mkdir .libs
 gcc -I. -I/home/sb/mailparse-2.1 -DPHP_ATOM_INC -I/home/sb/mailparse-2.1/include -I/home/sb/mailparse-2.1/main -I/home/sb/mailparse-2.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /home/sb/mailparse-2.1/mailparse.c  -fPIC -DPIC -o .libs/mailparse.o
In file included from /home/sb/mailparse-2.1/mailparse.c:27:
/home/sb/mailparse-2.1/php_mailparse.h:86:49: ext/mbstring/libmbfl/mbfl/mbfilter.h: No such file or directory
In file included from /home/sb/mailparse-2.1/php_mailparse.h:95,
                 from /home/sb/mailparse-2.1/mailparse.c:27:
/home/sb/mailparse-2.1/php_mailparse_mime.h:68: error: parse error before "mbfl_convert_filter"
/home/sb/mailparse-2.1/php_mailparse_mime.h:68: warning: no semicolon at end of struct or union
/home/sb/mailparse-2.1/php_mailparse_mime.h:82: error: parse error before '}' token
/home/sb/mailparse-2.1/mailparse.c: In function `mimepart_dtor':
/home/sb/mailparse-2.1/mailparse.c:120: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:120: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:121: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `mailparse_mimemessage_export':
/home/sb/mailparse-2.1/mailparse.c:209: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:212: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_mimemessage':
/home/sb/mailparse-2.1/mailparse.c:241: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:255: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:257: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:258: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:259: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:266: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:274: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:274: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:277: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:279: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:280: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:281: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:285: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:286: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:286: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:287: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:291: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_mimemessage_get_child_count':
/home/sb/mailparse-2.1/mailparse.c:335: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_mimemessage_get_parent':
/home/sb/mailparse-2.1/mailparse.c:344: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:345: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `mailparse_mimemessage_extract':
/home/sb/mailparse-2.1/mailparse.c:411: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:412: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:412: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:414: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:442: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_mimemessage_extract_uue':
/home/sb/mailparse-2.1/mailparse.c:498: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:499: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:499: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:501: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:510: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:511: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:511: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:511: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:554: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_mimemessage_enum_uue':
/home/sb/mailparse-2.1/mailparse.c:580: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:581: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:581: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:583: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:592: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:593: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:593: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:593: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:645: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_determine_best_xfer_encoding':
/home/sb/mailparse-2.1/mailparse.c:881: error: variable `bestenc' has initializer but incomplete type
/home/sb/mailparse-2.1/mailparse.c:881: error: `mbfl_no_encoding_7bit' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c:881: error: (Each undeclared identifier is reported only once
/home/sb/mailparse-2.1/mailparse.c:881: error: for each function it appears in.)
/home/sb/mailparse-2.1/mailparse.c:881: error: storage size of 'bestenc' isn't known
/home/sb/mailparse-2.1/mailparse.c:897: error: `mbfl_no_encoding_8bit' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c:899: error: `mbfl_no_encoding_base64' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c:909: error: `mbfl_no_encoding_qprint' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_stream_encode':
/home/sb/mailparse-2.1/mailparse.c:947: error: storage size of 'enc' isn't known
/home/sb/mailparse-2.1/mailparse.c:948: error: `mbfl_convert_filter' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c:948: error: `conv' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c:966: error: `mbfl_no_encoding_invalid' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c:977: error: `mbfl_no_encoding_8bit' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c:985: error: `mbfl_no_encoding_qprint' undeclared (first use in this function)
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_msg_parse_file':
/home/sb/mailparse-2.1/mailparse.c:1072: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_msg_create':
/home/sb/mailparse-2.1/mailparse.c:1112: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `extract_part':
/home/sb/mailparse-2.1/mailparse.c:1213: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1213: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1216: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1218: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1218: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1218: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `mailparse_get_part_data':
/home/sb/mailparse-2.1/mailparse.c:1415: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1425: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1429: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1430: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1434: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1435: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1439: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1440: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1444: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1445: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1447: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1448: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1450: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1451: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1455: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1456: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c: In function `zif_mailparse_msg_get_part':
/home/sb/mailparse-2.1/mailparse.c:1516: error: dereferencing pointer to incomplete type
/home/sb/mailparse-2.1/mailparse.c:1517: error: dereferencing pointer to incomplete type
make: *** [mailparse.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-27 13:59 UTC] nickstenning+peclbugs at gmail dot com
Is this actively being worked on? I hate to pressure you guys - you do a fantastic job - but I run a production server which I have recently upgraded to PHP5, and a client is bugging me for mailparse support. Currently this is the only issue stopping me pleasing him.

Regards,
Nick
 [2005-02-27 23:50 UTC] wez@php.net
Works for me; make sure you --enable-mbstring when you configure PHP, and don't forget to make install.
 [2005-02-28 00:24 UTC] wez@php.net
Turns out that PHP 5.x forgot to install the mbstring headers.
I'm fixing this in the core now, download the next PHP 5 stable snapshot to try it out.
 [2005-12-13 10:23 UTC] rick at revenew dot nl
Looks like the exact same thing is happening in php5.1-200512121530
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 19:01:53 2014 UTC