Hi Calvin Thanks a lot, you're right, phpize was pointing to 8.3. I changed it to 8.1 and also had to set the lib path to 8.1. After this, the build process completed successfully.
Thanks a lot, Mark -----Ursprüngliche Nachricht----- Von: Calvin Buckley [mailto:cal...@cmpct.info] Gesendet: Samstag, 28. September 2024 01:19 An: hostmas...@audiogen.ch Cc: pecl-dev@lists.php.net Betreff: Re: [PECL-DEV] ssh2.so On Sep 27, 2024, at 8:03 PM, <hostmas...@audiogen.ch> <hostmas...@audiogen.ch> wrote: > > Hallo Christoph > > Thanks a lot for your reply. I do have PHP 8.3 and other PHP versions > installed on the system as well. > > "php -v" outputs: > > ---- > PHP 8.1.29 (cli) (built: Jun 6 2024 16:52:57) (NTS) > Copyright (c) The PHP Group > Zend Engine v4.1.29, Copyright (c) Zend Technologies > with Zend OPcache v8.1.29, Copyright (c), by Zend Technologies > ---- > > "update-alternatives --config php" outputs: > There are 5 choices for the alternative php (providing /usr/bin/php). > > Selection Path Priority Status > ------------------------------------------------------------ > 0 /usr/bin/php8.3 83 auto mode > 1 /usr/bin/php7.4 74 manual mode > 2 /usr/bin/php8.0 80 manual mode > * 3 /usr/bin/php8.1 81 manual mode > 4 /usr/bin/php8.2 82 manual mode > 5 /usr/bin/php8.3 83 manual mode > > However, php8.1 is set active as indicated by the "*", which is confirmed by > "php -v". > > And also "pecl version" outputs: > > ---- > PEAR Version: 1.10.13 > PHP Version: 8.1.29 > Zend Engine Version: 4.1.29 > ---- > > This is why I was assuming the ssh2 module has been built with 8.1.29. > However, the build process stores the binaries in the 20230831 directory. > > ---- > downloading ssh2-1.4.1.tgz ... > Starting to download ssh2-1.4.1.tgz (34,265 bytes) > .........done: 34,265 bytes > 6 source files, building > running: phpize > Configuring for: > PHP Api Version: 20230831 > Zend Module Api No: 20230831 > Zend Extension Api No: 420230831 > ---- > > Do I correctly assume it's phpize changing to 8.3 while preparing the build > env? Do you know why phpize is doing so? Is there a related configuration > file or option I could adapt to make phpize/peck use 8.1.29? > Is phpize (found in i.e. php-dev/php-devel depending on distro) set to the 8.1 version or the 8.3 version? It might have a separate link in update-alternatives.