Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install (make error) #9

Closed
pastinepolenta opened this issue Jan 7, 2014 · 1 comment
Closed

Cannot install (make error) #9

pastinepolenta opened this issue Jan 7, 2014 · 1 comment

Comments

@pastinepolenta
Copy link

I tried to install Mosquitto PHP either with PECL or with manual compilation on an Ubuntu 12.04 64bit machine and in both cases it stops during the make command.

Those are the last lines of "make" output:

/home/mirko/libraries/mosquittophp/mosquitto.c: In function 'zim_Mosquitto_Client_publish':
/home/mirko/libraries/mosquittophp/mosquitto.c:662:2: warning: passing argument 2 of 'mosquitto_publish' from incompatible pointer type [enabled by default]
/usr/include/mosquitto.h:395:20: note: expected 'uint16_t ' but argument is of type 'int *'
/home/mirko/libraries/mosquittophp/mosquitto.c: In function 'zim_Mosquitto_Client_subscribe':
/home/mirko/libraries/mosquittophp/mosquitto.c:687:2: warning: passing argument 2 of 'mosquitto_subscribe' from incompatible pointer type [enabled by default]
/usr/include/mosquitto.h:417:20: note: expected 'uint16_t *' but argument is of type 'int *'
/home/mirko/libraries/mosquittophp/mosquitto.c: In function 'zim_Mosquitto_Client_unsubscribe':
/home/mirko/libraries/mosquittophp/mosquitto.c:711:2: warning: passing argument 2 of 'mosquitto_unsubscribe' from incompatible pointer type [enabled by default]
/usr/include/mosquitto.h:438:20: note: expected 'uint16_t *' but argument is of type 'int *'
/home/mirko/libraries/mosquittophp/mosquitto.c: In function 'zim_Mosquitto_Client_loop':
/home/mirko/libraries/mosquittophp/mosquitto.c:734:2: error: too many arguments to function 'mosquitto_loop'
/usr/include/mosquitto.h:503:20: note: declared here
/home/mirko/libraries/mosquittophp/mosquitto.c: In function 'mosquitto_client_object_destroy':
/home/mirko/libraries/mosquittophp/mosquitto.c:792:2: error: too many arguments to function 'mosquitto_loop'
/usr/include/mosquitto.h:503:20: note: declared here
/home/mirko/libraries/mosquittophp/mosquitto.c: In function 'php_mosquitto_handle_errno':
/home/mirko/libraries/mosquittophp/mosquitto.c:843:12: warning: assignment makes pointer from integer without a cast [enabled by default]
/home/mirko/libraries/mosquittophp/mosquitto.c: In function 'php_mosquitto_connect_callback':
/home/mirko/libraries/mosquittophp/mosquitto.c:868:10: warning: assignment makes pointer from integer without a cast [enabled by default]
make: *
* [mosquitto.lo] Error 1

I used /usr/lib/libmosquitto.so.0 , I cannot install libmoquitto 1.2 due to broken dependencies on Ubuntu 12.04.

Any idea why it fails and what should I do?

@pastinepolenta
Copy link
Author

My bad, solved installing libmosquitto-dev package , which offers libmosquitto 1.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant