ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ phpize Configuring for: PHP Api Version: 20170718 Zend Module Api No: 20170718 Zend Extension Api No: 320170718 autoconf: warning: both `configure.ac' and `configure.in' are present. autoconf: warning: proceeding with `configure.ac'. autoheader: 'configure.ac' and 'configure.in' both present. autoheader: proceeding with 'configure.ac' ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ ./configure checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php/20170718 -I/usr/include/php/20170718/main -I/usr/include/php/20170718/TSRM -I/usr/include/php/20170718/Zend -I/usr/include/php/20170718/ext -I/usr/include/php/20170718/ext/date/lib checking for PHP extension directory... /usr/lib/php/20170718 checking for PHP installed headers prefix... /usr/include/php/20170718 checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for mosquitto support... yes, shared checking for mosquitto files in default path... checking /usr... found in /usr checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether strerror_r is declared... yes checking for strerror_r... yes checking whether strerror_r returns char *... no checking how to print strings... printf checking for a sed that does not truncate output... (cached) /bin/sed checking for fgrep... /bin/grep -F checking for ld used by cc... /usr/bin/x86_64-linux-gnu-ld checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged config.status: executing libtool commands ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ make /bin/bash /home/ubuntu/Mosquitto-PHP/libtool --mode=install cp ./mosquitto.la /home/ubuntu/Mosquitto-PHP/modules libtool: install: cp ./.libs/mosquitto.so /home/ubuntu/Mosquitto-PHP/modules/mosquitto.so libtool: install: cp ./.libs/mosquitto.lai /home/ubuntu/Mosquitto-PHP/modules/mosquitto.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin" ldconfig -n /home/ubuntu/Mosquitto-PHP/modules ---------------------------------------------------------------------- Libraries have been installed in: /home/ubuntu/Mosquitto-PHP/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ make test Build complete. Don't forget to run 'make test'. PHP Warning: PHP Startup: mosquitto: Unable to initialize module Module compiled with module API=20151012 PHP compiled with module API=20170718 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: mosquitto: Unable to initialize module Module compiled with module API=20151012 PHP compiled with module API=20170718 These options need to match in Unknown on line 0 ===================================================================== PHP : /usr/bin/php7.2 Warning: PHP Startup: mosquitto: Unable to initialize module Module compiled with module API=20151012 PHP compiled with module API=20170718 These options need to match in Unknown on line 0 PHP_SAPI : cli PHP_VERSION : 7.2.9-1+ubuntu18.04.1+deb.sury.org+1 ZEND_VERSION: 3.2.0 PHP_OS : Linux - Linux ip-172-30-2-67 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64 INI actual : /home/ubuntu/Mosquitto-PHP/tmp-php.ini More .INIs : CWD : /home/ubuntu/Mosquitto-PHP Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2018-08-23 14:40:19 ===================================================================== FAIL Mosquitto\Client::__construct() [tests/Client/__construct.phpt] FAIL Mosquitto\Client::setWill() [tests/Client/clearWill.phpt] FAIL Mosquitto\Client::connect() [tests/Client/connect.phpt] FAIL Mosquitto\Client::disconnect() [tests/Client/disconnect.phpt] FAIL Mosquitto\Client::exitLoop() [tests/Client/exitLoop.phpt] FAIL Mosquitto\Client::getSocket() [tests/Client/getSocket.phpt] FAIL Mosquitto\Client::loop() [tests/Client/loop.phpt] FAIL Mosquitto\Client::loopForever() [tests/Client/loopForever.phpt] FAIL Mosquitto\Client::onConnect() [tests/Client/onConnect.phpt] FAIL Mosquitto\Client::onDisconnect() [tests/Client/onDisconnect.phpt] FAIL Mosquitto\Client::onLog() [tests/Client/onLog.phpt] FAIL Mosquitto\Client::onMessage() [tests/Client/onMessage.phpt] FAIL Mosquitto\Client::onSubscribe() [tests/Client/onSubscribe.phpt] FAIL Mosquitto\Client::onUnsubscribe() [tests/Client/onUnsubscribe.phpt] FAIL Mosquitto\Client::publish() [tests/Client/publish.phpt] FAIL Mosquitto\Client::setCredentials() [tests/Client/setCredentials.phpt] FAIL Mosquitto\Client::setMaxInFlightMessages() [tests/Client/setMaxInFlightMessages.phpt] FAIL Mosquitto\Client::setMessageRetry() [tests/Client/setMessageRetry.phpt] FAIL Mosquitto\Client::setReconnectDelay() [tests/Client/setReconnectDelay.phpt] FAIL Mosquitto\Client::setTlsCertificates() [tests/Client/setTlsCertificates.phpt] FAIL Mosquitto\Client::setTlsInsecure() [tests/Client/setTlsInsecure.phpt] FAIL Mosquitto\Client::setTlsOptions() [tests/Client/setTlsOptions.phpt] FAIL Mosquitto\Client::setTlsPSK() [tests/Client/setTlsPSK.phpt] FAIL Mosquitto\Client::setWill() [tests/Client/setWill.phpt] FAIL Mosquitto\Client::subscribe() [tests/Client/subscribe.phpt] FAIL Mosquitto\Client::unsubscribe() [tests/Client/unsubscribe.phpt] FAIL Mosquitto\Message::__construct() [tests/Message/__construct.phpt] FAIL Mosquitto\Message::tokeniseTopic() [tests/Message/tokeniseTopic.phpt] FAIL Mosquitto\Message::topicMatchesSub() [tests/Message/topicMatchesSub.phpt] ===================================================================== TIME END 2018-08-23 14:40:19 ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 0 Exts tested : 14 --------------------------------------------------------------------- Number of tests : 29 29 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 29 (100.0%) (100.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 0 ( 0.0%) ( 0.0%) --------------------------------------------------------------------- Time taken : 0 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Mosquitto\Client::__construct() [tests/Client/__construct.phpt] Mosquitto\Client::setWill() [tests/Client/clearWill.phpt] Mosquitto\Client::connect() [tests/Client/connect.phpt] Mosquitto\Client::disconnect() [tests/Client/disconnect.phpt] Mosquitto\Client::exitLoop() [tests/Client/exitLoop.phpt] Mosquitto\Client::getSocket() [tests/Client/getSocket.phpt] Mosquitto\Client::loop() [tests/Client/loop.phpt] Mosquitto\Client::loopForever() [tests/Client/loopForever.phpt] Mosquitto\Client::onConnect() [tests/Client/onConnect.phpt] Mosquitto\Client::onDisconnect() [tests/Client/onDisconnect.phpt] Mosquitto\Client::onLog() [tests/Client/onLog.phpt] Mosquitto\Client::onMessage() [tests/Client/onMessage.phpt] Mosquitto\Client::onSubscribe() [tests/Client/onSubscribe.phpt] Mosquitto\Client::onUnsubscribe() [tests/Client/onUnsubscribe.phpt] Mosquitto\Client::publish() [tests/Client/publish.phpt] Mosquitto\Client::setCredentials() [tests/Client/setCredentials.phpt] Mosquitto\Client::setMaxInFlightMessages() [tests/Client/setMaxInFlightMessages.phpt] Mosquitto\Client::setMessageRetry() [tests/Client/setMessageRetry.phpt] Mosquitto\Client::setReconnectDelay() [tests/Client/setReconnectDelay.phpt] Mosquitto\Client::setTlsCertificates() [tests/Client/setTlsCertificates.phpt] Mosquitto\Client::setTlsInsecure() [tests/Client/setTlsInsecure.phpt] Mosquitto\Client::setTlsOptions() [tests/Client/setTlsOptions.phpt] Mosquitto\Client::setTlsPSK() [tests/Client/setTlsPSK.phpt] Mosquitto\Client::setWill() [tests/Client/setWill.phpt] Mosquitto\Client::subscribe() [tests/Client/subscribe.phpt] Mosquitto\Client::unsubscribe() [tests/Client/unsubscribe.phpt] Mosquitto\Message::__construct() [tests/Message/__construct.phpt] Mosquitto\Message::tokeniseTopic() [tests/Message/tokeniseTopic.phpt] Mosquitto\Message::topicMatchesSub() [tests/Message/topicMatchesSub.phpt] ===================================================================== You may have found a problem in PHP. This report can be automatically sent to the PHP QA team at http://qa.php.net/reports and http://news.php.net/php.qa.reports This gives us a better understanding of PHP's behavior. If you don't want to send the report immediately you can choose option "s" to save it. You can then email it to qa-reports@lists.php.net later. Do you want to send this report now? [Yns]: n Makefile:134: recipe for target 'test' failed make: *** [test] Error 1 ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ ubuntu@ip-172-30-2-67:~/Mosquitto-PHP$ sudo make install Installing shared extensions: /usr/lib/php/20170718/