Message-Id: <200505220433.j4M4XL6p017452@delorie.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Gary R. Van Sickle" To: Subject: RE: ssl on ssmtp Date: Sat, 21 May 2005 23:33:06 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_001A_01C55E5D.714390B0" In-Reply-To: X-IsSubscribed: yes Note-from-DJ: This may be spam ------=_NextPart_000_001A_01C55E5D.714390B0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit > -----Original Message----- > From: cygwin-owner AT cygwin DOT com > [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Robert R > Schneck-McConnell > Sent: Saturday, December 04, 2004 7:15 PM > To: cygwin AT cygwin DOT com > Cc: Reinhold May > Subject: Re: ssl on ssmtp > > Two general points: > (1) Don't e-mail cygwin package maintainers directly; use the > mailing list. Some maintainers don't like private e-mail, > and it helps to have things in the archive. > (2) Read the package README files in /usr/share/doc/Cygwin/. > > On Fri, 3 Dec 2004, Reinhold May wrote: > > I've been using ssmtp quite successfully for some time > now but > > I've just recently found out that my email provider > now supports > > smtp over ssl and I'd really like to use that. > > > > Not finding any maintainer homepage for ssmtp, I > thought I just > > try to contact you as the maintainer of the cygwin version > (and maybe > > that's the only version there is?). > > The upstream source is the Debian package at > http://packages.debian.org/testing/mail/ssmtp > (Hmm; looks like it's time for an upgrade) > > > First of all, I don't know if the cygwin configuration is by > > default configured with '--enable-ssl' as it definitely wasn't > > configured with '--enable-logfile' so I wonder, if I have to > > compile a new version in the first place (if it's in, I don't). > > It does not have --enable-ssl on by default; this question is > answered in /usr/share/doc/Cygwin/ssmtp*README > > Perhaps ssmtp should --enable-ssl by default? Opinions? > I vote yes. You aren't forced to use it, and the necessary DLLs (cygcrypto and cygssl) will probably be needed for some other program anyway, so you really aren't increasing download size any. ("So this is how bloat begins, with roaring applause." ;-)) > > Secondly, I tried to compile 'ssmtp' configured with > > '--enable-ssl' and the linker gives me the following error > > message: > > > > ssmtp.o(.text+0x1716): In function `smtp_open': > > /usr/src/ssmtp-2.60.9-3/ssmtp.c:1119: undefined reference to > > `_X509_free' > > > > I commented the line out and I got an executable > which I could > > install and run, > > I don't know what the right fix would be. > This one lives in libcrypto.a. The attached configure.in and an autoconf solve the link error for me (don't know if it actually works yet). All I changed was this on line 55: LIBS="$LIBS -lssl -lcrypto" -- Gary R. Van Sickle ------=_NextPart_000_001A_01C55E5D.714390B0 Content-Type: application/octet-stream; name="configure.in" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="configure.in" dnl Process this file with autoconf to produce a configure script. AC_INIT(ssmtp.c) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(limits.h strings.h syslog.h unistd.h) AC_CACHE_CHECK([for obsolete openlog],ssmtp_cv_obsolete_openlog, [ AC_TRY_COMPILE([#include ] , [ openlog("xx",1); ] ,=20 ssmtp_cv_obsolete_openlog=3Dyes, ssmtp_cv_obsolete_openlog=3Dno)] ) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_STRUCT_TM dnl Checks for libraries. AC_CHECK_LIB(nsl, gethostname) AC_CHECK_LIB(socket, socket) dnl Checks for library functions. AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_CHECK_FUNCS(gethostname socket strdup strstr) dnl Check for optional features AC_ARG_ENABLE(logfile,=20 [ --enable-logfile additional logging over and above syslog]) if test x$enableval =3D xyes ; then AC_DEFINE(LOGFILE) fi enableval=3D"" AC_ARG_ENABLE(rewrite-domain, [ --disable-rewrite-domain support for rewriting the sending domain]) if test x$enableval !=3D xno ; then AC_DEFINE(REWRITE_DOMAIN) fi enableval=3D"" AC_ARG_ENABLE(ssl, [ --enable-ssl support for secure connection to mail server]) if test x$enableval =3D xyes ; then AC_DEFINE(HAVE_SSL) LIBS=3D"$LIBS -lssl -lcrypto" fi enableval=3D"" AC_ARG_ENABLE(inet6, [ --enable-inet6 support for IPv6 transport]) if test x$enableval =3D xyes ; then AC_DEFINE(INET6) fi enableval=3D"" AC_ARG_ENABLE(md5suth, [ --enable-md5suth support for MD5 authentication]) if test x$enableval =3D xyes ; then AC_DEFINE(MD5AUTH) SRCS=3D"$SRCS md5auth/md5c.c md5auth/hmac_md5.c" fi enableval=3D"" AC_SUBST(SRCS) AC_OUTPUT(Makefile) ------=_NextPart_000_001A_01C55E5D.714390B0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_001A_01C55E5D.714390B0--