[Resolved] Error Building PHP 5.4.43

Status
Not open for further replies.

ShannonA

Well-Known Member
#1
I'm getting failures on trying to build a new PHP:
Code:
**MAIN_STATUS** retrieved from /usr/local/lsws/phpbuild/buildphp_1438038539.6.progress
Preparing all source code for building PHP 5.4.43 with LSAPI 6.8
php-5.4.43.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.4.43.tar.gz
Retrieving mail header patch from http://choon.net/opensource/php/php-5.4.43-mail-header.patch
Patching source with mail header patch
**ERROR** Could not patch source with mail header patch
Some problems in the phpbuild seem to be the cause:
Code:
Changing to build directory /usr/local/lsws/phpbuild
php-5.4.43.tar.gz already downloaded, use the saved copy.
Extracting PHP source archive: tar -zxf php-5.4.43.tar.gz

/usr/local/lsws/phpbuild/buildphp_1438038539.6.prep.sh: 134: [: =: unexpected operator
/usr/local/lsws/phpbuild/buildphp_1438038539.6.prep.sh: 136: [: =: unexpected operator
/usr/local/lsws/phpbuild/buildphp_1438038539.6.prep.sh: 138: [: =: unexpected operator
/usr/local/lsws/phpbuild/buildphp_1438038539.6.prep.sh: 140: [: =: unexpected operator
Retrieving mail header patch from http://choon.net/opensource/php/php-5.4.43-mail-header.patch
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
100 3796 0 3796 0 0 943 0 --:--:-- 0:00:04 --:--:-- 8252
100 14642 0 14642 0 0 3330 0 --:--:-- 0:00:04 --:--:-- 17598

0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
0 0 0 14642 0 0 1622 0 --:--:-- 0:00:09 --:--:-- 14105
0 0 0 14642 0 0 1622 0 --:--:-- 0:00:09 --:--:-- 14105

Patching source with mail header patch
patch: **** Only garbage was found in the patch input.
**ERROR** Could not patch source with mail header patch
This if line and the three elif lines seem to be the ones erroring out:
Code:
 MAILHEADER_VER=`expr '${PHP_VERSION}' : "\(.\..\)"`

        if [ $MAILHEADER_VER = "5.2" ] ; then

MAILHEADER_VER=5.2.x

        elif [ $MAILHEADER_VER = "5.3" ] ; then

MAILHEADER_VER=5.3.x

        elif [ $MAILHEADER_VER = "5.4" ] ; then

                MAILHEADER_VER=5.4.x

        elif [ $MAILHEADER_VER = "5.5" ] ; then

                MAILHEADER_VER=5.5.x

        else

                MAILHEADER_VER=${PHP_VERSION}

fi

Any ideas? This is a pretty standard Debian machine.
 
Last edited by a moderator:
Status
Not open for further replies.
Top