shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.89k stars 337 forks source link

php: symbol lookup error: php: undefined symbol: crypto_core_ristretto255_scalar_invert #864

Closed serzhik closed 1 week ago

serzhik commented 3 weeks ago

Describe the bug I got error php: symbol lookup error: php: undefined symbol: crypto_core_ristretto255_scalar_invert on Setup Tools. The same configuration worked with PHP 8.3.6 a week ago. Now I see an error message and PHP is 8.3.8

Version

Runners

Operating systems

PHP versions 8.3 (Issue with 8.3.8. It worked with 8.3.6)

To Reproduce Configuration:

jobs:
  deploy:
    runs-on: self-hosted
    steps:
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'

Expected behavior No issues

Screenshots/Logs

image

Additional context It worked with PHP 8.3.6 but does not work with PHP 8.3.8

Are you willing to submit a PR? No

shivammathur commented 3 weeks ago

@serzhik

Please try running it again with update: true input, and runner: self-hosted env if you are using a self-hosted runner. It should install PHP 8.3.10 now.

- name: Setup PHP
  uses: shivammathur/setup-php@v2
  with:
    php-version: '8.3'
    update:true
  env:
    runner: self-hosted

if this is not fixed, make sure the libsodium package is the latest one.

sudo apt-get update
sudo apt-get install libsodium -y
shivammathur commented 1 week ago

Please reopen if you are still facing the issue.

serzhik commented 1 week ago
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'
          coverage: none
        env:
          update: true

It still uses PHP 8.3.8 with the same issue

shivammathur commented 1 week ago

Please specify the runner env and set it to self-hosted.

serzhik commented 1 week ago

Issue still exists :(

Configuration:

name: magento-deploy

on:
  push:
    branches:
      - develop

jobs:
  deploy:
    runs-on: self-hosted
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: 18

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.3'
        env:
          runner: self-hosted
          fail-fast: true
          update: true

Result:

image
shivammathur commented 1 week ago

Please provide the output of this.

sudo apt-get update
sudo apt-cache policy libsodium
sudo apt-get install libsodium -y
serzhik commented 1 week ago
image
shivammathur commented 1 week ago

The OS version you are using Debian 10 (Buster) is no longer supported. Please try running the workflow on a new version of Debian.

https://github.com/oerdnj/deb.sury.org/issues/2098