Skip to content

Cannot build 3.1.6 #35

@svaningelgem

Description

@svaningelgem

TL;DR: I tried to build mailparse-3.1.6 however it fails with #error The mailparse extension requires the mbstring extension!

system: Debian GNU/Linux 12 (bookworm)
php: PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)

  • extraction: ok
  • phpize: ok
Configuring for:
PHP Api Version:         20220829
Zend Module Api No:      20220829
Zend Extension Api No:   420220829
configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:165: You should run autoupdate.
build/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.ac:165: the top level
  • configure: ok
checking libmbfl headers... found in /usr/include/php/20220829/ext/mbstring
  • make: error

I think the issue is because "HAVE_MBSTRING" is not set.

Adding #define HAVE_MBSTRING 1 into the generated config.h file makes everything compile correctly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions