Re: UW IMAP/Panda compiling with openssl 1.1.x...?
"Erik Kangas, Ph.D." <[email protected]> Mon, 18 Feb 2019 00:06:46 +0000
| Newsgroups | gmane.mail.imap.uw.c-client |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
If you cannot view the attachment(s), then your email client does not
support MIME.
--------------------_Boundary_46639516.693227
Content-Type: multipart/alternative; boundary="-------------8494139.26508643"
---------------8494139.26508643
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
Hello Eduardo,
This is good and we can probably use this for the imapd server;=20
however, when I compile Panda against openssl=C2=A01.1.1.x, I find that the=
=20
first set of errors I receive involve the c-client library (which we=20
need for linking with PHP, for example).=C2=A0 The c-client section (i.e.=20
the c-client directory immediately below "imap" vs the one below=20
"src")=C2=A0seems to be missing from the alpine source -- as its probably=20
not needed for alpine.
Is anyone else on this list familiar enough with the code to be able to=20
make the modifications?=C2=A0 I.e., the compile errors I get are of the=20
form below (at least that is how far it gets before bailing).
Thank you,
-Erik Kangas
~~~~~~~
=C2=A0
sdep.c: In function 'ssl_start_work':
osdep.c:472:12: warning: 'TLSv1_client_method' is deprecated (declared=20
at /xd1/pkg/openssl11/include//openssl/ssl.h:1866)=20
[-Wdeprecated-declarations]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TLSv1_client_method () :
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
osdep.c:522:49: error: dereferencing pointer to incomplete type
=C2=A0=C2=A0 =C2=A0 if (scq) return (*scq) (err,host,cert ? cert->name : "?=
??") ?=20
NIL : "";
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 ^
osdep.c:524:51: error: dereferencing pointer to incomplete type
=C2=A0=C2=A0 =C2=A0 sprintf (tmp,"*%.128s: %.255s",err,cert ? cert->name : =
"???");
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
osdep.c: In function 'ssl_validate_cert':
osdep.c:574:17: error: dereferencing pointer to incomplete type
=C2=A0=C2=A0 else if (!cert->name) ret =3D "No name in certificate";
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
osdep.c:576:28: error: dereferencing pointer to incomplete type
=C2=A0=C2=A0 else if (s =3D strstr (cert->name,"/CN=3D")) {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 ^
osdep.c: In function 'ssl_server_init':
osdep.c:1072:12: warning: 'TLSv1_server_method' is deprecated (declared=20
at /xd1/pkg/openssl11/include//openssl/ssl.h:1865)=20
[-Wdeprecated-declarations]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TLSv1_server_method () :
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
osdep.c: In function 'ssl_genkey':
osdep.c:1215:5: warning: 'RSA_generate_key' is deprecated (declared at=20
/xd1/pkg/openssl11/include/openssl/rsa.h:234)=20
[-Wdeprecated-declarations]
=C2=A0=C2=A0 =C2=A0 if (!(key =3D RSA_generate_key (export ? keylength :=20
1024,RSA_F4,NIL,NIL))) {
=C2=A0=C2=A0 =C2=A0 ^
make[2]: *** [osdep.o] Error 1
make[2]: Leaving directory `/xd1/setup/sources/uw-imap/plain/c-client'
make[1]: *** [missing] Error 2
make[1]: Leaving directory `/xd1/setup/sources/uw-imap/plain/c-client'
make: *** [../c-client/c-client.a] Error 2
=C2=A0
=C2=A0
=C2=A0
On February 15, 2019 01:52:09 pm EST, "Eduardo Chappa"=20
<[email protected]> wrote:
Dear Erik,
=C2=A0=C2=A0 you can check if Alpine 2.21, from my site does the trick for =
you. There
is an IMAP directory there that contains the source code of Panda IMAP. I
develop Alpine and have to modify the buld system to account for these
changes.
=C2=A0=C2=A0 I will make more changes in the future, and keep up with it. T=
ake a look
at
[1]http://alpine.x10host.com/alpine/release/index.html
for more information.
--
Eduardo
On Fri, 15 Feb 2019, Erik Kangas, Ph.D. wrote:
> Hi=C2=A0All,
>
> Has anyone progressed with compiling openssl=C2=A01.1.1 with panda=20
> IMAP?=C2=A0 If not,
> is anyone interested in doing this as a small consulting project (which we
> would make available to the group when done)?
>
> Thanks,
> -Erik Kangas
> LuxSci
> =C2=A0
> =C2=A0
> On September 27, 2018 01:02:46 pm EST, "Erik Kangas, Ph.D."
> <[email protected]> wrote:
> =C2=A0
> Hi all,
>
> Now that openssl 1.1.1 has TLS 1.3 included, I am trying to re-compile pa=
nda
> imap with this instead of the latest openssl 1.0.x.=C2=A0 I am getting=20
> compilation
> errors (below).=C2=A0 I wonder if anyone has gone though this process and=
has a
> patch?=C2=A0 Secondarily, I wonder if anyone has gone and added a patch t=
o enable
> TLS 1.3?
>
> Thanks!
> -Erik Kangas
>
> ~~~~~~~~=C2=A0 Compile errors:
> =C2=A0
>
> osdep.c: In function =E2=80=98ssl_start_work=E2=80=99:
>
> osdep.c:436:12: warning: =E2=80=98TLSv1_client_method=E2=80=99 is depreca=
ted (declared at
> /xd1/pkg/openssl/include//openssl/ssl.h:1854) [-Wdeprecated-declarations]
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TLSv1_client_method () :
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
>
> osdep.c:486:49: error: dereferencing pointer to incomplete type
>
> =C2=A0=C2=A0 =C2=A0 if (scq) return (*scq) (err,host,cert ? cert->name : =
"???") ?=20
> NIL : "";
>
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
>
> osdep.c:488:51: error: dereferencing pointer to incomplete type
>
> =C2=A0=C2=A0 =C2=A0 sprintf (tmp,"*%.128s: %.255s",err,cert ? cert->name =
: "???");
>
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0=20
> =C2=A0 =C2=A0 =C2=A0 ^
>
> osdep.c: In function =E2=80=98ssl_validate_cert=E2=80=99:
>
> osdep.c:538:17: error: dereferencing pointer to incomplete type
>
> =C2=A0=C2=A0 else if (!cert->name) ret =3D "No name in certificate";
>
> =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
>
> osdep.c:540:28: error: dereferencing pointer to incomplete type
>
> =C2=A0=C2=A0 else if (s =3D strstr (cert->name,"/CN=3D")) {
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 ^
>
> osdep.c: In function =E2=80=98ssl_server_init=E2=80=99:
>
> osdep.c:911:12: warning: =E2=80=98TLSv1_server_method=E2=80=99 is depreca=
ted (declared at
> /xd1/pkg/openssl/include//openssl/ssl.h:1853) [-Wdeprecated-declarations]
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 TLSv1_server_method () :
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
>
> osdep.c: In function =E2=80=98ssl_genkey=E2=80=99:
>
> osdep.c:982:5: warning: =E2=80=98RSA_generate_key=E2=80=99 is deprecated =
(declared at
> /xd1/pkg/openssl/include/openssl/rsa.h:234) [-Wdeprecated-declarations]
>
> =C2=A0=C2=A0 =C2=A0 if (!(key =3D RSA_generate_key (export ? keylength :
> 1024,RSA_F4,NIL,NIL))) {
>
> =C2=A0=C2=A0 =C2=A0 ^
>
> make[3]: *** [osdep.o] Error 1
>
> ~~~~~~~
>
> =C2=A0
> Erik Kangas, PhD
> CEO
> +1 617.596.9558
> [email protected]
> [1]www.LuxSci.com
> [2]Erik on LinkedIn
> =C2=A0
> =C2=A0
>
> This email communication is covered under LuxSci's [3]privacy policy.
>
> =C2=A0
>
> -------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
--------------!
--
> ----
>
> _______________________________________________
> Imap-uw mailing list
> [email protected]
> [4]http://mailman13.u.washington.edu/mailman/listinfo/imap-uw
>
> References
>
> Visible links
> 1. [2]https://luxsci.com/
> 2. [3]https://www.linkedin.com/in/erikkangas/
> 3. [4]https://luxsci.com/extranet/privacy.html
> 4. [5]http://mailman13.u.washington.edu/mailman/listinfo/imap-uw
>
>
--
Eduardo
=C2=A0
References
Visible links
1. http://alpine.x10host.com/alpine/release/index.html
2. https://luxsci.com/
3. https://www.linkedin.com/in/erikkangas/
4. https://luxsci.com/extranet/privacy.html
5. http://mailman13.u.washington.edu/mailman/listinfo/imap-uw
---------------8494139.26508643
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML>
<HTML>
<HEAD><meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8"></HEAD>
<BODY style=3D"padding:5px; line-height: 1.3em; font-size: 14px; color: #33=
3; background-color: #FFF; font-family: Arial, Helvetica, sans-serif">
<div>Hello Eduardo,<br />
<br />
This is good and we can probably use this for the imapd server; however, wh=
en I compile Panda against openssl 1.1.1.x, I find that the first set =
of errors I receive involve the c-client library (which we need for linking=
with PHP, for example). The c-client section (i.e. the c-client dire=
ctory immediately below "imap" vs the one below "src")&=
nbsp;seems to be missing from the alpine source -- as its probably not need=
ed for alpine.<br />
<br />
Is anyone else on this list familiar enough with the code to be able to mak=
e the modifications? I.e., the compile errors I get are of the form b=
elow (at least that is how far it gets before bailing).<br />
<br />
Thank you,<br />
-Erik Kangas<br />
<br />
~~~~~~~<br />
<p><b>sdep.c:</b> In function '<b>ssl_start_work</b>':</p>
<p><b>osdep.c:472:12:</b> <b>warning: </b>'<b>TLSv1_client_method</b>&#=
39; is deprecated (declared at <b>/xd1/pkg/openssl11/include//openssl/ssl.h=
:1866</b>) [-Wdeprecated-declarations]</p>
<p> TLSv1_client_method () :</p>
<p><b> ^</b></p>
<p><b>osdep.c:522:49:</b> <b>error: </b>dereferencing pointer to incomplete=
type</p>
<p> if (scq) return (*scq) (err,host,cert ? cert->nam=
e : "???") ? NIL : "";</p>
<p><b> =
 =
; ^</b></p>
<p><b>osdep.c:524:51:</b> <b>error: </b>dereferencing pointer to incomplete=
type</p>
<p> sprintf (tmp,"*%.128s: %.255s",err,cert ? =
cert->name : "???");</p>
<p><b> =
 =
; ^</b></p>
<p><b>osdep.c:</b> In function '<b>ssl_validate_cert</b>':</p>
<p><b>osdep.c:574:17:</b> <b>error: </b>dereferencing pointer to incomplete=
type</p>
<p> else if (!cert->name) ret =3D "No name in certifica=
te";</p>
<p><b> ^</b></=
p>
<p><b>osdep.c:576:28:</b> <b>error: </b>dereferencing pointer to incomplete=
type</p>
<p> else if (s =3D strstr (cert->name,"/CN=3D")) {=
</p>
<p><b> =
^</b></p>
<p><b>osdep.c:</b> In function '<b>ssl_server_init</b>':</p>
<p><b>osdep.c:1072:12:</b> <b>warning: </b>'<b>TLSv1_server_method</b>&=
#39; is deprecated (declared at <b>/xd1/pkg/openssl11/include//openssl/ssl.=
h:1865</b>) [-Wdeprecated-declarations]</p>
<p> TLSv1_server_method () :</p>
<p><b> ^</b></p>
<p><b>osdep.c:</b> In function '<b>ssl_genkey</b>':</p>
<p><b>osdep.c:1215:5:</b> <b>warning: </b>'<b>RSA_generate_key</b>'=
is deprecated (declared at <b>/xd1/pkg/openssl11/include/openssl/rsa.h:234=
</b>) [-Wdeprecated-declarations]</p>
<p> if (!(key =3D RSA_generate_key (export ? keylength :=
1024,RSA_F4,NIL,NIL))) {</p>
<p><b> ^</b></p>
<p>make[2]: *** [osdep.o] Error 1</p>
<p>make[2]: Leaving directory `/xd1/setup/sources/uw-imap/plain/c-client=
9;</p>
<p>make[1]: *** [missing] Error 2</p>
<p>make[1]: Leaving directory `/xd1/setup/sources/uw-imap/plain/c-client=
9;</p>
<p>make: *** [../c-client/c-client.a] Error 2</p>
</div>
<div> </div>
<br />
<div style=3D"padding:3px 0 3px 0;border-top:1px solid #DDD; border-bottom:=
1px solid #DDD;margin:3px 0 3px 0">On February 15, 2019 01:52:09 pm EST, &=
quot;Eduardo Chappa" <[email protected]> wrote:</div>
<br />
<br />
Dear Erik,<br />
<br />
you can check if Alpine 2.21, from my site does the trick for =
you. There<br />
is an IMAP directory there that contains the source code of Panda IMAP. I<b=
r />
develop Alpine and have to modify the buld system to account for these<br />
changes.<br />
<br />
I will make more changes in the future, and keep up with it. T=
ake a look<br />
at<br />
<br />
<a class=3D"monobody" href=3D"http://alpine.x10host.com/alpine/release/inde=
x.html" target=3D"_blank">http://alpine.x10host.com/alpine/release/index.ht=
ml</a><br />
<br />
for more information.<br />
<br />
--<br />
Eduardo<br />
<br />
On Fri, 15 Feb 2019, Erik Kangas, Ph.D. wrote:<br />
<br />
> Hi All,<br />
><br />
> Has anyone progressed with compiling openssl 1.1.1 with panda IMA=
P? If not,<br />
> is anyone interested in doing this as a small consulting project (whic=
h we<br />
> would make available to the group when done)?<br />
><br />
> Thanks,<br />
> -Erik Kangas<br />
> LuxSci<br />
> <br />
> <br />
> On September 27, 2018 01:02:46 pm EST, "Erik Kangas, Ph.D."<=
br />
> <[email protected]> wrote:<br />
> <br />
> Hi all,<br />
><br />
> Now that openssl 1.1.1 has TLS 1.3 included, I am trying to re-compile=
panda<br />
> imap with this instead of the latest openssl 1.0.x. I am getting=
compilation<br />
> errors (below). I wonder if anyone has gone though this process =
and has a<br />
> patch? Secondarily, I wonder if anyone has gone and added a patc=
h to enable<br />
> TLS 1.3?<br />
><br />
> Thanks!<br />
> -Erik Kangas<br />
><br />
> ~~~~~~~~ Compile errors:<br />
> <br />
><br />
> osdep.c: In function ‘ssl_start_work’:<br />
><br />
> osdep.c:436:12: warning: ‘TLSv1_client_method’ is deprecat=
ed (declared at<br />
> /xd1/pkg/openssl/include//openssl/ssl.h:1854) [-Wdeprecated-declaratio=
ns]<br />
><br />
> TLSv1_client_method () :<br =
/>
><br />
> ^<br />
><br />
> osdep.c:486:49: error: dereferencing pointer to incomplete type<br />
><br />
> if (scq) return (*scq) (err,host,cert ? cert->n=
ame : "???") ? NIL : "";<br />
><br />
> &=
nbsp; =
^<br />
><br />
> osdep.c:488:51: error: dereferencing pointer to incomplete type<br />
><br />
> sprintf (tmp,"*%.128s: %.255s",err,cert =
? cert->name : "???");<br />
><br />
> &=
nbsp; =
^<br />
><br />
> osdep.c: In function ‘ssl_validate_cert’:<br />
><br />
> osdep.c:538:17: error: dereferencing pointer to incomplete type<br />
><br />
> else if (!cert->name) ret =3D "No name in certifi=
cate";<br />
><br />
> ^<br />
><br />
> osdep.c:540:28: error: dereferencing pointer to incomplete type<br />
><br />
> else if (s =3D strstr (cert->name,"/CN=3D"))=
{<br />
><br />
> =
^<br />
><br />
> osdep.c: In function ‘ssl_server_init’:<br />
><br />
> osdep.c:911:12: warning: ‘TLSv1_server_method’ is deprecat=
ed (declared at<br />
> /xd1/pkg/openssl/include//openssl/ssl.h:1853) [-Wdeprecated-declaratio=
ns]<br />
><br />
> TLSv1_server_method () :<br =
/>
><br />
> ^<br />
><br />
> osdep.c: In function ‘ssl_genkey’:<br />
><br />
> osdep.c:982:5: warning: ‘RSA_generate_key’ is deprecated (=
declared at<br />
> /xd1/pkg/openssl/include/openssl/rsa.h:234) [-Wdeprecated-declarations=
]<br />
><br />
> if (!(key =3D RSA_generate_key (export ? keylength=
:<br />
> 1024,RSA_F4,NIL,NIL))) {<br />
><br />
> ^<br />
><br />
> make[3]: *** [osdep.o] Error 1<br />
><br />
> ~~~~~~~<br />
><br />
> <br />
> Erik Kangas, PhD<br />
> CEO<br />
> +1 617.596.9558<br />
> [email protected]<br />
> [1]www.LuxSci.com<br />
> [2]Erik on LinkedIn<br />
> <br />
> <br />
><br />
> This email communication is covered under LuxSci's [3]privacy poli=
cy.<br />
><br />
> <br />
><br />
> ----------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
---------------------------------------------------------------------------=
-----------------!<br />
--<br />
> ----<br />
><br />
> _______________________________________________<br />
> Imap-uw mailing list<br />
> [email protected]<br />
> [4]http://mailman13.u.washington.edu/mailman/listinfo/imap-uw<br />
><br />
> References<br />
><br />
> Visible links<br />
> 1. <a class=3D"monobody" href=3D"https://luxsci.com/" target=3D"_blank=
">https://luxsci.com/</a><br />
> 2. <a class=3D"monobody" href=3D"https://www.linkedin.com/in/erikkanga=
s/" target=3D"_blank">https://www.linkedin.com/in/erikkangas/</a><br />
> 3. <a class=3D"monobody" href=3D"https://luxsci.com/extranet/privacy.h=
tml" target=3D"_blank">https://luxsci.com/extranet/privacy.html</a><br />
> 4. <a class=3D"monobody" href=3D"http://mailman13.u.washington.edu/mai=
lman/listinfo/imap-uw" target=3D"_blank">http://mailman13.u.washington.edu/=
mailman/listinfo/imap-uw</a><br />
><br />
><br />
<br />
--<br />
Eduardo<br />
</BODY>
</HTML>
---------------8494139.26508643--
--------------------_Boundary_46639516.693227
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-uw
--------------------_Boundary_46639516.693227--