Closed brzuchal closed 3 years ago
Thanks for the report. Seems to be a core bug with C++, see https://bugs.php.net/bug.php?id=74904
I'm working on a core fix, stay tuned.
Thanks
Hmm. The compilation doesn't fail with at least g++-5, where Travis passes. The dev goes with at least GCC 7. Which compiler is used on your side? It might be nice to fix the compilation with an older compiler, especially as the bug is in the core, but more info wouldn't be a waste.
Thanks.
I was having the same issue with PHP 7.0 under Ubuntu 16.04 using gcc 5.4.0 20160609. I managed to compile parle by making these changes to /usr/include/php/20151012/main/php_config.h
It's the first module that I trully need to compile myself so it took me forever figuring this out. As a reminder to myself, here is how I compiled and installed Parle (with the --enable-parle-utf32 flag because I was having issues with parsing unicode otherwise):
mkdir ~/parle
cd ~/parle
sudo pecl download parle-0.8.1
tar zxvf parle-0.8.1.tgz
cd parle-0.8.1/
phpize
./configure --with-php-config=/usr/bin/php-config --enable-parle-utf32
pico /usr/include/php/20151012/main/php_config.h
Modified these two lines:
#define HAVE_DECL_ISFINITE 0
#define HAVE_DECL_ISNAN 0
Compiled the code:
make
make test
sudo make install
sudo pico /etc/php/7.0/apache2/conf.d/80-parle.ini
Inserted this:
; priority=80
extension=parle.so
Restarted Apache:
sudo service apache2 restart
@gablem thanks for the further info. I've pushed a fix to the core https://github.com/php/php-src/commit/ad790bea2e4a8a25c79ceab964601f3785cd2bf1. I'm not sure it's released already, and it depends on whether distributions would pick it up. Building against vanilla PHP should be OK anyway. Otherwise probably one has to live with this core bug :(
Thanks.
Given we're far past the point and at least 7.3 that is out there should have this patch, considering this issue not relevant anymore.
Thanks!
I've got compile error while trying to install using pecl version 0.8.1. I'm on Ubuntu 16.04.04 LTS