Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2024 11:32:11 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        freebsd-ports@freebsd.org
Subject:   Re: ld-elf.so.1: /usr/local/lib/php/20210902/mbstring.so: Undefined symbol "pcre2_compile_8"
Message-ID:  <8f8cda9f-cfe9-442f-acf3-d32d832d8d48@quip.cz>
In-Reply-To: <ZlCc2KVjMvDX791N@int21h>
References:  <ZlCc2KVjMvDX791N@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24/05/2024 15:57, void wrote:
> Hello,
> 
> This has started happening again [ possibly related to
> https://lists.freebsd.org/archives/freebsd-ports/2023-December/005009.html it looks similar ]
> 
> Differences:
> php-fpm and *not* mod_php
> php81-8.1.28
> apache24-2.4.59
> 13.2-RELEASE-p11
> To "fix" the problem, i force rebuilt just php81-mbstring-8.1.28 and 
> pcre2-10.43 and reinstalled. apache24 was still able to run.
> Service restart php-fpm was all OK.
> 
> About 12 hrs later (when apache does a graceful restart) it failed to
> restart, giving the error
> 
> "ld-elf.so.1: /usr/local/lib/php/20210902/mbstring.so: Undefined symbol 
> "php_pcre2_compile"" in httpd-errors.

Are you sure you didn't had mod_php installed and configured in 
httpd.conf? If PHP runs as php-fpm Apache cannot see these error and 
cannot failed to (re)start because it is only connecting to TCP port of 
unix domain socket of running PHP daemon.

Kind regards
Miroslav Lachman



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8f8cda9f-cfe9-442f-acf3-d32d832d8d48>