Those are the errors you get if you
compile against an older version of OpenSSL (less than 1, I
thought). I would check that you are using the version of OpenSSL
that you think you are (1.0.1e should be ok).
Yesterday I checked in some changes to allow this compilation to
work, as the Eclipse build servers have an older version of
OpenSSL. If you check out the latest code, you should find it
works anyway.
Ian
On 08/02/2013 06:50 AM, Bharath Balaraj wrote:
Hi,
I am running into compilation errors trying to "make" the Paho C
Client-Mosquitto.
The non-ssl versions (synchronous-libmqttv3c.so and
asynchronous-libmqttv3a.so) compiles fine, WITH-SSL
versions(libmqttv3as.so and libmqttv3cs.so) throw in compilation
errors. Help on this will be appreciated.
Here are some details which may be of help:
OpenSSL Version: OpenSSL 1.0.1e 11 Feb 2013
OS: Ubuntu 10.04 i686 Desktop version
Log:
----------------------------------------------------------------------------------------------------------------------------------
~/Mqtt/org.eclipse.paho.mqtt.c-master/build$ export
SSL_DIR=/usr/local/ssl
~/Mqtt/org.eclipse.paho.mqtt.c-master/build$ export
MQTTCLIENT_DIR=../src
~/Mqtt/org.eclipse.paho.mqtt.c-master/build$ export
BUILD_SAMPLES=YES
~/Mqtt/org.eclipse.paho.mqtt.c-master/build$ export
SAMPLES_DIR=../src/samples
~/Mqtt/org.eclipse.paho.mqtt.c-master/build$ make
gcc -m64 -fPIC -Os -Wall -shared -Wl,-soname,libmqttv3cs.so
-ldl -Wl,-whole-archive -L/usr/local/ssl/output/lib -lcrypto
-lssl -Wl,-no-whole-archive -o linux_i686/libmqttv3cs.so
../src/Clients.c ../src/Heap.c ../src/LinkedList.c ../src/Log.c
../src/Messages.c ../src/MQTTClient.c ../src/MQTTPacket.c
../src/MQTTPacketOut.c ../src/MQTTPersistence.c
../src/MQTTPersistenceDefault.c ../src/MQTTProtocolClient.c
../src/MQTTProtocolOut.c ../src/SocketBuffer.c ../src/Socket.c
../src/SSLSocket.c ../src/StackTrace.c ../src/Thread.c
../src/Tree.c ../src/utf-8.c -DOPENSSL
../src/SSLSocket.c:134: error: ‘X509_V_ERR_DIFFERENT_CRL_SCOPE’
undeclared here (not in a function)
../src/SSLSocket.c:135: error:
‘X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE’ undeclared here (not
in a function)
../src/SSLSocket.c:137: error: ‘X509_V_ERR_PERMITTED_VIOLATION’
undeclared here (not in a function)
../src/SSLSocket.c:138: error: ‘X509_V_ERR_EXCLUDED_VIOLATION’
undeclared here (not in a function)
../src/SSLSocket.c:139: error: ‘X509_V_ERR_SUBTREE_MINMAX’
undeclared here (not in a function)
../src/SSLSocket.c:140: error:
‘X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE’ undeclared here (not in
a function)
../src/SSLSocket.c:141: error:
‘X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX’ undeclared here (not
in a function)
../src/SSLSocket.c:142: error:
‘X509_V_ERR_UNSUPPORTED_NAME_SYNTAX’ undeclared here (not in a
function)
../src/SSLSocket.c:284: error: expected ‘)’ before ‘*’ token
../src/SSLSocket.c: In function ‘SSLSocket_initialize’:
../src/SSLSocket.c:338: warning: implicit declaration of
function ‘CRYPTO_THREADID_set_callback’
../src/SSLSocket.c:338: error: ‘SSLThread_id’ undeclared (first
use in this function)
../src/SSLSocket.c:338: error: (Each undeclared identifier is
reported only once
../src/SSLSocket.c:338: error: for each function it appears in.)
make: *** [linux_i686/libmqttv3cs.so] Error 1
--------------------------------------------------------------------------------------------------------------------------------
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev