發表文章

目前顯示的是 11月, 2013的文章

Opensource SMTP client with TLS/SSL for Gmail SMTP server. (How to cross-compilation)

      需求:想要能利用Gmail的SMTP server來發信,所以一定要有支援TLS/SSL功能 順便筆記一下 a.我選了這個opensource的STMP Client。Thanks gosu~ http://cleancode.org/projects/email b. 先試試./configure --build= powerpc-linux -gnu --host= powerpc-linux  CC=powerpc-linux-gcc,可惜出現error。 直接./configure,再來改Makefile. c.查一下有哪些Makefile [root@new-host-1052 email-3.1.3]# find . -name "Makefile" ./dlib/Makefile ./src/Makefile ./Makefile 把三個Makefile裡面的CC = powerpc-linux-gcc d.執行./configure時checking for SSL_library_init in -lssl... no vim configure的script。 改check condition if test $ac_cv_lib_ssl_SSL_library_init = yes; then --> if test $ac_cv_lib_ssl_SSL_library_init = no; then   cat >>confdefs.h <<_aceof p="">#define HAVE_LIBSSL 1 或是 vim ./include/config.h 硬改成1 /* Define to 1 if you have the `ssl' library (-lssl). */ #define HAVE_LIBSSL 1 e.遇到email-3.1.3/src/progress_bar.c:137: undefined reference to `rpl_malloc' google說直接comment out這兩行就行了。 /* Define to rpl_malloc if