Skip to content

Failed to install php 7.4 on Arch Linux #1385

Description

@carloeusebi

Output

===> phpbrew will now build 7.4.33
You haven't enabled any variants. The default variant will be enabled: 
[bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pcre, pdo, pear, phar, posix, readline, sockets, tokenizer, xml, curl, openssl, zip]
Please run 'phpbrew variants' for more information.

===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 4e8117458fe5a475bf203128726b71bcbba61c42ad463dffadee5667a198a98a
===> Extracting /home/carlo-eusebi/.phpbrew/distfiles/php-7.4.33.tar.bz2 to /home/carlo-eusebi/.phpbrew/build/tmp.1721220300/php-7.4.33
===> Moving /home/carlo-eusebi/.phpbrew/build/tmp.1721220300/php-7.4.33 to /home/carlo-eusebi/.phpbrew/build/php-7.4.33
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /home/carlo-eusebi/.phpbrew/build/php-7.4.33
===> 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
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Hunk #1 FAILED at 60.
Hunk #2 FAILED at 114.
2 out of 2 hunks FAILED -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
===> Configuring 7.4.33...


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


===> 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...
Error: Make failed:
The last 5 lines in the log file:
/home/carlo-eusebi/.phpbrew/build/php-7.4.33/ext/libxml/libxml.c: In function ‘zif_libxml_get_last_error’:

/home/carlo-eusebi/.phpbrew/build/php-7.4.33/ext/libxml/libxml.c:1066:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]

 1066 |         error = xmlGetLastError();

      |               ^

make: *** [Makefile:636: ext/libxml/libxml.lo] Error 1

Please checkout the build log file for more details:
         tail /home/carlo-eusebi/.phpbrew/build/php-7.4.33/build.log

...

Expected Result

...

Command

Paste your phpbrew install command here (be sure to install with --debug flag, e.g. phpbrew --debug install)

phpbrew install 7.4

Build Log

gist here

Platform

OS:

Arch Linux 6.9.9

Running PHP:
8.3.9

Installing PHP:
7.4.33

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions