Re: crypt

[email protected] (Zheng Li Sheng) Sun, 26 May 2024 01:14:14 +0700
Newsgroups perl.beginners
Message-ID <CAHYMEFT8fHwdrEgzCojA+OGqJNTseL1+CQcdOOUfwEmJqt=w9g@mail.gmail.com>
--0000000000002a331606194b4104
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

Maybe not being compiled with libcrypt ?
What is the output of "perl -V | grep --color -i crypt" and "ldd
/home/masayoshi/localperl/bin/perl" ?

Regards,

On Sat, May 25, 2024 at 4:00=E2=80=AFPM Masayoshi Fujimoto <m.fujimoto@yand=
ex.ru>
wrote:

> Hi.
> OpenBSD does not work crypt.
> Does it depends on OSes ?
> Do you know why I can not use it ?
>
> Perl uses the following crypt?
> https://man.openbsd.org/crypt
>
> # My crypt.pl
> use strict;
> use warnings;
> use v5.10;
> say crypt("Ava Max", "Salt");
>
>
> FreeBSD works crypt.pl
> % perl -v
> This is perl 5, version 36, subversion 3 (v5.36.3) built for
> amd64-freebsd-thread-multi
>
> % perl crypt.pl
> Sasi0YO57eKNE
>
> OpenBSD does not works crypt.pl
>
> OpenBSD$ perl -v
>
> This is perl 5, version 36, subversion 3 (v5.36.3) built for amd64-openbs=
d
>
> OpenBSD$ perl crypt.pl
>
> Use of uninitialized value in say at crypt.pl line 4.
>
> OpenBSD$
>
> I got a empty line. As it didn't work, I installed perl from source code.
>
> https://www.cpan.org/src/README.html
>
> OpenBSD$ /home/masayoshi/localperl/bin/perl -v
>
> This is perl 5, version 38, subversion 2 (v5.38.2) built for
> OpenBSD.amd64-openbsd
>
> OpenBSD$ /home/masayoshi/localperl/bin/perl crypt.pl
> Use of uninitialized value in say at crypt.pl line 4.
>
> OpenBSD$
>
>

--0000000000002a331606194b4104
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>Maybe not being compiled=
 with libcrypt ?</div><div>What is the output of &quot;perl -V | grep --col=
or -i crypt&quot; and &quot;ldd /home/masayoshi/localperl/bin/perl&quot; ?<=
/div><div><br></div><div>Regards,<br></div></div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, May 25, 2024 at 4:00=E2=
=80=AFPM Masayoshi Fujimoto &lt;<a href=3D"mailto:[email protected]">m.f=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p=
adding-left:1ex"><div><div><div>Hi.</div><div>OpenBSD does not work crypt.<=
/div><div>Does it depends on OSes ?</div><div>Do you know why I can not use=
 it ?</div><div>=C2=A0</div><div>Perl uses the following crypt?</div><div><=
a href=3D"https://man.openbsd.org/crypt" rel=3D"noopener noreferrer" target=
=3D"_blank">https://man.openbsd.org/crypt</a></div><div>=C2=A0</div><div># =
My <a href=3D"http://crypt.pl" target=3D"_blank">crypt.pl</a></div><div>use=
 strict;</div><div>use warnings;</div><div>use v5.10;</div><div>say crypt(&=
quot;Ava Max&quot;, &quot;Salt&quot;);</div><div>=C2=A0</div><div>=C2=A0</d=
iv><div>FreeBSD works <a href=3D"http://crypt.pl" target=3D"_blank">crypt.p=
l</a></div><div>% perl -v</div><div>This is perl 5, version 36, subversion =
3 (v5.36.3) built for amd64-freebsd-thread-multi</div><div>=C2=A0</div><div=
>% perl <a href=3D"http://crypt.pl" target=3D"_blank">crypt.pl</a></div><di=
v>Sasi0YO57eKNE</div><div>=C2=A0</div><div>OpenBSD does not works <a href=
=3D"http://crypt.pl" target=3D"_blank">crypt.pl</a></div><div>=C2=A0</div><=
div>OpenBSD$ perl -v</div><div>=C2=A0</div><div>This is perl 5, version 36,=
 subversion 3 (v5.36.3) built for amd64-openbsd</div><div>=C2=A0</div><div>=
OpenBSD$ perl <a href=3D"http://crypt.pl" target=3D"_blank">crypt.pl</a>=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=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=C2=A0=C2=A0=C2=A0 =C2=A0</div><div>Use of uninitialized value in =
say at <a href=3D"http://crypt.pl" target=3D"_blank">crypt.pl</a> line 4.</=
div><div>=C2=A0</div><div>OpenBSD$</div><div>=C2=A0</div><div>I got a empty=
 line. As it didn&#39;t work, I installed perl from source code.</div><div>=
=C2=A0</div><div><a href=3D"https://www.cpan.org/src/README.html" rel=3D"no=
opener noreferrer" target=3D"_blank">https://www.cpan.org/src/README.html</=
a></div><div>=C2=A0</div><div>OpenBSD$ /home/masayoshi/localperl/bin/perl -=
v</div><div>=C2=A0</div><div>This is perl 5, version 38, subversion 2 (v5.3=
8.2) built for OpenBSD.amd64-openbsd</div><div>=C2=A0</div><div>OpenBSD$ /h=
ome/masayoshi/localperl/bin/perl <a href=3D"http://crypt.pl" target=3D"_bla=
nk">crypt.pl</a> =C2=A0</div><div>Use of uninitialized value in say at <a h=
ref=3D"http://crypt.pl" target=3D"_blank">crypt.pl</a> line 4.</div><div>=
=C2=A0</div><div>OpenBSD$</div><div>=C2=A0</div></div></div></blockquote></=
div>

--0000000000002a331606194b4104--