Bug #79266 [Fbk->Opn]: Extern C template error during xmldiff build
| From: | matt dot brister at sterlingts dot com | Date: | Wed, 12 Feb 2020 18:05:01 +0000 |
| Subject: | Bug #79266 [Fbk->Opn]: Extern C template error during xmldiff build | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225540@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79266&edit=1
ID: 79266
User updated by: matt dot brister at sterlingts dot com
Reported by: matt dot brister at sterlingts dot com
Summary: Extern C template error during xmldiff build
-Status: Feedback
+Status: Open
Type: Bug
Package: Compile Failure
Operating System: Ubuntu 18.04
PHP Version: 7.3.14
Block user comment: N
Private report: N
New Comment:
Thanks Nikic! Last 17 lines of output:
In file included from /usr/include/unicode/localpointer.h:45:0,
from /usr/include/unicode/uenum.h:23,
from /usr/include/unicode/ucnv.h:53,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:810,
from /usr/include/libxml2/libxml/globals.h:18,
from /usr/include/libxml2/libxml/threads.h:35,
from /usr/include/libxml2/libxml/xmlmemory.h:218,
from /usr/include/libxml2/libxml/tree.h:1307,
from /usr/include/php/20180731/ext/libxml/php_libxml.h:39,
from /home/ubuntu/xmldiff-1.1.2/php_xmldiff.h:67,
from /home/ubuntu/xmldiff-1.1.2/xmldiff.cpp:36:
/usr/include/c++/7/memory:135:1: error: template with C linkage
template <typename _Tp>
^~~~~~~~
Makefile:214: recipe for target 'xmldiff.lo' failed
make: *** [xmldiff.lo] Error 1
I see a lot of these, so I am also making the output available here. https://bitbucket.org/snippets/Calvarymatt/6n8BqR
Previous Comments:
------------------------------------------------------------------------
[2020-02-12 17:57:41] nikic@php.net
Please provide the compile error that is printed, there should be something before the "recipe
failed", which is just a message from "make".
If you would like to post the full log, I'd suggest https://gist.github.com/
------------------------------------------------------------------------
[2020-02-12 16:55:38] matt dot brister at sterlingts dot com
Description:
------------
xmldiff version(s): xmldiff 1.1.2, 1.1.1, 1.1.0
PHP 7.3.14-6+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Feb 5 2020 16:51:32) ( NTS )
Modules installed: calendar Core ctype date dom exif fileinfo filter ftp gettext hash iconv json
libxml openssl pcntl pcre PDO Phar posix readline Reflection session shmop SimpleXML sockets sodium
SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zlib
**Seems related to: https://bugs.php.net/bug.php?id=76685**
Repro (on a clean install of 18.04):
1. apt update && apt dist-upgrade -y
2. add-apt-repository ppa:ondrej/php
3. apt update && apt install php7.3 php7.3-dev phpxml -y
4. pecl channel-upgrade pecl.php.net
5. pecl install xmldiff -> "recipe for target 'xmldiff.lo' failed"
To confirm, I downloaded the tgz package and tried to manually build:
1. wget https://pecl.php.net/get/xmldiff-1.1.2.tgz
2. tar -xvzf xmldiff-1.1.2.tgz
3. cd xmldiff-1.1.2
4. phpize
5. ./configure
6. make -> "recipe for target 'xmldiff.lo" failed"
I have the full compiler output from the manual build if you would like (it's about 300k, and
there is no obvious place to attach it here.)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79266&edit=1