Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I do not fear computers. I fear the lack of them. -- Isaac Asimov


computers / comp.mail.pine / Re: Building alpine on MacOS still fails looking for OpenSSL_version_num

SubjectAuthor
* Building alping on MacOS fails looking for OpenSSL_version_numJohn Levine
+* Re: Building alping on MacOS fails looking for OpenSSL_version_numKalevi Kolttonen
|+- Re: Building alping on MacOS fails looking for OpenSSL_version_numKalevi Kolttonen
|`- Re: Building alping on MacOS fails looking for OpenSSL_version_numJohn Levine
+- Re: Building alping on MacOS fails looking for OpenSSL_version_numEduardo Chappa
`* Re: Building alpine on MacOS still fails looking for OpenSSL_version_numJohn Levine
 `* Re: Building alpine on MacOS still fails looking forEduardo Chappa
  `- Re: Building alpine on MacOS still fails looking forJohn Levine

1
Building alping on MacOS fails looking for OpenSSL_version_num

<udhv9p$1kl1$1@gal.iecc.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=558&group=comp.mail.pine#558

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: johnl@taugh.com (John Levine)
Newsgroups: comp.mail.pine
Subject: Building alping on MacOS fails looking for OpenSSL_version_num
Date: Sat, 9 Sep 2023 14:26:01 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <udhv9p$1kl1$1@gal.iecc.com>
Injection-Date: Sat, 9 Sep 2023 14:26:01 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="53921"; mail-complaints-to="abuse@iecc.com"
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Sat, 9 Sep 2023 14:26 UTC

I'm trying to build alpine from the github repo. It never worked very well with libressl
so I've installed openssl from homebrew. When I adjust the include and lib paths, the
config script fails:

checking if OpenSSL is LibreSSL... no
checking Openssl library version >= 1.0.0c... yes
checking Openssl library version >= 1.1.0... yes
checking for library containing OpenSSL_version_num... no
configure: error: crypto library NOT found

It is trying to compile a test program that calls OpenSSL_version_num() but
poking around stackoverflow it looks like that routine has been deprecated and
maybe undeprecated. I've tried both openssl 1.1 and 3, same problem.

Any suggestions? Using nm on the openssl libraries I don't see that routine.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: Building alping on MacOS fails looking for OpenSSL_version_num

<udid2i$5unn$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=559&group=comp.mail.pine#559

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.mail.pine
Subject: Re: Building alping on MacOS fails looking for OpenSSL_version_num
Date: Sat, 9 Sep 2023 18:21:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 59
Sender: <untosten@0.0.0.0>
Message-ID: <udid2i$5unn$1@dont-email.me>
References: <udhv9p$1kl1$1@gal.iecc.com>
Injection-Date: Sat, 9 Sep 2023 18:21:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6856e1aa8e21a7815b13680d902b25a6";
logging-data="195319"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+h91tj8RWFYS7cJ3Vp+at9+5RkXnGfuQg="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.4.14-200.fc38.x86_64 (x86_64))
Cancel-Lock: sha1:hH+KYAYuxJAkItuwoSI71Z731J0=
 by: Kalevi Kolttonen - Sat, 9 Sep 2023 18:21 UTC

John Levine <johnl@taugh.com> wrote:
> I'm trying to build alpine from the github repo. It never worked very well with libressl
> so I've installed openssl from homebrew. When I adjust the include and lib paths, the
> config script fails:
>
> checking if OpenSSL is LibreSSL... no
> checking Openssl library version >= 1.0.0c... yes
> checking Openssl library version >= 1.1.0... yes
> checking for library containing OpenSSL_version_num... no
> configure: error: crypto library NOT found
>
> It is trying to compile a test program that calls OpenSSL_version_num() but
> poking around stackoverflow it looks like that routine has been deprecated and
> maybe undeprecated. I've tried both openssl 1.1 and 3, same problem.
>
> Any suggestions? Using nm on the openssl libraries I don't see that routine.

Well, if you don't see that symbol, then obviously
the library does not have it, right? Anyway:

1) You did not mention github URL, so assuming
https://github.com/alpinemail/alpine
2) You did not mention OS, so guessing MacOS
3) You did not mention the exact OpenSSL 3 version

First of all, after I did "git clone", I can see that
there is a directory called "openssl" and according to
the README, it is OpenSSL 3.0.0-dev. So it seems to
me that alpine ships with this library. But when I
built alpine, it was not used.

On my Fedora Linux 38, just running:

../configure
make

produces a working executable with OpenSSL dynamically
linked in:

foo$ ~/tmp/alp/alpine/alpine$ ldd alpine
linux-vdso.so.1 (0x00007fff59cb9000)
libcrypt.so.2 => /lib64/libcrypt.so.2 (0x00007f18a0eda000)
libssl.so.3 => /lib64/libssl.so.3 (0x00007f18a0e37000)
libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f18a0a00000)
libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f18a09cd000)
libc.so.6 => /lib64/libc.so.6 (0x00007f18a07ef000)
libz.so.1 => /lib64/libz.so.1 (0x00007f18a07d5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f18a0f2c000)

OpenSSL is 3.0.9:

foo$ ~/tmp/alp/alpine/alpine$ rpm -qf /lib64/libcrypto.so.3
openssl-libs-3.0.9-2.fc38.x86_64

I'd suggest installing OpenSSL 3.0.9 and trying to build
against that.

br,
KK

Re: Building alping on MacOS fails looking for OpenSSL_version_num

<udid4k$5unn$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=560&group=comp.mail.pine#560

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.mail.pine
Subject: Re: Building alping on MacOS fails looking for OpenSSL_version_num
Date: Sat, 9 Sep 2023 18:22:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Sender: <untosten@0.0.0.0>
Message-ID: <udid4k$5unn$2@dont-email.me>
References: <udhv9p$1kl1$1@gal.iecc.com> <udid2i$5unn$1@dont-email.me>
Injection-Date: Sat, 9 Sep 2023 18:22:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6856e1aa8e21a7815b13680d902b25a6";
logging-data="195319"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TrWTIz+5JK9ByHu96tXEcFwIayp4a7xU="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.4.14-200.fc38.x86_64 (x86_64))
Cancel-Lock: sha1:eu9JXkbPqvng0UcATx/IRWAwiIc=
 by: Kalevi Kolttonen - Sat, 9 Sep 2023 18:22 UTC

Kalevi Kolttonen <kalevi@kolttonen.fi> wrote:
> 2) You did not mention OS, so guessing MacOS

Oops, sorry. It was mentioned in the Subject.

br,
KK

Re: Building alping on MacOS fails looking for OpenSSL_version_num

<udjcfm$2i0t$1@gal.iecc.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=561&group=comp.mail.pine#561

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: johnl@taugh.com (John Levine)
Newsgroups: comp.mail.pine
Subject: Re: Building alping on MacOS fails looking for OpenSSL_version_num
Date: Sun, 10 Sep 2023 03:17:10 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <udjcfm$2i0t$1@gal.iecc.com>
References: <udhv9p$1kl1$1@gal.iecc.com> <udid2i$5unn$1@dont-email.me>
Injection-Date: Sun, 10 Sep 2023 03:17:10 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="83997"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <udhv9p$1kl1$1@gal.iecc.com> <udid2i$5unn$1@dont-email.me>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Sun, 10 Sep 2023 03:17 UTC

According to Kalevi Kolttonen <kalevi@kolttonen.fi>:
>John Levine <johnl@taugh.com> wrote:
>> I'm trying to build alpine from the github repo. It never worked very well with libressl
>> so I've installed openssl from homebrew. When I adjust the include and lib paths, the
>> config script fails:
>>
>> checking if OpenSSL is LibreSSL... no
>> checking Openssl library version >= 1.0.0c... yes
>> checking Openssl library version >= 1.1.0... yes
>> checking for library containing OpenSSL_version_num... no
>> configure: error: crypto library NOT found
>>
>> It is trying to compile a test program that calls OpenSSL_version_num() but
>> poking around stackoverflow it looks like that routine has been deprecated and
>> maybe undeprecated. I've tried both openssl 1.1 and 3, same problem.
>>
>> Any suggestions? Using nm on the openssl libraries I don't see that routine.
>
>Well, if you don't see that symbol, then obviously
>the library does not have it, right? Anyway:

Well, duh. It used to work, dunno whether I just happened to have
a different library or what.

>1) You did not mention github URL, so assuming
> https://github.com/alpinemail/alpine
>3) You did not mention the exact OpenSSL 3 version

It's OpenSSL 3.1.2 from homebrew, the Mac ports collection. Installing
random older versions of openssl would be rather painful so I'd rather
figure out why it doesn't work with the current version.

I built alpine from github source in May on an x86 Mac and it worked.
Now I have an Apple silicon Mac and I'm trying to build a native
version and I can't figure out what's changed.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: Building alping on MacOS fails looking for OpenSSL_version_num

<ca514515-ceb6-97b9-5664-0c4ffd95cb1b@washington.edu>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=562&group=comp.mail.pine#562

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chappa@washington.edu (Eduardo Chappa)
Newsgroups: comp.mail.pine
Subject: Re: Building alping on MacOS fails looking for OpenSSL_version_num
Date: Sun, 10 Sep 2023 08:34:40 -0600
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ca514515-ceb6-97b9-5664-0c4ffd95cb1b@washington.edu>
References: <udhv9p$1kl1$1@gal.iecc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Injection-Info: dont-email.me; posting-host="533b9e63690c0c776e2626956ddb6290";
logging-data="650613"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gkP38zYBCXgtj20uzNu16"
Cancel-Lock: sha1:rtyQWYWPLmBfjHF7V6vKqayGzNU=
In-Reply-To: <udhv9p$1kl1$1@gal.iecc.com>
 by: Eduardo Chappa - Sun, 10 Sep 2023 14:34 UTC

On Sat, 9 Sep 2023, John Levine wrote:

> I'm trying to build alpine from the github repo. It never worked very
> well with libressl so I've installed openssl from homebrew.

What problems did you have?

> When I adjust the include and lib paths, the config script fails:
>
> checking if OpenSSL is LibreSSL... no
> checking Openssl library version >= 1.0.0c... yes
> checking Openssl library version >= 1.1.0... yes
> checking for library containing OpenSSL_version_num... no
> configure: error: crypto library NOT found

Can you send me offline a copy of the file crypto.h from the headers of
openssl. Mine are at /usr/include/openssl. Yours are at the adjusted
location of your lib path.

Thank you.

--
Eduardo
https://alpineapp.email (web)
http://repo.or.cz/alpine.git (Git)

Re: Building alpine on MacOS still fails looking for OpenSSL_version_num

<ue7td4$1259$1@gal.iecc.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=566&group=comp.mail.pine#566

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: johnl@taugh.com (John Levine)
Newsgroups: comp.mail.pine
Subject: Re: Building alpine on MacOS still fails looking for OpenSSL_version_num
Date: Sun, 17 Sep 2023 22:08:36 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <ue7td4$1259$1@gal.iecc.com>
References: <udhv9p$1kl1$1@gal.iecc.com>
Injection-Date: Sun, 17 Sep 2023 22:08:36 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="34985"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <udhv9p$1kl1$1@gal.iecc.com>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Sun, 17 Sep 2023 22:08 UTC

Still can't get it to compile.

I'm trying to build alpine on an M1 Mac from the github repo. The
system for some reason includes the libressl version of the openssl
program, but none of the libraries or include files, so I've installed
openssl 1.1 from homebrew.

I build it like this:

../configure \
--enable-from-encoding --with-local-password-cache-method \
--with-ssl-dir=/usr/local/opt/openssl@1.1

The config script still fails:
>
>checking if OpenSSL is LibreSSL... no
>checking Openssl library version >= 1.0.0c... yes
>checking Openssl library version >= 1.1.0... yes
>checking for library containing OpenSSL_version_num... no
>configure: error: crypto library NOT found

It is trying to compile a test program that calls
OpenSSL_version_num() which I see got undeprecated. It's in the
include files, and it's there in the libcrypto library, but I can't
get the test build to work. LIBS=-lcrypto to force it to search the
library didn't help.

Advice would be appreciated. IF you want I can send you an sh -x trace of what
config does.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: Building alpine on MacOS still fails looking for OpenSSL_version_num

<16416dd0-4d50-4523-12a7-44131fe7ac0d@washington.edu>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=567&group=comp.mail.pine#567

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chappa@washington.edu (Eduardo Chappa)
Newsgroups: comp.mail.pine
Subject: Re: Building alpine on MacOS still fails looking for
OpenSSL_version_num
Date: Sun, 17 Sep 2023 21:06:53 -0600
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <16416dd0-4d50-4523-12a7-44131fe7ac0d@washington.edu>
References: <udhv9p$1kl1$1@gal.iecc.com> <ue7td4$1259$1@gal.iecc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Injection-Info: dont-email.me; posting-host="59e1169ebc863aa99cfda390be30994b";
logging-data="822501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4/uA2nPZv7eV7RZFzK3Us"
Cancel-Lock: sha1:OruUtFsW+JJS/qv6ruIvkNoE+Fk=
In-Reply-To: <ue7td4$1259$1@gal.iecc.com>
 by: Eduardo Chappa - Mon, 18 Sep 2023 03:06 UTC

On Sun, 17 Sep 2023, John Levine wrote:

> It is trying to compile a test program that calls OpenSSL_version_num()
> which I see got undeprecated. It's in the include files, and it's there
> in the libcrypto library, but I can't get the test build to work.
> LIBS=-lcrypto to force it to search the library didn't help.
>
> Advice would be appreciated. IF you want I can send you an sh -x trace
> of what config does.

The file confi.log has the information that is needed. Would you mind
sharing it with me?

Thank you.

--
Eduardo
https://alpineapp.email (web)
http://repo.or.cz/alpine.git (Git)

Re: Building alpine on MacOS still fails looking for OpenSSL_version_num

<ued80n$2coe$1@gal.iecc.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=568&group=comp.mail.pine#568

  copy link   Newsgroups: comp.mail.pine
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: johnl@taugh.com (John Levine)
Newsgroups: comp.mail.pine
Subject: Re: Building alpine on MacOS still fails looking for
OpenSSL_version_num
Date: Tue, 19 Sep 2023 22:40:23 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <ued80n$2coe$1@gal.iecc.com>
References: <udhv9p$1kl1$1@gal.iecc.com> <ue7td4$1259$1@gal.iecc.com> <16416dd0-4d50-4523-12a7-44131fe7ac0d@washington.edu>
Injection-Date: Tue, 19 Sep 2023 22:40:23 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="78606"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <udhv9p$1kl1$1@gal.iecc.com> <ue7td4$1259$1@gal.iecc.com> <16416dd0-4d50-4523-12a7-44131fe7ac0d@washington.edu>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Tue, 19 Sep 2023 22:40 UTC

According to Eduardo Chappa <chappa@washington.edu>:
>On Sun, 17 Sep 2023, John Levine wrote:
>
>> It is trying to compile a test program that calls OpenSSL_version_num()
>> which I see got undeprecated. It's in the include files, and it's there
>> in the libcrypto library, but I can't get the test build to work.
>> LIBS=-lcrypto to force it to search the library didn't help.
>>
>> Advice would be appreciated. IF you want I can send you an sh -x trace
>> of what config does.
>
>The file confi.log has the information that is needed. Would you mind
>sharing it with me?

Aha, that explained it. Something is screwed up with homebrew, so it
is installing x86 libraries on an arm64 Mac.

I'll let you know if I figure it out,

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor