muquit / mailsend

A program to send mail via SMTP from command line
Other
294 stars 68 forks source link

Help needed for cross-compiling openssl #77

Open Atropal1 opened 9 years ago

Atropal1 commented 9 years ago

Good morning

I really like your Linux program MAILSEND. I have been in trouble for weeks because I'm not able to cross-compile and build it for my NETGEAR DGN2200V1 router (with a system on chip based on BROADCOM BCM6358, MIPS architecture with big endian). I AM able to cross-compile it with NO OPENSSL and it works on the router. The problem is that I'm NOT able to cross-compile it WITH OPENSSL. And I need SSL support for GMAIL. Can you please help me? 1) Which exact version of MAILSEND do I have to use? 2) Which exact version of OPENSSL do I have to use? 3) What directory structure and what files does MAILSEND look for integrating OPENSSL support? 4) Do OPENSSL files need to be compiled libraries or library sources? 5) In case compiled libraries are needed do they need to be compiled for Ubuntu (the operating system I'm using to cross-compile [I'll transfer the compilation outputs to the NETGEAR router later]) or do they need to be cross-compiled too? 6) Which commands do I need to run to compile OPENSSL with my setup? 7) Which commands do I need to run to compile MAILSEND with my setup?

Please see the following web page to have a more precise idea of the system needed (you can also find the toolchain for cross-compiling here):

https://folini.wordpress.com/2011/10/08/compilare-una-libreria-per-modfs/

Thank you very much in advance!

muquit commented 9 years ago

Use mailsend v1.17b15. OpenSSL needs to be compiled and installed first. Any version of OpenSSL will work, but you want to use the latest version if possible. configure has several options to specify the location of OpenSSL. Example:

./configure --with-openssl=/usr

There are two more options --with-openssl-includes=<dir> and --with-openssl-libraris=<dir> if OpenSSL is installed in non-standard places.

At the end configure will generate Makefile and OpenSSL related variables in Makefile will look something like:

OPENSSL_DIR=/usr
OPENSSL_INC=-I/usr/include
OPENSSL_LIBS=-L/usr/lib -lssl -lcrypto -ldl

If you can not use configure for some reason, add the define -DHAVE_OPENSSL=1 and the above mentioned variables with correct values in the Makefile manually.

Thanks.