You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Anchal Aggarwal <an...@hindustantimes.com> on 2012/04/09 11:48:18 UTC
Re: Error in Compiling Native Thrift PHP Module
David Reiss <dreiss <at> facebook.com> writes:
>
> I think we (Facebook) have only ever built it with PHP 5.2.
>
> Arya Goudarzi wrote:
> > Hi There,
> >
> > I am trying to compile Thrift's PHP module natively:
> >
> > thrift-0.2.0/lib/php/src/ext/thrift_protocol # make
> >
> > I get the following error and I could not find an online reference to help
me with this issue:
> >
> > /root/workspace/thrift-
0.2.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:378:
> error: 'zend_std_get_constructor' was not declared in this scope
> > make: *** [php_thrift_protocol.lo] Error 1
> >
> > This is the php version I am using:
> >
> > [root <at> localhost thrift_protocol]# yum list | grep installed | grep php
> > php.x86_64 5.1.6-24.el5_4.5 installed
> > php-cli.x86_64 5.1.6-24.el5_4.5 installed
> > php-common.x86_64 5.1.6-24.el5_4.5 installed
> > php-devel.x86_64 5.1.6-24.el5_4.5 installed
> > php-mysql.x86_64 5.1.6-24.el5_4.5 installed
> > php-pdo.x86_64 5.1.6-24.el5_4.5 installed
> > php-pear.noarch 1:1.4.9-6.el5 installed
> > php-pecl-memcache.x86_64 2.2.3-1.el5_2 installed
> >
> > Could this be an environment issue? I am using CentOS 5.2.
> >
> > Any help will be greatly appreciated.
> >
> > Please advice.
> >
> > Cheers,
> > -Arya
>
>
Hi
I have updated my php to 5.4.0.
Still I get the error:
/root/tools/thrift-
0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In function âvoid
createObject(char*, zval*, int, zval*, zval*)â:
/root/tools/thrift-
0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:404: error:
âzend_std_get_constructorâ was not declared in this scope
make: *** [php_thrift_protocol.lo] Error 1
Please help.
Thanks in advance.
Re: Error in Compiling Native Thrift PHP Module
Posted by Jake Farrell <jf...@apache.org>.
John
If you do not need the php library then run configure with the flag
--without-php
-Jake
On Fri, Jul 27, 2012 at 9:36 AM, John Griswold <gr...@aware.com> wrote:
> Jake Farrell <jfarrell <at> apache.org> writes:
>
> >
> > Currently using the php 0.8 extension with latest versions of php 5.2 and
> > 5.3. I also just tested against trunk and the php extension had no
> problems
> > compiling against 5.3.6 on centos 5.6. Let me know if you have any
> questions
> >
> > -Jake
> >
>
> I'm back to this project after a couple of interventions.
>
> Currently thrift-0.8 with PHP 5.4.5 / Zend 2.4.0, on Centos 2.6.18
> Our IT team is reluctant to adopt a more recent Centos version
>
> I still get that same
> 404: error: ‘zend_std_get_constructor’ was not declared in this scope
> error.
>
> Since I don't care about PHP support, I think I'll just change Makefile to
> skirt
> the issue. Does that seem valid?
>
> Thanks,
> John
>
>
>
Re: Error in Compiling Native Thrift PHP Module
Posted by John Griswold <gr...@aware.com>.
Jake Farrell <jfarrell <at> apache.org> writes:
>
> Currently using the php 0.8 extension with latest versions of php 5.2 and
> 5.3. I also just tested against trunk and the php extension had no problems
> compiling against 5.3.6 on centos 5.6. Let me know if you have any questions
>
> -Jake
>
I'm back to this project after a couple of interventions.
Currently thrift-0.8 with PHP 5.4.5 / Zend 2.4.0, on Centos 2.6.18
Our IT team is reluctant to adopt a more recent Centos version
I still get that same
404: error: ‘zend_std_get_constructor’ was not declared in this scope
error.
Since I don't care about PHP support, I think I'll just change Makefile to skirt
the issue. Does that seem valid?
Thanks,
John
Re: Error in Compiling Native Thrift PHP Module
Posted by Jake Farrell <jf...@apache.org>.
Currently using the php 0.8 extension with latest versions of php 5.2 and
5.3. I also just tested against trunk and the php extension had no problems
compiling against 5.3.6 on centos 5.6. Let me know if you have any questions
-Jake
On Mon, May 7, 2012 at 5:11 PM, John Griswold <gr...@aware.com> wrote:
> Anchal Aggarwal <anchal.aggarwal <at> hindustantimes.com> writes:
>
> >
> > David Reiss <dreiss <at> facebook.com> writes:
> >
> > >
> > > I think we (Facebook) have only ever built it with PHP 5.2.
> > >
> > > Arya Goudarzi wrote:
> > > > Hi There,
> > > >
> > > > I am trying to compile Thrift's PHP module natively:
> > > >
> > > > thrift-0.2.0/lib/php/src/ext/thrift_protocol # make
> > > >
> > > > I get the following error and I could not find an online reference
> to help
> > me with this issue:
> >
>
>
> I have the same issue - I'm hoping to use the C++ interface - do I need to
> be
> concerned about these failures which are apparently for the Perl interface?
>
> Thanks in advance,
> John
>
> (Anchal - did you solve the problem? )
>
>
>
>
>
Re: Error in Compiling Native Thrift PHP Module
Posted by John Griswold <gr...@aware.com>.
Anchal Aggarwal <anchal.aggarwal <at> hindustantimes.com> writes:
>
> David Reiss <dreiss <at> facebook.com> writes:
>
> >
> > I think we (Facebook) have only ever built it with PHP 5.2.
> >
> > Arya Goudarzi wrote:
> > > Hi There,
> > >
> > > I am trying to compile Thrift's PHP module natively:
> > >
> > > thrift-0.2.0/lib/php/src/ext/thrift_protocol # make
> > >
> > > I get the following error and I could not find an online reference to help
> me with this issue:
>
I have the same issue - I'm hoping to use the C++ interface - do I need to be
concerned about these failures which are apparently for the Perl interface?
Thanks in advance,
John
(Anchal - did you solve the problem? )