compile mosquitto has error

Asked by Ken

when compiling Mosquitto 1.4.4

first, I config WITH_SRV:=no, WITH_WEBSOCKETS=yes
and then make

some errors occur as follow:

make[1]: Leaving directory `/avatar/mosquitto-1.4.4/client'
make[1]: Entering directory `/avatar/mosquitto-1.4.4/src'
cc -Wall -ggdb -O2 -I. -I.. -I../lib -DVERSION="\"1.4.4\"" -DTIMESTAMP="\"2015-10-30 11:03:57+0800\"" -DWITH_BROKER -DWITH_TLS -DWITH_TLS_PSK -DWITH_UUID -DWITH_BRIDGE -DWITH_PERSISTENCE -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_WEBSOCKETS -DWITH_EC -c net.c -o net.o
net.c: In function ‘_mosquitto_tls_server_ctx’:
net.c:245: error: ‘EC_KEY’ undeclared (first use in this function)
net.c:245: error: (Each undeclared identifier is reported only once
net.c:245: error: for each function it appears in.)
net.c:245: error: ‘ecdh’ undeclared (first use in this function)
net.c:288: warning: implicit declaration of function ‘EC_KEY_new_by_curve_nameâ€
net.c:294: warning: implicit declaration of function ‘EC_KEY_free’
make[1]: *** [net.o] Error 1
make[1]: Leaving directory `/avatar/mosquitto-1.4.4/src'
make: *** [mosquitto] Error 2

plz help me check that question, thx alot.

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Ken
Solved:
Last query:
Last reply:
Revision history for this message
Roger Light (roger.light) said :
#1

Hi,

It sounds like your Openssl is out of date, either update it or build using
WITH_EC=no

Cheers,

Roger
On Oct 30, 2015 3:13 AM, "Ken" <email address hidden> wrote:

> New question #273391 on mosquitto:
> https://answers.launchpad.net/mosquitto/+question/273391
>
> when compiling Mosquitto 1.4.4
>
> first, I config WITH_SRV:=yes , WITH_WEBSOCKETS=yes
> and then make
>
> some errors occur as follow:
>
>
> make[1]: Leaving directory `/avatar/mosquitto-1.4.4/client'
> make[1]: Entering directory `/avatar/mosquitto-1.4.4/src'
> cc -Wall -ggdb -O2 -I. -I.. -I../lib -DVERSION="\"1.4.4\""
> -DTIMESTAMP="\"2015-10-30 11:03:57+0800\"" -DWITH_BROKER -DWITH_TLS
> -DWITH_TLS_PSK -DWITH_UUID -DWITH_BRIDGE -DWITH_PERSISTENCE
> -DWITH_MEMORY_TRACKING -DWITH_SYS_TREE -DWITH_WEBSOCKETS -DWITH_EC -c net.c
> -o net.o
> net.c: In function ‘_mosquitto_tls_server_ctx’:
> net.c:245: error: ‘EC_KEY’ undeclared (first use in this function)
> net.c:245: error: (Each undeclared identifier is reported only once
> net.c:245: error: for each function it appears in.)
> net.c:245: error: ‘ecdh’ undeclared (first use in this function)
> net.c:288: warning: implicit declaration of function
> ‘EC_KEY_new_by_curve_nameâ€
> net.c:294: warning: implicit declaration of function ‘EC_KEY_free’
> make[1]: *** [net.o] Error 1
> make[1]: Leaving directory `/avatar/mosquitto-1.4.4/src'
> make: *** [mosquitto] Error 2
>
>
> plz help me check that question, thx alot.
>
> --
> You received this question notification because your team Mosquitto PPA
> is an answer contact for mosquitto.
>

Revision history for this message
Ken (kk543210) said :
#2

I update WITH_EC=no and it's work !
thx!