[Kolab-devel] Kolab on Ubuntu 16.04: swig with support for PHP7

Javier Torres javitonino at gmail.com
Wed Dec 28 23:28:38 CET 2016


Hi again Timotheus,

I tried to run `php --version` and I'm seeing the same error (zend_mm_heap
corrupted). However, in my case, it does not cause PHP to segfault, and all
applications build and run nicely. I tried running valgrind, as suggested
in the swig ticket and I am seeing some errors when loading the kolabformat
extension that are not there without it, so there is definitely something
going on here.

If I had to guess, maybe PHP for Fedora is built with some flags that make
it crash when encountering a corrupt heap, while in Arch it tries to
continue. But anyway, something is wrong on the swig/libkolabxml side, so
I'll try to look at the valgrind errors if I get the time.


Best,
Javier

On Tue, Dec 27, 2016 at 3:57 PM, Timotheus Pokorra <timotheus at kolab.org>
wrote:

> Hello Javier,
>
> > I have been playing around with the newest SWIG and PHP7 and I'm happy to
> > report that it works without issue to me. I just had to update the
> > libkolabxml CMakeLists.txt to pass `-php7` to swig (instead of `-php`)
> and
> > recompile libkolabxml PHP bindings. After that I switched Apache to PHP7
> and
> > everything keeps working, but in PHP7. I tested the webadmin, chwala and
> all
> > roundcube modules, and I detected no issues.
> Thank you for working on this, and reporting on the success!
>
> I have been trying the same for Fedora 25, but I have issues with the
> PHP modules, causing php to segfault.
> See https://kolab.org/hub/topic/91/kolab-16-winterfell-on-
> ubuntu-16-04-dependencies/14
> and https://github.com/swig/swig/issues/859
> I will have to dig into this after the holidays.
> It is good to know that it works on Arch Linux.
> I wonder if my snapshot of Swig is a couple of commits too old, I will
> try that first to build with a more recent snapshot.
>
> All the best,
>   Timotheus
> _______________________________________________
> devel mailing list
> devel at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/devel/attachments/20161228/cb3f30c6/attachment.html>


More information about the devel mailing list