<div class="gmail_extra">I suppose you can pass --with-ssl-lib=SSL_LIBRARY_PATH and --with-ssl-include=SSL_INCLUDE_PATH.<br><br>And, yes, there should be libopenssl-devel under SuSE.<br><br>CGS<br><br><br><br><br><div class="gmail_quote">
On Thu, Apr 26, 2012 at 8:20 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">Thanks, for the quick reply. The issue
with the </font><tt><font>crypto.c</font></tt><font face="sans-serif">
clearly relates to OpenSSL. Unfortunately an openssl-devel package
is not available from Novell SUSE. I've downloaded the latest source
packages of Kerberos 5 (MIT) and as well as OpenSSL. Remains some doubts
how to use the configuration arguments described in the Erlang install
process </font>
<br>
<br><tt><font size="3">--with-ssl=PATH</font></tt><font size="3"> - Specify
location of OpenSSL include and lib </font>
<br>
<br><font face="sans-serif">Is there an example how to setup this
PATH? </font>
<br>
<br><font face="sans-serif"><u>Questions: </u></font>
<br>
<br><font face="sans-serif">1 - What exactly goes into the
PATH argument of </font><tt><font>with-ssl=</font></tt><font face="sans-serif">
? Is there an example how to use it? </font>
<br>
<br><font face="sans-serif">2 - Why does the /configure shell
search for the </font><tt><font>krb5.h</font></tt><font face="sans-serif">
only under the location of </font><tt><font> /usr/include</font></tt><font face="sans-serif">
</font>
<br>
<br><font face="sans-serif">Those are the locations generated by
Kerberos5: </font>
<br><tt><font> /usr/local/include/krb5.h</font></tt>
<br><tt><font> /usr/local/include/krb5/krb5.h</font></tt>
<br>
<br><font face="sans-serif">and for the openssl package</font>
<br><tt><font> /usr/local/ssl/bin/openssl</font></tt>
<br><tt><font> /usr/local/ssl/include/openssl</font></tt>
<br>
<br><tt><font>3. </font></tt><font face="sans-serif">Any
modules need to be placed under </font><tt><font>/usr/include</font></tt><font face="sans-serif">
(default path of ./configure) ? </font>
<br>
<br><font face="sans-serif">Thanks in advance for your support to
add crypto (ssl) suport to Erlang. </font>
<br><div class="im">
<br><font face="sans-serif">Regards, </font>
<br><font face="sans-serif">Claude</font>
<br><font face="sans-serif"><br>
</font><font color="#a2a2a2" face="Arial" size="1"><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>
<br>
<br></div><font color="#5f5f5f" face="sans-serif" size="1">From:
</font><font face="sans-serif" size="1">CGS <<a href="mailto:cgsmcmlxxv@gmail.com" target="_blank">cgsmcmlxxv@gmail.com</a>></font>
<br><font color="#5f5f5f" face="sans-serif" size="1">To:
</font><font face="sans-serif" size="1"><a href="mailto:claudef@br.ibm.com" target="_blank">claudef@br.ibm.com</a></font>
<br><font color="#5f5f5f" face="sans-serif" size="1">Cc:
</font><font face="sans-serif" size="1">Erlang-Questions Questions
<<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>></font>
<br><font color="#5f5f5f" face="sans-serif" size="1">Date:
</font><font face="sans-serif" size="1">26/04/2012 10:03</font>
<br><font color="#5f5f5f" face="sans-serif" size="1">Subject:
</font><font face="sans-serif" size="1">Re: [erlang-questions]
Issues with Erlang Build under SUSE SLES 11 SP 1 on S390</font>
<br>
<hr noshade><div class="HOEnZb"><div class="h5">
<br>
<br>
<br><font size="3">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>
</font>
<br><font size="3">On Thu, Apr 26, 2012 at 2:17 PM, <</font><a href="mailto:claudef@br.ibm.com" target="_blank"><font color="blue" size="3"><u>claudef@br.ibm.com</u></font></a><font size="3">>
wrote:</font>
<br><font face="sans-serif" size="3">Dear colleagues,</font><font size="3">
<br>
</font><font face="sans-serif" size="3"><br>
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><font size="3"><br>
</font><font face="sans-serif" size="3"><br>
.</font><tt><font size="3">/configure --with-ssl --with-ssl=/usr/lib64/openssl</font></tt><font size="3">
<br>
</font><font face="sans-serif" size="3"><br>
The configure completes normal, but the subsequent "make" step
throws a sequence of errors like this: <br>
.. </font><tt><font size="3"><br>
crypto.c: In function âhmac_md5â:</font></tt><font size="3"> </font><tt><font size="3"><br>
crypto.c:1713: error: âMD5_CTXâ undeclared (first use in this function)</font></tt><font size="3">
</font><tt><font size="3"><br>
crypto.c:1713: error: expected â;â before âctxâ</font></tt><font size="3">
</font><tt><font size="3"><br>
crypto.c:1714: warning: ISO C90 forbids mixed declarations and code</font></tt><font size="3">
</font><tt><font size="3"><br>
crypto.c:1737: error: âctxâ undeclared (first use in this function)</font></tt><font size="3">
</font><tt><font size="3"><br>
crypto.c: In function âhmac_sha1â:</font></tt><font size="3"> </font><tt><font size="3"><br>
crypto.c:1752: error: âSHA_CTXâ undeclared (first use in this function)</font></tt><font size="3">
</font><tt><font size="3"><br>
crypto.c:1752: error: expected â;â before âctxâ</font></tt><font size="3">
</font><tt><font size="3"><br>
crypto.c:1753: warning: ISO C90 forbids mixed declarations and code</font></tt><font size="3">
</font><tt><font size="3"><br>
crypto.c:1776: error: âctxâ undeclared (first use in this function)</font></tt><font size="3">
</font><tt><font size="3"><br>
make[4]: *** [../priv/obj/s390x-ibm-linux-gnu/crypto.o] Error 1</font></tt><font size="3">
</font><tt><font size="3"><br>
make[4]: Leaving directory `/opt/erlang/otp_src_R14B03/lib/crypto/c_src'</font></tt><font size="3">
</font><tt><font size="3"><br>
make[3]: *** [opt] Error 2</font></tt><font size="3"> </font><tt><font size="3"><br>
make[3]: Leaving directory `/opt/erlang/otp_src_R14B03/lib/crypto/c_src'</font></tt><font size="3">
</font><tt><font size="3"><br>
make[2]: *** [opt] Error 2</font></tt><font size="3"> </font><tt><font size="3"><br>
make[2]: Leaving directory `/opt/erlang/otp_src_R14B03/lib/crypto'</font></tt><font size="3">
</font><tt><font size="3"><br>
make[1]: *** [opt] Error 2</font></tt><font size="3"> </font><tt><font size="3"><br>
make[1]: Leaving directory `/opt/erlang/otp_src_R14B03/lib'</font></tt><font size="3">
</font><tt><font size="3"><br>
make: *** [libs] Error 2</font></tt><font size="3"> </font><tt><font size="3"><br>
..</font></tt><font size="3"> <br>
</font><font face="sans-serif" size="3"><br>
Without OpenSSL support, the Erlang package compiles successfully
and I've tested it with the console prompt. <br>
Thanks in advance for your hints how to fix this issue with the crypto
module. <br>
<br>
Regards, <br>
Claude <br>
</font><font color="#a2a2a2" face="Arial" size="1"><b><br>
<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: </b></font><a href="mailto:claudef@br.ibm.com" target="_blank"><font color="blue" face="Arial" size="1"><b><u>claudef@br.ibm.com</u></b></font></a><font size="3"><br>
<br>
_______________________________________________<br>
erlang-questions mailing list</font><font color="blue" size="3"><u><br>
</u></font><a href="mailto:erlang-questions@erlang.org" target="_blank"><font color="blue" size="3"><u>erlang-questions@erlang.org</u></font></a><font color="blue" size="3"><u><br>
</u></font><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank"><font color="blue" size="3"><u>http://erlang.org/mailman/listinfo/erlang-questions</u></font></a><font size="3"><br>
</font>
<br>
<br></div></div></blockquote></div><br></div>