Re: [Kolab-devel] Kolab on Ubuntu 16.04: swig with support for PHP7
Javier Torres <[email protected]> Wed, 28 Dec 2016 23:28:38 +0100
| Newsgroups | gmane.comp.kde.devel.kolab |
|---|---|
| Message-ID | <CALhEFBCshfR+ZuDEXcMer7DzyZJa3rJKVOmZawF-Dc6S5eVgvw@mail.gmail.com> |
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 <[email protected]> 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 > [email protected] > https://lists.kolab.org/mailman/listinfo/devel > _______________________________________________ devel mailing list [email protected] https://lists.kolab.org/mailman/listinfo/devel