Error at update php 8.1.21 to 8.1.28

urgido

Verified User
Joined
Oct 28, 2008
Messages
431
Location
MX
Hi
I am trying to update php 8.1.21 to 8.1.28 but I got the following error:

make: *** [Makefile:325: sapi/fpm/php-fpm] Error 1
install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-8.1.28.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.pEBXC005xl.php-8.1.28.tar.gz'

Casually, the error only appears on the only box that were don't have CloudLinux.

Any clue on how I can fix it?
Thanks
 
@zEitEr thanks for your reply.

Here is some of the last of my log.
/usr/bin/ld: Zend/zend_exceptions.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_strtod.o: relocation R_X86_64_32S against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_gc.o: relocation R_X86_64_32S against symbol `zend_objects_destroy_object' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_closures.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_weakrefs.o: relocation R_X86_64_32 against symbol `executor_globals' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_string.o: relocation R_X86_64_32 against symbol `compiler_globals' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_signal.o: relocation R_X86_64_32S against symbol `zend_signal_globals' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_generators.o: relocation R_X86_64_32S against symbol `executor_globals' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_virtual_cwd.o: relocation R_X86_64_32S against hidden symbol `cwd_globals' can not be used when making a PIE object
/usr/bin/ld: Zend/zend_ast.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_objects.o: relocation R_X86_64_32S against symbol `executor_globals' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_object_handlers.o: relocation R_X86_64_32S against symbol `zend_std_get_properties' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_objects_API.o: relocation R_X86_64_32S against symbol `zend_objects_destroy_object' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_inheritance.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_smart_str.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_gdb.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_observer.o: relocation R_X86_64_32 against hidden symbol `zend_observers_fcall_list' can not be used when making a PIE object
/usr/bin/ld: Zend/zend_system_id.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_enum.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/zend_fibers.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_optimizer.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/pass1.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/optimize_func_calls.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/block_pass.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/compact_literals.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_cfg.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_dfg.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/dfa_pass.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_ssa.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_inference.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_func_info.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_call_graph.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/sccp.o: relocation R_X86_64_32 against symbol `executor_globals' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/scdf.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/dce.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/escape_analysis.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Zend/Optimizer/zend_dump.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: main/internal_functions_cli.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: main/fastcgi.o: relocation R_X86_64_32S against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_children.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_clock.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_conf.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_env.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_events.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_log.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_main.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_php.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_php_trace.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_process_ctl.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_request.o: relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_shm.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_scoreboard.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_signals.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_sockets.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_status.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_stdio.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_unix.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_worker_pool.o: relocation R_X86_64_32 against `.text' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/zlog.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/events/select.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/events/poll.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/events/epoll.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_trace_ptrace.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: sapi/fpm/fpm/fpm_systemd.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [Makefile:325: sapi/fpm/php-fpm] Error 1
install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-8.1.28.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.pEBXC005xl.php-8.1.28.tar.gz'
 
Linux HOSTNAME_HERE 4.18.0-513.18.2.el8_9.x86_64 #1 SMP Sat Mar 30 06:10:41 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux. It's a VPS over Proxmox node.
 
Try yum update first, then update DA to current/stable there must be 8.1.29 now.

Last metadata expiration check: 0:49:39 ago on mar 11 jun 2024 03:31:14 EDT.
Dependencies resolved.
Nothing to do.
Complete!
 
After DA update - it still fails with 8.1.29? maybe you have some customizations for PHP or options.conf?
 
Could you post full logs output in spoiler?

logs here

becarefully to remove any sensitive data.
 
The text is too long to post as Spoiler. and for attachment too. I am looking for an alternative.
 
first lines:
configure: WARNING: unrecognized options: --enable-json, --enable-openssl, --enable-curl
make me think there some customizations for php was made, check if there custom dir in /custombuild
 
first lines:
configure: WARNING: unrecognized options: --enable-json, --enable-openssl, --enable-curl
make me think there some customizations for php was made, check if there custom dir in /custombuild

You're right. After delete a file called configure.php81 in php folder under custom directory, custombuild was able to compile php 8.1. Reading some mailing lists the error was present because there some flag options in php compiled per default.

Thanks a lot for the tip. Now, PHP is up-to-date
 
You're right. After delete a file called configure.php81 in php folder under custom directory, custombuild was able to compile php 8.1. Reading some mailing lists the error was present because there some flag options in php compiled per default.

Thanks a lot for the tip. Now, PHP is up-to-date

The question is who put the file in the custom directory.
 
Back
Top