php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81214 Can't compile mailparse for PHP 8.1
Submitted: 2021-07-01 12:14 UTC Modified: 2021-07-09 07:06 UTC
From: mlocati at gmail dot com Assigned: remi (profile)
Status: Closed Package: mailparse (PECL)
PHP Version: 8.1.0alpha2 OS: Debian 10 (buster)
Private report: No CVE-ID: None
 [2021-07-01 12:14 UTC] mlocati at gmail dot com
Description:
------------
Here's the output of the compilation:

Configuring for:
PHP Api Version:         20201009
Zend Module Api No:      20201009
Zend Extension Api No:   420201009
/path/mailparse-3.1.1/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20201009
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable mailparse support... yes, shared
checking libmbfl headers... found in /usr/local/include/php/ext/mbstring
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
2:
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
make
/bin/bash /tools/libtool --mode=compile cc -I. -I/path/mailparse-3.1.1 -I/tools/include -I/tools/main -I/path/mailparse-3.1.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2    -c /path/mailparse-3.1.1/mailparse.c -o mailparse.lo  -MMD -MF mailparse.dep -MT mailparse.lo
mkdir .libs
 cc -I. -I/path/mailparse-3.1.1 -I/tools/include -I/tools/main -I/path/mailparse-3.1.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /path/mailparse-3.1.1/mailparse.c -MMD -MF mailparse.dep -MT mailparse.lo  -fPIC -DPIC -o .libs/mailparse.o
/path/mailparse-3.1.1/mailparse.c: In function 'mailparse_mimemessage_extract':
/path/mailparse-3.1.1/mailparse.c:416:122: error: macro "php_stream_memory_open" passed 3 arguments, but takes just 2
   srcstream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(&part->source.zval), Z_STRLEN_P(&part->source.zval));
                                                                                                                          ^
/path/mailparse-3.1.1/mailparse.c:416:15: error: 'php_stream_memory_open' undeclared (first use in this function); did you mean '_php_stream_memory_open'?
   srcstream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(&part->source.zval), Z_STRLEN_P(&part->source.zval));
               ^~~~~~~~~~~~~~~~~~~~~~
               _php_stream_memory_open
/path/mailparse-3.1.1/mailparse.c:416:15: note: each undeclared identifier is reported only once for each function it appears in
/path/mailparse-3.1.1/mailparse.c:436:55: error: macro "php_stream_memory_get_buffer" passed 2 arguments, but takes just 1
    buf = php_stream_memory_get_buffer(deststream, &len);
                                                       ^
/path/mailparse-3.1.1/mailparse.c:436:10: error: 'php_stream_memory_get_buffer' undeclared (first use in this function); did you mean '_php_stream_memory_get_buffer'?
    buf = php_stream_memory_get_buffer(deststream, &len);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
          _php_stream_memory_get_buffer
/path/mailparse-3.1.1/mailparse.c: In function 'zim_mimemessage_extract_uue':
/path/mailparse-3.1.1/mailparse.c:505:122: error: macro "php_stream_memory_open" passed 3 arguments, but takes just 2
   srcstream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(&part->source.zval), Z_STRLEN_P(&part->source.zval));
                                                                                                                          ^
/path/mailparse-3.1.1/mailparse.c:505:15: error: 'php_stream_memory_open' undeclared (first use in this function); did you mean '_php_stream_memory_open'?
   srcstream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(&part->source.zval), Z_STRLEN_P(&part->source.zval));
               ^~~~~~~~~~~~~~~~~~~~~~
               _php_stream_memory_open
/path/mailparse-3.1.1/mailparse.c:541:57: error: macro "php_stream_memory_get_buffer" passed 2 arguments, but takes just 1
      buf = php_stream_memory_get_buffer(deststream, &len);
                                                         ^
/path/mailparse-3.1.1/mailparse.c:541:12: error: 'php_stream_memory_get_buffer' undeclared (first use in this function); did you mean '_php_stream_memory_get_buffer'?
      buf = php_stream_memory_get_buffer(deststream, &len);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
            _php_stream_memory_get_buffer
/path/mailparse-3.1.1/mailparse.c: In function 'zim_mimemessage_enum_uue':
/path/mailparse-3.1.1/mailparse.c:587:121: error: macro "php_stream_memory_open" passed 3 arguments, but takes just 2
   instream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(&part->source.zval), Z_STRLEN_P(&part->source.zval));
                                                                                                                         ^
/path/mailparse-3.1.1/mailparse.c:587:14: error: 'php_stream_memory_open' undeclared (first use in this function); did you mean '_php_stream_memory_open'?
   instream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(&part->source.zval), Z_STRLEN_P(&part->source.zval));
              ^~~~~~~~~~~~~~~~~~~~~~
              _php_stream_memory_open
/path/mailparse-3.1.1/mailparse.c: In function 'mailparse_do_extract':
/path/mailparse-3.1.1/mailparse.c:1311:102: error: macro "php_stream_memory_open" passed 3 arguments, but takes just 2
   srcstream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(filename), Z_STRLEN_P(filename));
                                                                                                      ^
/path/mailparse-3.1.1/mailparse.c:1311:15: error: 'php_stream_memory_open' undeclared (first use in this function); did you mean '_php_stream_memory_open'?
   srcstream = php_stream_memory_open(TEMP_STREAM_READONLY, Z_STRVAL_P(filename), Z_STRLEN_P(filename));
               ^~~~~~~~~~~~~~~~~~~~~~
               _php_stream_memory_open
/path/mailparse-3.1.1/mailparse.c:1345:61: error: macro "php_stream_memory_get_buffer" passed 2 arguments, but takes just 1
    membuf = php_stream_memory_get_buffer(deststream, &memlen);
                                                             ^
/path/mailparse-3.1.1/mailparse.c:1345:13: error: 'php_stream_memory_get_buffer' undeclared (first use in this function); did you mean '_php_stream_memory_get_buffer'?
    membuf = php_stream_memory_get_buffer(deststream, &memlen);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
             _php_stream_memory_get_buffer
make: *** [Makefile:206: mailparse.lo]



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-07-01 12:35 UTC] remi@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: remi
 [2021-07-09 06:49 UTC] mlocati at gmail dot com
@remi what about publishing a new version on the PECL website? The latest version is 3.1.1 (published on 2020-09-16) - see https://pecl.php.net/package/mailparse
 [2021-07-09 07:06 UTC] remi@php.net
I plan to publish a new release when 8.1 API will be final (RC time in September), to be sure that new release is really compatible.
 [2021-09-02 06:42 UTC] mlocati at gmail dot com
Since mailparse version 3.1.2 has been published, this bug can be closed, isn't it?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC