[libvirt] Update on PHP libvirt

Radek Hladik rhladik at tfc.cz
Tue Jun 29 16:34:46 UTC 2010


Dne 29.6.2010 17:38, Eric Blake napsal(a):
> On 06/29/2010 09:27 AM, David W King wrote:
>> I'm running Ubuntu 10.04 with php 5.3.2.  In order to get the extension
>> to compile I had to apply the attached patch.
>
> Could you please resend that patch as a context diff?  ed script diffs
> are practically impossible to apply correctly if anything else has
> touched the file.
>
> Our hacking instructions give more hints on how to generate a worthwhile
> patch:
> http://libvirt.org/git/?p=libvirt.git;a=blob;f=HACKING
>
> Also, it would help to paste the actual compiler error that you are
> trying to address with your patch.
>
I did encounter this bug already. Its related to certain PHP version and 
the compile error is almost self-explaining (the thing almost 
unbelievable with gcc :-) )
php-libvirt-0.3-alpha/libvirt.c:19: error: duplicate static
php-libvirt-0.3-alpha/libvirt.c: In function zm_startup_libvirt
I have seen other PHP extensions with this problem. The documentation 
for writing PHP extensions is not very good and a lot of things are done 
by macros. So I am guessing that the PHP developers did add the static 
keyword to the macro...

I updated the webpage and I put the version with this correction there.

Radek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3644 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100629/a64d629d/attachment-0001.p7s>


More information about the libvir-list mailing list