Skip to content

Compilation error #1

Description

@gbtux

Hi,
I've got a problem to compile php-libvirt.
./phpize and ./configure --enable-libvirt are OK.
(Environment : OS : Ubuntu 13.04 / Php 5.4.9 / libvirt-dev installed)
But ./make send this stacktrace :
/tmp/php-libvirt/libvirt.c:271:5: warning: passing argument 2 of 'virSetErrorFunc' from incompatible pointer type [enabled by default]
In file included from /tmp/php-libvirt/libvirt.c:9:0:
/usr/include/libvirt/virterror.h:319:8: note: expected 'virErrorFunc' but argument is of type 'int ()(void *, struct virError *)'
/tmp/php-libvirt/libvirt.c: In function 'zif_libvirt_node_get_info':
/tmp/php-libvirt/libvirt.c:518:3: warning: passing argument 4 of 'add_assoc_string_ex' makes pointer from integer without a cast [enabled by default]
In file included from /usr/include/php5/main/php.h:39:0,
from /tmp/php-libvirt/libvirt.c:5:
/usr/include/php5/Zend/zend_API.h:379:14: note: expected 'char *' but argument is of type 'long int'
/tmp/php-libvirt/libvirt.c: In function 'zif_libvirt_domain_get_name':
/tmp/php-libvirt/libvirt.c:1016:7: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
make: *
* [libvirt.lo] Erreur 1

a solution ?
thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions