ssl module doesn't build correctly in R8B-0 (or R7B-3)

Michael Roszkowski <>
Thu Dec 6 19:45:00 CET 2001


I had been trying to use the ssl module in R8B-0 on RedHat Linux
machines (both RH7.0 and 7.1 with OpenSSL) and couldn't get it to work.
I noticed the same behavior on a NetBSD 1.5.1 machine. I also
tried it on an R7B-3 installation and it failed there, too. All of them
use OpenSSL. I'm not sure what other platforms might be affected.

ssl:start() complains that
   exec: /usr/local/lib/erlang/lib/ssl-2.3.3/priv/bin/ssl_esock: not
found

Looking over the installed code, ssl_esock is, indeed, not there.
It looks like the commands to build and install it have been left
out of the Makefile.in in the otp_src_R8B-0/lib/ssl/c_src/ directory.

I've attached the patch that I'm using to get around the problem. (It
assumes that you are running patch -p0 from the ERL_TOP directory.)

Was this just an oversight on the part of the development team
or was it removed for some reason (or did I just somehow mess
up the build on all of these machines)?

Thanks.
--Mike Roszkowski
-------------- next part --------------
*** lib/ssl/c_src/Makefile.in.orig	Wed Dec  5 14:38:50 2001
--- lib/ssl/c_src/Makefile.in	Wed Dec  5 14:39:55 2001
***************
*** 105,111 ****
  debug opt:
  	echo "Nothing to build for Win32"
  else
! debug opt: $(OBJDIR) $(BINDIR) $(SSL_BASE) $(EXTRA_SSL_OBJS) $(SSL_MAKEFILE)
  
  $(OBJDIR):
  	 -p $(OBJDIR)
--- 105,111 ----
  debug opt:
  	echo "Nothing to build for Win32"
  else
! debug opt: $(OBJDIR) $(BINDIR) $(SSL_BASE) $(EXTRA_SSL_OBJS) $(SSL_BINS) $(SSL_MAKEFILE)
  
  $(OBJDIR):
  	 -p $(OBJDIR)
***************
*** 156,161 ****
--- 156,162 ----
  		-e "s;%SSLEAY_LIBDIR%;$(SSLEAY_LIBDIR);" \
  		-e "s;%LDLIBS%;$(LDLIBS);" ./Makefile.win32.dist \
  		> $(RELSYSDIR)/priv/obj/Makefile
+ 	$(INSTALL_PROGRAM) $(SSL_BINS) $(RELSYSDIR)/priv/bin
  else
  release_spec: opt
  	$(INSTALL_DIR) $(RELSYSDIR)/priv/bin
***************
*** 166,171 ****
--- 167,173 ----
  		-e "s;%SSLEAY_LIBDIR%;$(SSLEAY_LIBDIR);" \
  		-e "s;%LDLIBS%;$(LDLIBS);" ./Makefile.dist \
  		> $(RELSYSDIR)/priv/obj/Makefile
+ 	$(INSTALL_PROGRAM) $(SSL_BINS) $(RELSYSDIR)/priv/bin
  endif
  
  release_docs_spec:


More information about the erlang-questions mailing list