Re: Issue creating php-pear ( includiing XML_RPC package ) and php-pear-DB rpm

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Issue creating php-pear ( includiing XML_RPC package ) and php-pear-DB rpm

Ken Guest-4
The latest version of pear is 1.10.9...



On Fri, 12 Jul 2019 at 06:36, Remya Lakshmi S <[hidden email]>
wrote:

> Hi Team,
>
>
>
> I am working on upgrading PHP from 5.x to 7.x. The current version of
> php-pear which is being used with php5 is 1.9.4.
>
> After upgrading to php7 I got following error with php-pear rpm.
>
>
>
> *PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in
> /usr/share/pear/PEAR/Frontend.php on line 91*
>
>
>
> Later I downloaded the newer version of php-pear i.e. 1.10.3 and tried
> compiling, but same issue persists.
>
>
>
> + pear -v -c
> /scratchpad/workdirs/rlaksh10/build/RPM/BUILDROOT/php-pear-1.10.9-0.62496.noarch/pearrc
> -d php_dir=/usr/lib64/php/pear -d doc_dir=/docs -d bin_dir=/usr/bin -d
> data_dir=/usr/lib64/php/pear/data -d test_dir=/usr/lib64/php/pear/tests -d
> ext_dir=/usr/lib64
>
> *PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in
> /usr/share/pear/PEAR/Frontend.php on line 91*
>
> error: Bad exit status from
> /scratchpad/workdirs/rlaksh10/tmp/rpm-tmp.DW9Lce (%prep)
>
> RPM build errors:
>
>     Bad exit status from /scratchpad/workdirs/rlaksh10/tmp/rpm-tmp.DW9Lce
> (%prep)
>
> make[1]: *** [build_rpm] Error 1
>
> make: *** [rpm] Error 2
>
> ERROR: Make failed!
>
> ERROR:       RC: 2
>
> ERROR:      CMD: /usr/bin/make -s -f pkg-Linux.make rpm
>
> ERROR: MAKEFILE: pkg-Linux.make
>
>
>
> I am trying to compile from source code, using the same template.spec.
>
>
>
> Can anyone please share the source code and  build instructions to create
> the rpm for both php-pear ( including XML_RPC ) and php-pear-DB.
>
>
>
> Regards,
>
> Remya.
>
>
>
>
>
> *From:* Remya Lakshmi S
> *Sent:* Thursday, July 11, 2019 3:46 PM
> *To:* [hidden email]
> *Cc:* Andrew Schnable; Sonal Jain; Tajammul Pasha (
> [hidden email]); Pradeep Padhi
> *Subject:* Issue creating php-pear ( includiing XML_RPC package ) and
> php-pear-DB rpm
>
>
>
> Hi Team,
>
>
>
> I am working on upgrading PHP from 5.x to 7.x. The current version of
> php-pear which is being used with php5 is 1.9.4.
>
> After upgrading to php7 I got following error with php-pear rpm.
>
>
>
> *PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in
> /usr/share/pear/PEAR/Frontend.php on line 91*
>
>
>
> Later I downloaded the newer version of php-pear i.e. 1.10.3 and tried
> compiling, but same issue persists.
>
>
>
> + pear -v -c
> /scratchpad/workdirs/rlaksh10/build/RPM/BUILDROOT/php-pear-1.10.9-0.62496.noarch/pearrc
> -d php_dir=/usr/lib64/php/pear -d doc_dir=/docs -d bin_dir=/usr/bin -d
> data_dir=/usr/lib64/php/pear/data -d test_dir=/usr/lib64/php/pear/tests -d
> ext_dir=/usr/lib64
>
> *PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in
> /usr/share/pear/PEAR/Frontend.php on line 91*
>
> error: Bad exit status from
> /scratchpad/workdirs/rlaksh10/tmp/rpm-tmp.DW9Lce (%prep)
>
> RPM build errors:
>
>     Bad exit status from /scratchpad/workdirs/rlaksh10/tmp/rpm-tmp.DW9Lce
> (%prep)
>
> make[1]: *** [build_rpm] Error 1
>
> make: *** [rpm] Error 2
>
> ERROR: Make failed!
>
> ERROR:       RC: 2
>
> ERROR:      CMD: /usr/bin/make -s -f pkg-Linux.make rpm
>
> ERROR: MAKEFILE: pkg-Linux.make
>
>
>
> I am trying to compile from source code, using the same template.spec.
>
>
>
> Can anyone please share the source code and  build instructions to create
> the rpm for both php-pear ( including XML_RPC ) and php-pear-DB.
>
>
>
> Regards,
>
> Remya.
>


--
http://about.me/kenguest/