ulsan1635 / php52-backports

Automatically exported from code.google.com/p/php52-backports
Other
0 stars 0 forks source link

Can't compile with libxml2 2.9 #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Error follows:

ext/dom/node.c: In function 'dom_canonicalization':
ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type
ext/dom/node.c:1955:5: error: dereferencing pointer to incomplete type
make: *** [ext/dom/node.lo] Error 1

looks like something with buf->buffer class ;/

Original issue reported on code.google.com by romans.h...@gmail.com on 25 Mar 2013 at 11:14

GoogleCodeExporter commented 8 years ago
It's libxml2 2.9 compability issue, will post patch in some minutes

Original comment by romans.h...@gmail.com on 25 Mar 2013 at 11:22

GoogleCodeExporter commented 8 years ago
I even have found needed patch on the internet :)

https://mail.gnome.org/archives/xml/2012-August/msg00028.html

Original comment by romans.h...@gmail.com on 25 Mar 2013 at 11:41

Attachments:

GoogleCodeExporter commented 8 years ago
Hello, thank you for solution, what operation system you use (probably Ubuntu 
12)? Because I've tested and used this patch on FreeBSD and in this system I 
have libxml 2.7.8 installed and you caugth bug with libxml 2.9.
I'll test this patch on libxml 2.7 and add to next update.

Original comment by svyatosl...@gmail.com on 25 Mar 2013 at 12:14

GoogleCodeExporter commented 8 years ago
On gentoo.

Patch only needed with libxml2 >= 2.9.0, with < 2.9 it will compile ok without 
it.

Patch will not break <2.9 compability.

Original comment by romans.h...@gmail.com on 25 Mar 2013 at 12:17

GoogleCodeExporter commented 8 years ago
i can confirm similar patch
http://git.pld-linux.org/?p=packages/php.git;a=blob;f=php-libxml.patch;h=9126282
4e8a50db3599c121be0551ef2d95f8f75

works fine here

Original comment by elan.ruu...@gmail.com on 25 May 2013 at 9:31

GoogleCodeExporter commented 8 years ago
Commited romans.heimanis patch, thanks

Original comment by svyatosl...@gmail.com on 17 Jul 2013 at 7:15

GoogleCodeExporter commented 8 years ago
hey buud, how can I apply this patch?? I'm new on php compiling process, can 
you help me??

Original comment by Christia...@gmail.com on 24 Mar 2014 at 7:06

GoogleCodeExporter commented 8 years ago
Create the patch file inside php source directory and then apply it like that :
patch -p1 < libxml29_compat.patch

Original comment by tosti...@gmail.com on 8 May 2014 at 1:09

GoogleCodeExporter commented 8 years ago
It really helped, thanks!

Original comment by genilson...@gmail.com on 15 Jan 2015 at 5:23

GoogleCodeExporter commented 8 years ago
Hi all,

I've tried to use the patch and got this error :

=========================================================================
[root@CentOS-70-64-minimal php-5.2.17]# patch -p1 < libxml29_compat.patch 
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- ext/dom/node.c 2012-08-06 17:49:48.826716692 +0800
|+++ ext/dom/node.c 2012-08-06 17:52:47.633484660 +0800
--------------------------
===========================================================================

I've checked and ext/dom/node.c file exists.

Could someone  please help.

Original comment by carpenco...@gmail.com on 27 Feb 2015 at 2:34

GoogleCodeExporter commented 8 years ago
is you get the "can't find file to patch at input line 3", all you need to do 
is provide the file path. You can even copy-paste it from the lines shown (e.g. 
ext/dom/node.c)

It worked for me :)

Original comment by markitos...@gmail.com on 21 Mar 2015 at 1:30