Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Cannot compile develop branch

Hi Tatsuzo,

That error would occur if port 1888 was already in use for some other
reason, could that be the case?

Cheers,

Roger



On 14 June 2017 at 13:04, Tatsuzo Osawa <tatsuzo.osawa@xxxxxxxxx> wrote:
> Hi there,
>
> Regarding test, I found error of "make test" even in original version
> of master branch.
>
> --------------------------------------
> (snip)
> ./02-subpub-qos1.py
> Traceback (most recent call last):
>   File "./02-subpub-qos1.py", line 30, in <module>
>     broker = mosq_test.start_broker(filename=os.path.basename(__file__),
> cmd=cmd)
>   File "/home/centos/mosquitto/test/mosq_test.py", line 21, in start_broker
>     c = socket.create_connection(("localhost", port))
>   File "/usr/lib64/python2.7/socket.py", line 571, in create_connection
>     raise err
> socket.error: [Errno 99] Cannot assign requested address
> make[2]: *** [02] Error 1
> make[2]: Leaving directory `/home/centos/mosquitto/test/broker'
> make[1]: *** [test] Error 2
> make[1]: Leaving directory `/home/centos/mosquitto/test'
> make: *** [test] Error 2
> --------------------------------------
>
> After I revised test/broker/Makefile to skip test-02, I found same
> error : "socket.error: [Errno 99] Cannot assign requested address" in
> test-03.
>
> --------------------------------------
> (snip)
> ./03-publish-b2c-disconnect-qos1.py
> 1497440954: mosquitto version 1.4.12 (build date 2017-06-14
> 11:42:06+0000) starting
> 1497440954: Config loaded from 03-publish-b2c-disconnect-qos1.conf.
> 1497440954: Opening ipv4 listen socket on port 1888.
> 1497440954: Opening ipv6 listen socket on port 1888.
> 1497440954: New connection from 127.0.0.1 on port 1888.
> 1497440954: Socket error on client <unknown>, disconnecting.
> 1497440954: Error in poll: Interrupted system call.
> 1497440954: mosquitto version 1.4.12 terminating
>
> Traceback (most recent call last):
>   File "./03-publish-b2c-disconnect-qos1.py", line 35, in <module>
>     sock = mosq_test.do_client_connect(connect_packet, connack_packet)
>   File "/home/centos/mosquitto/test/mosq_test.py", line 68, in do_client_connect
>     sock.connect((hostname, port))
>   File "/usr/lib64/python2.7/socket.py", line 224, in meth
>     return getattr(self._sock,name)(*args)
> socket.error: [Errno 99] Cannot assign requested address
> make[2]: *** [03] Error 1
> make[2]: Leaving directory `/home/centos/mosquitto/test/broker'
> make[1]: *** [test] Error 2
> make[1]: Leaving directory `/home/centos/mosquitto/test'
> make: *** [test] Error 2
> --------------------------------------
>
> How can I solve it ?
> Please advise also about the make failure issue on develop branch in
> my former mail.
>
> Regards,
> Tatsuzo Osawa
>
> 2017-06-11 21:37 GMT+09:00 Tatsuzo Osawa <tatsuzo.osawa@xxxxxxxxx>:
>> Hi there,
>>
>> I am planning to make a pull-request to mosquitto.
>>
>> But, the develop branch cannot be complied while the master branch can be.
>>
>> Is there something wrong?
>>
>> --- Result of "make binary" (on the develop branch, CentOS7)
>> (snip)
>>  /home/centos/mosquitto/src/conf.c:959: undefined reference to
>> `_mosquitto_log_printf'
>> security.o: In function `mosquitto_acl_check':
>> /home/centos/mosquitto/src/security.c:386: undefined reference to
>> `_mosquitto_log_printf'
>> /home/centos/mosquitto/src/security.c:374: undefined reference to
>> `mosquito_client_username'
>> security_default.o: In function `mosquitto_acl_check_default':
>> /home/centos/mosquitto/src/security_default.c:281: undefined reference
>> to `_mosquitto_log_printf'
>> collect2: error: ld returned 1 exit status
>> make[1]: *** [mosquitto] Error 1
>> make[1]: Leaving directory `/home/centos/mosquitto/src'
>> make: *** [mosquitto] Error 2
>>
>> Regards,
>>
>> Tatsuzo Osawa
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top