[OpenIndiana-discuss] PHP 8.3 confusion
Stephan Althaus
Stephan.Althaus at Duedinghausen.eu
Wed Apr 23 16:08:46 UTC 2025
Hello Christian!
Thanks for your diagnosis.
There is a lib for tiny, but a different version:
$ pkg search -r "libtidy*"
INDEX ACTION VALUE PACKAGE
basename file usr/share/man/man3/libtidy.3
pkg:/text/tidy at 5.8.0-2025.0.0.0
basename link usr/lib/amd64/libtidy.so pkg:/text/tidy at 5.8.0-2025.0.0.0
basename file usr/lib/amd64/libtidy.so.5.8.0
pkg:/text/tidy at 5.8.0-2025.0.0.0
basename link usr/lib/amd64/libtidy.so.58
pkg:/text/tidy at 5.8.0-2025.0.0.0
If i brutally link that, the error is gone:
/usr/lib/amd64# ln -s libtidy.so.5.8.0 libtidy-1.0.so.0
The pdo messages i only got in the context of the apache web server.
Thanks for your hints, i'll investigate further..
Regards,
Stephan
On 4/23/25 17:51, Christian Meier wrote:
> Hello Stephan
>
> the "tidy.so" message I get too with the old and new BE
>
> Updated system today but no pdo messages
>
> # grep pdo_ error_log
> # php -v
> PHP Warning: PHP Startup: Unable to load dynamic library 'tidy.so'
> (tried: /usr/php/8.3/extensions/tidy.so (ld.so.1: php: fatal:
> relocation error: file /usr/php/8.3/extensions/tidy.so: symbol
> tidyBufFree: referenced symbol not found),
> /usr/php/8.3/extensions/tidy.so.so (ld.so.1: php: fatal:
> /usr/php/8.3/extensions/tidy.so.so: open failed: No such file or
> directory)) in Unknown on line 0
> PHP 8.3.14 (cli) (built: Nov 27 2024 23:54:59) (ZTS)
> Copyright (c) The PHP Group
> Zend Engine v4.3.14, Copyright (c) Zend Technologies
> with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
>
> # php -m | grep -i pdo
> PHP Warning: PHP Startup: Unable to load dynamic library 'tidy.so'
> (tried: /usr/php/8.3/extensions/tidy.so (ld.so.1: php: fatal:
> relocation error: file /usr/php/8.3/extensions/tidy.so: symbol
> tidyBufFree: referenced symbol not found),
> /usr/php/8.3/extensions/tidy.so.so (ld.so.1: php: fatal:
> /usr/php/8.3/extensions/tidy.so.so: open failed: No such file or
> directory)) in Unknown on line 0
> PDO
> pdo_mysql
> pdo_pgsql
> pdo_sqlite
>
> # beadm list
> BE Active Mountpoint Space Policy Created
> openindiana-2025:04:05 - - 36.04M static 2025-04-05 21:38
> openindiana-2025:04:23 NR / 24.19G static 2025-04-23 17:25
>
> reason for tidy is a missing library
>
> # ldd -v /usr/php/8.3/extensions/tidy.so
>
> find object=libtidy-1.0.so.0; required by
> /usr/php/8.3/extensions/tidy.so
> libtidy-1.0.so.0 => (file not found)
>
> find object=libc.so.1; required by /usr/php/8.3/extensions/tidy.so
> libc.so.1 => /lib/64/libc.so.1
> find version=libc.so.1
> libc.so.1 (ILLUMOS_0.26) => /lib/64/libc.so.1
> libc.so.1 (ILLUMOS_0.5) => /lib/64/libc.so.1
> libc.so.1 (SUNWprivate_1.1) => /lib/64/libc.so.1
>
> object=/lib/64/libc.so.1; filter for /usr/lib/amd64/ld.so.1
>
> object=/lib/64/libc.so.1; filter for libm.so.2
>
> find object=libm.so.2; required by /lib/64/libc.so.1
> libm.so.2 => /lib/64/libm.so.2
>
> find object=libc.so.1; required by /lib/64/libm.so.2
> find version=libc.so.1
> libc.so.1 (ILLUMOS_0.37) => /lib/64/libc.so.1
> # pkg search -f libtidy-1.0.so.0
> #
>
> for my php tests I do not use/require tidy so I renamed the ini file
> and that message is gone
> So looks like a local issue on your system
>
> Cheers, Christian
>
> On 23/04/2025 15:00, Stephan Althaus wrote:
>> Hi!
>>
>> I tried an update on my zone for my apache installation and stumbled
>> upon errors,
>> and i am starting to see what the exact errors are and their origin...
>>
>> The apache error log shows:
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> 'pdo_mysql.so' (tried: /usr/php/8.3/extensions/pdo_mysql.so (ld.so.1:
>> httpd: fatal: relocation error: file
>> /usr/php/8.3/extensions/pdo_mysql.so: symbol
>> php_pdo_unregister_driver: referenced symbol not found),
>> /usr/php/8.3/extensions/pdo_mysql.so.so (ld.so.1: httpd: fatal:
>> /usr/php/8.3/extensions/pdo_mysql.so.so: open failed: No such file or
>> directory)) in Unknown on line 0
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> 'pdo_pgsql.so' (tried: /usr/php/8.3/extensions/pdo_pgsql.so (ld.so.1:
>> httpd: fatal: relocation error: file
>> /usr/php/8.3/extensions/pdo_pgsql.so: symbol php_pdo_get_dbh_ce:
>> referenced symbol not found), /usr/php/8.3/extensions/pdo_pgsql.so.so
>> (ld.so.1: httpd: fatal: /usr/php/8.3/extensions/pdo_pgsql.so.so: open
>> failed: No such file or directory)) in Unknown on line 0
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> 'pdo_sqlite.so' (tried: /usr/php/8.3/extensions/pdo_sqlite.so
>> (ld.so.1: httpd: fatal: relocation error: file
>> /usr/php/8.3/extensions/pdo_sqlite.so: symbol php_pdo_get_dbh_ce:
>> referenced symbol not found),
>> /usr/php/8.3/extensions/pdo_sqlite.so.so (ld.so.1: httpd: fatal:
>> /usr/php/8.3/extensions/pdo_sqlite.so.so: open failed: No such file
>> or directory)) in Unknown on line 0
>>
>> [Wed Apr 23 14:17:22.805477 2025] [mpm_event:notice] [pid 9842:tid 1]
>> AH00489: Apache/2.4.63 (Unix) OpenSSL/3.4.1 PHP/8.3.14
>> mod_fcgid/2.3.9 mod_perl/2.0.13 Perl/v5.38.3 configured -- resuming
>> normal operations
>>
>>
>> $ pkg search /usr/php/8.3/extensions/pdo_sqlite.so
>> INDEX ACTION VALUE PACKAGE
>> path file usr/php/8.3/extensions/pdo_sqlite.so
>> pkg:/web/php-83/php-common at 8.3.14-2024.0.0.2
>>
>>
>> $ php -v
>> PHP Warning: PHP Startup: Unable to load dynamic library 'tidy.so'
>> (tried: /usr/php/8.3/extensions/tidy.so (ld.so.1: php: fatal:
>> relocation error: file /usr/php/8.3/extensions/tidy.so: symbol
>> tidyBufFree: referenced symbol not found),
>> /usr/php/8.3/extensions/tidy.so.so (ld.so.1: php: fatal:
>> /usr/php/8.3/extensions/tidy.so.so: open failed: No such file or
>> directory)) in Unknown on line 0
>> PHP 8.3.14 (cli) (built: Nov 27 2024 23:54:59) (ZTS)
>> Copyright (c) The PHP Group
>> Zend Engine v4.3.14, Copyright (c) Zend Technologies
>> with Zend OPcache v8.3.14, Copyright (c), by Zend Technologies
>> with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans
>>
>>
>> So there are linker errors within the base package, and some
>> extensions ??
>>
>> => Can someone confirm that this is a local error only on my site ?
>>
>> $ uname -a
>> SunOS dell7720 5.11 illumos-9182c9260e i86pc i386 i86pc
>>
>> BE of 2025-04-18
>>
>>
>> The package php-8.3-ext-imagick is part of the sources, but not in
>> pkg.openindiana.org, so i guess it does/did not build (?)
>>
>>
>> Regards,
>>
>> Stephan
>>
>>
>>
>> _______________________________________________
>> openindiana-discuss mailing list
>> openindiana-discuss at openindiana.org
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the openindiana-discuss
mailing list