Hi Michael, On Wed, May 14, 2014 20:41, Michael Maclean wrote: > Hi! > > > On 14 May 2014, at 11:09, Anatol Belski <[email protected]> wrote: > > >> Hi Michael >> >> >> On Mon, May 12, 2014 16:28, PECL Announce wrote: >> >>> The new PECL package Mosquitto-0.2.2 (alpha) has been released at >>> http://pecl.php.net/. >>> >>> >> I'm currently looking to add the windows support for the mosquitto ext. >> Building the libmosquitto with VC11 is fine, but building it with VC9 >> is somehow broken. > > I’ve not tried to build it on Windows myself. Have you got a log of the > errors I could take to the upstream developers? > >> Also, as I understand, the mosquitto server can run even as service >> on a windows host, however the libmosquitto would also make it possible > to >> communicate with a non-localhost service, right? > > Yes, that’s correct - the client library should be able to speak to any > compliant server. > thanks for merging that :).
The issues on the libmosquitto are minimal. - it seems to target Windows Vista and that's hardcoded at least here https://bitbucket.org/oojah/mosquitto/src/4deedcb49ff50be94166701f21e5c79ff7667d5b/lib/time_mosq.c?at=default#cl-36 PHP 5.4 is the last one supporting WinXP actually, so I've changed it to #define _WIN32_WINNT _WIN32_WINNT_WINXP Still I'm not sure the maintainers didn't do that on purpose for some other features (or just because winxp has reached its EOL). - for the vc9 support there are a couple of macros failing, EPROTO and EINGROGRESS. I've solved it defining this in mosquitto.c and net_mosq.c #define EINPROGRESS WSAEINPROGRESS # define EPROTO -15 - a general issue is the cmake script. libmosquitto depends on openssl, but also on pthreads and optionally c-ares. While the path to the openssl bins is configurable, the others are hardcoded. That's not of a big issue as one can hack those paths manually, IMHO it should be configurable like the openssl dep. Here are the corresponding places https://bitbucket.org/oojah/mosquitto/src/4deedcb49ff50be94166701f21e5c79ff7667d5b/lib/CMakeLists.txt?at=default#cl-7 https://bitbucket.org/oojah/mosquitto/src/4deedcb49ff50be94166701f21e5c79ff7667d5b/lib/CMakeLists.txt?at=default#cl-54 If you need a snapshot before the new release, please just ping. Regards Anatol -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
