Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP8.2 + gd: Unable to load dynamic library 'gd.so' #616

Closed
4 of 5 tasks
ChristophWurst opened this issue Jul 13, 2022 · 3 comments
Closed
4 of 5 tasks

PHP8.2 + gd: Unable to load dynamic library 'gd.so' #616

ChristophWurst opened this issue Jul 13, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ChristophWurst
Copy link
Contributor

Describe the bug

PHP8.2 setup with the gd extension has failed us for a few days now with

==> Setup PHP
✓ PHP Installed PHP 8.2.0-dev (56804e32216574c66cf71359a8a8830e7badc757)
==> Setup Extensions
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
✓ ctype Enabled
✓ curl Enabled
✓ dom Enabled
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20210903/gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20210903/gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
✗ gd Could not install gd on PHP 8.2.0-dev
✓ iconv Enabled
✓ intl Enabled
✓ json Enabled
✓ mbstring Enabled
✓ openssl Enabled
✓ posix Enabled
✓ sqlite3 Enabled
✓ xml Enabled
✓ zip Enabled
✓ gmp Enabled
==> Setup Tools
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20210903/gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
✓ composer Added composer 2.3.9
==> Setup Coverage
PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20210903/gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
✓ xdebug Xdebug 3.2.0-dev enabled as coverage driver
==> #StandWithUkraine
✓ read-more https://setup-php.com/support-ukraine

I noticed that we use the discouraged master version of your action. I migrated over to v2 and got the same error: nextcloud/mail#6874

Version

  • I have checked releases, and the bug exists in the latest patch version of v2 and master.
  • master
  • v2

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems
ubuntu-latest

PHP versions
8.2 – resolves to 8.2.0-dev (56804e32216574c66cf71359a8a8830e7badc757)

To Reproduce

          - name: Set up php${{ matrix.php-versions }}
            uses: shivammathur/setup-php@v2
            with:
                php-version: ${{ matrix.php-versions }}
                extensions: ctype,curl,dom,gd,iconv,intl,json,mbstring,openssl,posix,sqlite,xml,zip,gmp
                coverage: xdebug

Expected behavior

GD installs and can be used.

Screenshots/Logs

PHP Warning:  PHP Startup: Unable to load dynamic library 'gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20210903/gd.so' (tried: /usr/lib/php/20210903/gd.so (/usr/lib/php/20210903/gd.so: undefined symbol: gdImageCreateFromAvif), /usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so (/usr/lib/php/20210903//usr/lib/php/20210903/gd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP module GD not installed.
Please ask your server administrator to install the module.

Additional context

Run can be seen at https://github.com/nextcloud/mail/runs/7320351726?check_suite_focus=true

Are you willing to submit a PR?

Sure!

@ChristophWurst ChristophWurst added the bug Something isn't working label Jul 13, 2022
@ChristophWurst
Copy link
Contributor Author

PHP Installed PHP 8.2.0-dev (b107b819c87c1f93b4f22bddda8232c3548d5698) was the last version that passed, PHP Installed PHP 8.2.0-dev (56804e32216574c66cf71359a8a8830e7badc757) was the first that showed the gd error on our CI.

@shivammathur
Copy link
Owner

@ChristophWurst
Copy link
Contributor Author

You're the best @shivammathur! Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants