asdf-community / asdf-community/asdf-php
install php failing on ubuntu jelly
- Dominant language
- Shell
- Stars
- 256
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
I checked the build script and ran
```
sudo apt-get update && sudo apt-get install -y autoconf bison build-essential curl gettext git libgd-dev libcurl4-openssl-dev libedit-dev libicu-dev libjpeg-dev libmysqlclient-dev libonig-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libxml2-dev libzip-dev openssl pkg-config re2c zlib1g-dev
```
then
```
asdf install php 8.0.10
```
I get
```
/bin/bash /tmp/tmp.94nY465wXz/php-src-php-8.0.10/libtool --silent --preserve-dup-deps --mode=compile cc -Iext/pcre/ -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/pcre/ -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/include -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/main -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10 -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/date/lib -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/mbstring/libmbfl -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/TSRM -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/Zend -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -mshstk -DHAVE_CONFIG_H -I/tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/pcre/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/pcre/pcre2lib/pcre2_auto_possess.c -o ext/pcre/pcre2lib/pcre2_auto_possess.lo
In file included from /tmp/tmp.94nY465wXz/php-src-php-8.0.10/main/php.h:439,
from /tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/openssl/openssl.c:27:
/tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/openssl/openssl.c: In function ‘zm_startup_openssl’:
/tmp/tmp.94nY465wXz/php-src-php-8.0.10/ext/openssl/openssl.c:1224:58: error: ‘RSA_SSLV23_PADDING’ undeclared (first use in this function); did you mean ‘RSA_PKCS1_PADDING’?
1224 | REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
```
an error with `RSA_SSLV23_PADDING` not being defined.
I got the same for 8.0.11.
Any ideas?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the plugin's build script and reproduce `asdf install php 8.0.10` on Ubuntu using the dependency command in the report. Inspect the PHP source path `ext/openssl/openssl.c` and the `RSA_SSLV23_PADDING` failure, then verify that the affected PHP versions install successfully; the report names no tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, shell, ubuntu
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100