[php-src] Issue #11012: Compilation errors

From: Date: Tue, 04 Apr 2023 09:42:41 +0000
Subject: [php-src] Issue #11012: Compilation errors
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244096@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11012 Author: nj00001 ### Description A compilation error occurs when the following configuration is used ``` CFLAGS=-flto=full CXXFLAGS=-flto=full CC=clang CXX=clang RANLIB=llvm-ranlib-14 AR=llvm-ar-14 ld=afl-ld-lto ./configure --with-pic --disable-all ``` The following error is displayed when making: ``` /usr/bin/ld: /tmp/lto-llvm-6693e2.o: in function `resolve_base64_encode': ld-temp.o:(.text.resolve_base64_encode+0x34): undefined reference to `php_base64_encode_default' /usr/bin/ld: /tmp/lto-llvm-6693e2.o: in function `resolve_base64_decode': ld-temp.o:(.text.resolve_base64_decode+0x34): undefined reference to `php_base64_decode_ex_default' /usr/bin/ld: /tmp/lto-llvm-6693e2.o: in function `resolve_addslashes': ld-temp.o:(.text.resolve_addslashes+0x1b): undefined reference to `php_addslashes_default' /usr/bin/ld: /tmp/lto-llvm-6693e2.o: in function `resolve_stripslashes': ld-temp.o:(.text.resolve_stripslashes+0x1b): undefined reference to `php_stripslashes_default' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Makefile:269: sapi/cli/php] Error 1 ``` ### PHP Version PHP 8.x ### Operating System _No response_

« previous php.bugs (#244096) next »