Opened 11 months ago
Closed 10 months ago
#71731 closed defect (duplicate)
php74: cant rebuild
| Reported by: | EfrosIonelu (Efros Ionelu) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.10.5 |
| Keywords: | Cc: | mohd-akram (Mohamed Akram) | |
| Port: | php74 |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
MacPorts base version 2.10.5 installed, MacPorts base version 2.10.5 available. ---> MacPorts base is already the latest version ---> Updating the ports tree The ports tree has been updated. sudo port upgrade icu ---> Updating database of binaries ---> Scanning binaries for linking errors ---> Found 11 broken files, matching files to ports ---> Found 3 broken ports, determining rebuild order You can always run 'port rev-upgrade' again to fix errors. The following ports will be rebuilt: php74-intl @7.4.33 php82-intl @8.2.24 postgresql16 @16.6 Continue? [Y/n]: y ---> Computing dependencies for php74 ---> Fetching archive for php74 ---> Attempting to fetch php74-7.4.33_2+libedit.darwin_24.arm64.tbz2 from https://vie.at.packages.macports.org/php74 ---> Attempting to fetch php74-7.4.33_2+libedit.darwin_24.arm64.tbz2 from https://fra.de.packages.macports.org/php74 ---> Attempting to fetch php74-7.4.33_2+libedit.darwin_24.arm64.tbz2 from https://packages.macports.org/php74 ---> Building php74 Error: Failed to build php74: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74/main.log for details. Error: rev-upgrade failed: Error rebuilding php74-intl Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Every where i see this error
PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so (dlopen(/opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so, 0x0009): Library not loaded: /opt/local/lib/libicuio.74.dylib Referenced from: <A304BB2F-92B8-30A6-953A-272E7DD2827D> /opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so Reason: tried: '/opt/local/lib/libicuio.74.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libicuio.74.dylib' (no such file), '/opt/local/lib/libicuio.74.dylib' (no such file)), /opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so.so (dlopen(/opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so.so, 0x0009): tried: '/opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so.so' (no such file), '/opt/local/lib/php82/extensions/no-debug-non-zts-20220829/intl.so.so' (no such file))) in Unknown on line 0
Change History (5)
comment:1 Changed 11 months ago by mohd-akram (Mohamed Akram)
| Cc: | ryandesign mohd-akram added |
|---|---|
| Port: | php74 added |
comment:2 Changed 11 months ago by mohd-akram (Mohamed Akram)
| Summary: | cant rebuild php74-intl → php74: cant rebuild |
|---|---|
| Type: | update → defect |
comment:3 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)
| Cc: | ryandesign removed |
|---|---|
| Description: | modified (diff) |
| Owner: | set to ryandesign |
| Status: | new → assigned |
Please attach your main.log file so I can see which of the existing tickets this one is a duplicate of.
comment:4 Changed 11 months ago by EfrosIonelu (Efros Ionelu)
:info:build ld: warning: ignoring duplicate libraries: '-largon2', '-lxml2', '-lz'
:info:build Undefined symbols for architecture arm64:
:info:build "_res_9_dn_expand", referenced from:
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build ...
:info:build "_res_9_dn_skipname", referenced from:
:info:build _zif_dns_get_record in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build "_res_9_init", referenced from:
:info:build _zif_dns_check_record in dns.o
:info:build _zif_dns_get_record in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build "_res_9_search", referenced from:
:info:build _zif_dns_check_record in dns.o
:info:build _zif_dns_get_record in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build ld: symbol(s) not found for architecture arm64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [sapi/cli/php] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build ld: warning: ignoring duplicate libraries: '-largon2', '-lxml2', '-lz'
:info:build Undefined symbols for architecture arm64:
:info:build "_res_9_dn_expand", referenced from:
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build _php_parserr in dns.o
:info:build ...
:info:build "_res_9_dn_skipname", referenced from:
:info:build _zif_dns_get_record in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build "_res_9_init", referenced from:
:info:build _zif_dns_check_record in dns.o
:info:build _zif_dns_get_record in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build "_res_9_search", referenced from:
:info:build _zif_dns_check_record in dns.o
:info:build _zif_dns_get_record in dns.o
:info:build _zif_dns_get_mx in dns.o
:info:build ld: symbol(s) not found for architecture arm64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [sapi/phpdbg/phpdbg] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74/work/php-7.4.33'
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74/work/php-7.4.33" && /usr/bin/make -j14 -w all
:info:build Exit code: 2
:error:build Failed to build php74: command execution failed
:debug:build Error code: CHILDSTATUS 5578 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build (procedure "portbuild::build_main" line 10)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php74/main.log for details.
comment:5 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)
| Resolution: | → duplicate |
|---|---|
| Status: | assigned → closed |
Ok, that's #70468.
Note: See
TracTickets for help on using
tickets.

Looks like it's failing to build php74 which is a dependency of php74-intl. You can try the workaround mentioned here with a slight tweak:
Then run
sudo port rev-upgradeagain; that should fix the second issue you're getting.