php8.3-mailparse package is broken on fresh ubuntu 24.04 install.

There is a temporary fix, building the extension from source
(taken from 
https://github.com/php-mime-mail-parser/php-mime-mail-parser?tab=readme-ov-file#from-source)


git clone https://github.com/php/pecl-mail-mailparse.git
cd pecl-mail-mailparse
phpize
./configure
sed -i 's/#if\s!HAVE_MBSTRING/#ifndef MBFL_MBFILTER_H/' ./mailparse.c
make
sudo mv modules/mailparse.so /usr/lib/php/20230831/
echo "extension=mailparse.so" | sudo tee 
/etc/php/7.1/mods-available/mailparse.ini
sudo phpenmod mailparse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2063334

Title:
  PHP Warning:  PHP Startup: Unable to load dynamic library
  'mailparse.so' (tried: /usr/lib/php/20230831/mailparse.so
  (/usr/lib/php/20230831/mailparse.so: undefined symbol:
  mbfl_name2no_encoding), /usr/lib/php/20230831/mailparse.so.so
  (/usr/lib/php/20230831/mailparse.so.so: cannot open shared object
  file: No such file or directory)) in Unknown on line 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php-mailparse/+bug/2063334/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to