telefonicaid/fiware-IoTAgent-Cplusplus

explicit the dependency from libc-ares library

hariseldon78 opened this issue · 6 comments

i found i was missing this library to complete the build. i installed it on ubuntu with the package libc-ares-dev

Before 1.1.0 IoTA was not built in ubuntu. In branch develop you can see a third_party directory with some tools needed to build (and only for this purpose). In this branch, additional software is downloaded (you can see CMakeLists.txt file to check versions we use). c-ares are included (as well as mosquitto).
Any question or problems, we will try fix it.

hello again. i'm trying to run the iotagent on ubuntu, but he has problems seeing the libssl and libcrypto libraries. he searches them with the ".so.10" suffix, and ubuntu has the ".so.1.0.0" instead. I made the 2 symbolic links but at that point i get this error:

...$ /usr/local/iot/bin/iotagent --help
/usr/local/iot/bin/iotagent: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by /usr/local/iot/bin/iotagent)
/usr/local/iot/bin/iotagent: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by /usr/local/iot/bin/iotagent)
/usr/local/iot/bin/iotagent: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by /usr/local/iot/lib/libpion-5.0.so)
/usr/local/iot/bin/iotagent: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by /usr/local/iot/lib/libpion-5.0.so)

.../lib/x86_64-linux-gnu$ ls -la libssl* libcrypto*
lrwxrwxrwx 1 root root      18 Jul 16 18:43 libcrypto.so.10 -> libcrypto.so.1.0.0
-rw-r--r-- 1 root root 1930528 Jun 11 17:32 libcrypto.so.1.0.0
lrwxrwxrwx 1 root root      15 Jul 16 18:48 libssl.so.10 -> libssl.so.1.0.0
-rw-r--r-- 1 root root  387256 Jun 11 17:32 libssl.so.1.0.0

We are testing this problem. At this moment, I think the problem may be some libraries (pion, for example) are built referencing a library version. We are building in ubuntu: (ldd over iotagent executable)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fe472eb7000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fe472adc000)
and no problem at starting iotagent.
Library version is "annotated" in building process. One question could be if you starting iotagent in same host where you are building iotagent (or with same libraries).??
(We are in develop branch)

i ran iotagent on the same machine where i built it; though i built it
before creating the symlinks to the "10 to 1.0.0" symlinks. my ubuntu

release is the 14.04.2 LTS (GNU/Linux 3.13.0-24-generic x86_64)

roby

Il giorno lun 20 lug 2015 alle ore 07:13 Agustin Gonzalez Lucas <
notifications@github.com> ha scritto:

We are testing this problem. At this moment, I think the problem may be
some libraries are built referencing a library version. We are building in
ubuntu: (ldd over iotagent executable)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0
(0x00007fe472eb7000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007fe472adc000)
and no problem at starting iotagent.
Library version is "annotated" in building process. One question could be
if you starting iotagent in same host where you are building iotagent (or
with same libraries).??


Reply to this email directly or view it on GitHub
#214 (comment)
.

Hello,
I was searching for a reason. I use Ubuntu 14.04 3.16.0-36 and I have not this problem (I don’t know who is searching for so.10).

Agustin.

De: Roberto Previdi [mailto:notifications@github.com]
Enviado el: lunes, 20 de julio de 2015 12:08
Para: telefonicaid/fiware-IoTAgent-Cplusplus
CC: AGUSTIN GONZALEZ LUCAS
Asunto: Re: [fiware-IoTAgent-Cplusplus] explicit the dependency from libc-ares library (#214)

i ran iotagent on the same machine where i built it; though i built it
before creating the symlinks to the "10 to 1.0.0" symlinks. my ubuntu

release is the 14.04.2 LTS (GNU/Linux 3.13.0-24-generic x86_64)

roby

Il giorno lun 20 lug 2015 alle ore 07:13 Agustin Gonzalez Lucas <
notifications@github.commailto:notifications@github.com> ha scritto:

We are testing this problem. At this moment, I think the problem may be
some libraries are built referencing a library version. We are building in
ubuntu: (ldd over iotagent executable)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0
(0x00007fe472eb7000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007fe472adc000)
and no problem at starting iotagent.
Library version is "annotated" in building process. One question could be
if you starting iotagent in same host where you are building iotagent (or
with same libraries).??


Reply to this email directly or view it on GitHub
#214 (comment)
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/214#issuecomment-122835236.


Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição

I follow with this problem. But, sorry, I dont understand: if you build from sources on a host with .so.10 (all dependencies are built in this host) and you start iotagent on THIS host, iotagent and pion search for .so.1.0.0. Is that what happen (or viceversa, host with .so.1.0.0 search for .so.10)?