problem with linking openssl for mailsend

macports at parvis.nl macports at parvis.nl
Wed Jun 17 22:15:44 UTC 2020


my development machine is a macmini. the harddisk failed, so i restored time machine to a new disk.
but, the time machine backup (using directory hardlinks) had many missing directories, so most of my development is gone forever.

so it seems i cannot trust time machine, any suggestions are welcome ;-)



one of the problems is mailsend 'lightweight, command line SMTP email client'. i still have a binary /usr/local/bin/mailsend (2015 probably from before 10.11) but not the procedure to build it. now i'm trying to make a port for it but i have a linking problem. this one is for macos 10.13.

ref: https://github.com/muquit/mailsend

otool -L /usr/local/bin/mailsend # tis is the old one
/usr/local/bin/mailsend:
	/usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
	/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)

the readme says 

./configure --with-openssl=/usr
not using macports but apple this results in 
./mailsend -V
mailsend Version: @(#) mailsend v1.19
Not Compiled OpenSSL, some auth methods will be unavailable

i have openssl @1.1.1g_0 installed and port contents shows

/opt/local/lib/libcrypto.1.1.dylib
/opt/local/lib/libcrypto.dylib ->
/opt/local/lib/libssl.1.1.dylib
/opt/local/lib/libssl.dylib ->

i need to specify the include and lib directory so i tried

./configure --with-openssl /opt/local --with-openssl-includes /opt/local/include/openssl --with-openssl-libraries /opt/local/lib
make clean && make
./mailsend -V
mailsend Version: @(#) mailsend v1.19
Not Compiled OpenSSL, some auth methods will be unavailable

otool -L mailsend
mailsend:
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)

any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200618/e6a8e461/attachment.htm>


More information about the macports-dev mailing list