Forums » Software Installation »
mrc compile error
Added by Anonymous over 14 years ago
Hi,
I am installing Leginon on Suse 11.2, PHP 5.3.1
When I try to compile mrctools, I get the following error message:
mrc_1_5_1/php_mrc.c:1088: error: zval has no member named refcount
I could get it to compile if I change the line in php_mrc.c
(*entry)->refcount++;
to
Z_ADDREF_P(*entry);
but I then get segmentation fault when trying to display mymrc.mrc (php -q ex1.php | display)
Is there a fix to either error?
Thank you.
Replies (8)
Re: mrc compile error - Added by Anonymous over 14 years ago
The segmentation fault in ext1.php is caused by the call to mrctoimage. mrcstdevscale returns $pmin value=38 and $pmax = 216.
I am able to compile mrc_1_5_1 by adding
zend_ushort refcount;
to
struct _zval_struct
in zend.h
Re: mrc compile error - Added by Anchi Cheng over 14 years ago
We are testing installation on SuSE this week in the lab and will look into what the permanent fix should be.
Anchi
Re: mrc compile error - Added by Eric Hou over 14 years ago
The PHP mrc module is not compatible with PHP 5.3.x, and we are in the processing to solve this problem.
This is problem is not just on Suse, it also happen on other Linux distro.
The work around is to use PHP 5.1x or PHP 5.2.x at this moment.
Thanks.
Eric
RE: mrc compile error - Added by Markus Wollgarten over 13 years ago
Hello everyone!
Are there any news about this problem? I am runing (and have to) opensuse 11.4 with php version 5.3.5 and encounter this error when making php_mrc.
Thanks a lot!
Markus
RE: mrc compile error - Added by Anchi Cheng over 13 years ago
Still working on it. We have to write a new package to solve this problem. I am afraid you will have to downgrade your php to use the current version.
Anchi
RE: mrc compile error - Added by Amber Herold over 13 years ago
RE: mrc compile error - Added by Markus Wollgarten over 13 years ago
well that is what I have done meanwhile.
for opensuse this link might be helpful for others:
http://www.badzilla.co.uk/openSUSE-11.2-Downgrade-PHP-5.3-to-5.2
we did it accordingly for 11.4 and the server is running now. :-)
Thanks
Markus