Skip to content

Ubuntu 22.04 LTS - openssl error #1263

Description

@simonovich

Output

$ phpbrew --debug install 7.4 +default
===> phpbrew will now build 7.4.29
---> Parsing variants from command arguments '+default'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 7dde58a02b225c25130c6e2ae2cbba7254bb0340f7fe17291478176d866f9482
===> Distribution file was successfully extracted, skipping...
Source Directory: /home/simonovich/.phpbrew/build/php-7.4.29
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: /usr/bin/make -C '/home/simonovich/.phpbrew/build/php-7.4.29' --quiet 'clean'
Running Command:/usr/bin/make -C '/home/simonovich/.phpbrew/build/php-7.4.29' --quiet 'clean'
Writing variant info to /home/simonovich/.phpbrew/php/php-7.4.29/phpbrew.variants
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Enabled variants: [xml, opcache, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pcre, pdo, pear, phar, posix, readline, sockets, tokenizer, curl, openssl, zip]
Disabled variants: []
Found existing build.log, renaming it to /home/simonovich/.phpbrew/build/php-7.4.29/build.log.1653480765
===> Configuring 7.4.29...


Use tail command to see what's going on:
   $ tail -F '/home/simonovich/.phpbrew/build/php-7.4.29/build.log'


./configure '--cache-file=/home/simonovich/.phpbrew/cache/config.cache' '--prefix=/home/simonovich/.phpbrew/php/php-7.4.29' '--with-config-file-path=/home/simonovich/.phpbrew/php/php-7.4.29/etc' '--with-config-file-scan-dir=/home/simonovich/.phpbrew/php/php-7.4.29/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--enable-dom' '--with-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--enable-pcntl' '--enable-pdo' '--with-pear=/home/simonovich/.phpbrew/php/php-7.4.29/lib/php/pear' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--with-curl' '--with-openssl' '--with-zip' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig' >> '/home/simonovich/.phpbrew/build/php-7.4.29/build.log' 2>&1
===> Checking patches...
Checking patch for php5.3.x on 64bit machine when intl is enabled.
Checking patch for openssl dso linking patch
Checking patch for php5.6 with openssl 1.1.x patch.
===> Building...
make >> '/home/simonovich/.phpbrew/build/php-7.4.29/build.log' 2>&1
Error: Make failed:
The last 5 lines in the log file:
In file included from /home/simonovich/.phpbrew/build/php-7.4.29/ext/openssl/openssl.c:46:

/usr/include/openssl/rsa.h:289:29: note: expected ‘RSA *’ {aka ‘struct rsa_st *’} but argument is of type ‘const struct rsa_st *’

  289 |                        RSA *rsa, int padding);

      |                        ~~~~~^~~

make: *** [Makefile:638: ext/openssl/openssl.lo] Ошибка 1

Please checkout the build log file for more details:
	 tail /home/simonovich/.phpbrew/build/php-7.4.29/build.log

Expected Result

Install complete

Command

phpbrew --debug install 7.4 +default

Build Log

See up

Platform

OS:

Ubuntu 22.04 LTS

Running PHP:
PHP 8.1.2 (cli) (built: Apr 7 2022 17:46:26) (NTS)

Installing PHP:
PHP 7.4.29

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions