<div class="gmail_extra">Hi,<br><br>I suppose you need to install OpenSSL-dev (from the error it looks like you are missing some OpenSSL headers).<br><br>CGS<br><br><br><br><br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 2:17 PM,  <span dir="ltr"><<a href="mailto:claudef@br.ibm.com" target="_blank">claudef@br.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="sans-serif">Dear colleagues,</font>
<br>
<br><font face="sans-serif"> I'm compiling an Erlang  environment
under the SUSE SLES 11 SP1 on a S390 platform building it from the source.
I'm facing an error condition when adding the support for OpenSSL and Erlang
"crypto" support using the following configuration: </font>
<br>
<br><font face="sans-serif">.</font><tt><font>/configure
--with-ssl --with-ssl=/usr/lib64/openssl</font></tt>
<br>
<br><font face="sans-serif">The configure completes normal, but
the subsequent "make" step throws a sequence of errors like this:
</font>
<br><font face="sans-serif">.. </font>
<br><tt><font>crypto.c: In function âhmac_md5â:</font></tt>
<br><tt><font>crypto.c:1713: error: âMD5_CTXâ undeclared (first
use in this function)</font></tt>
<br><tt><font>crypto.c:1713: error: expected â;â before âctxâ</font></tt>
<br><tt><font>crypto.c:1714: warning: ISO C90 forbids mixed declarations
and code</font></tt>
<br><tt><font>crypto.c:1737: error: âctxâ undeclared (first use
in this function)</font></tt>
<br><tt><font>crypto.c: In function âhmac_sha1â:</font></tt>
<br><tt><font>crypto.c:1752: error: âSHA_CTXâ undeclared (first
use in this function)</font></tt>
<br><tt><font>crypto.c:1752: error: expected â;â before âctxâ</font></tt>
<br><tt><font>crypto.c:1753: warning: ISO C90 forbids mixed declarations
and code</font></tt>
<br><tt><font>crypto.c:1776: error: âctxâ undeclared (first use
in this function)</font></tt>
<br><tt><font>make[4]: *** [../priv/obj/s390x-ibm-linux-gnu/crypto.o]
Error 1</font></tt>
<br><tt><font>make[4]: Leaving directory `/opt/erlang/otp_src_R14B03/lib/crypto/c_src'</font></tt>
<br><tt><font>make[3]: *** [opt] Error 2</font></tt>
<br><tt><font>make[3]: Leaving directory `/opt/erlang/otp_src_R14B03/lib/crypto/c_src'</font></tt>
<br><tt><font>make[2]: *** [opt] Error 2</font></tt>
<br><tt><font>make[2]: Leaving directory `/opt/erlang/otp_src_R14B03/lib/crypto'</font></tt>
<br><tt><font>make[1]: *** [opt] Error 2</font></tt>
<br><tt><font>make[1]: Leaving directory `/opt/erlang/otp_src_R14B03/lib'</font></tt>
<br><tt><font>make: *** [libs] Error 2</font></tt>
<br><tt><font>..</font></tt>
<br>
<br><font face="sans-serif"> Without OpenSSL support, the Erlang
package compiles successfully and I've tested it with the console prompt.
</font>
<br><font face="sans-serif">Thanks in advance for your hints how
to fix this issue with the crypto module. </font>
<br><font face="sans-serif">  </font>
<br><font face="sans-serif">Regards, </font>
<br><font face="sans-serif">Claude </font>
<br><font face="sans-serif"><br>
</font><font size="1" color="#a2a2a2" face="Arial"><b><br>
Claude Falbriard <br>
Certified IT Specialist L2 - Middleware<br>
AMS Hortolândia / SP - Brazil<br>
phone:    +55 19 9837 0789<br>
cell:         +55 13 8117 3316<br>
e-mail:    <a href="mailto:claudef@br.ibm.com" target="_blank">claudef@br.ibm.com</a><br>
</b></font><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>