Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 May 2024 11:39:30 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        questions@freebsd.org
Subject:   Re: Installing Python2.7 in 14-RELEASE
Message-ID:  <CAAdA2WNbzX00nzKQAHU23GwG%2BAuboivy9b-_eRNa=ka_J2yGTg@mail.gmail.com>
In-Reply-To: <87r0e57t3l.wl-herbert@gojira.at>
References:  <CAAdA2WPxWhD0CeNJ7e6kutTSXMkzYuFTWT_gWrsY39Da9uCjug@mail.gmail.com> <87r0e57t3l.wl-herbert@gojira.at>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f85ddf061865f24b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Mon, May 13, 2024 at 4:13=E2=80=AFPM Herbert J. Skuhra <herbert@gojira.a=
t> wrote:

> On Mon, 13 May 2024 14:31:16 +0200, Odhiambo Washington wrote:
> >
> > Hi
> >
> > I need to install Python27 from /usr/ports/lang/python27 to test
> something,
> > but it fails:
> >
> > ```
> > root@gw:/usr/ports/lang/python27 # make reinstall clean
> > =3D=3D=3D>  Deinstalling for python27
> > =3D=3D=3D>   python27 not installed, skipping
> > =3D=3D=3D>  Installing for python27-2.7.18
> > =3D=3D=3D>  Checking if python27 is already installed
> > =3D=3D=3D>   Registering installation for python27-2.7.18
> > pkg-static: Unable to access file
> >
> /usr/ports/lang/python27/work/stage//lib/python2.7/lib-dynload/_hashlib.s=
o:No
> > such file or directory
> > *** Error code 1
> >
> > Stop.
> > make[1]: stopped in /usr/ports/lang/python27
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/ports/lang/python27
> > ```
> >
> > The files missing are actually
> > in
> /usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dynload/.
> >
> > How can I solve this problem?
>
> Works for me on stable/14 (amd64) and main(arm64):
>
> % find work/stage -name "_hashlib.so"
> work/stage/usr/local/lib/python2.7/lib-dynload/_hashlib.so
>
> Do you use openssl/libressl from ports? Can you check the build log
> for more information?


I am using openssl from the ports.
I checked the build log and saw:

```
#warning "Make sure new member of socket address initialized"
 ^
1 warning generated.
warning: openssl 0x00000000 is too old for _hashlib
building dbm using ndbm

Python build finished, but the necessary bits to build these modules were
not found:
_bsddb             _hashlib           dl
imageop            linuxaudiodev      spwd
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.

=3D=3D=3D>  Staging for python27-2.7.18
=3D=3D=3D>   python27-2.7.18 depends on file: /usr/local/lib/libcrypto.so.1=
2 -
found
=3D=3D=3D>   Generating temporary packing list
install  -s -m 555 python
/usr/ports/lang/python27/work/stage/usr/local/bin/python2.7
if test -f libpython2.7.so; then  if test -n "" ; then  install  -s -m 0644
 /usr/ports/lang/python27/work/stage/usr/local/bin;  else  install  -s -m
0644 libpython2.7.so
/usr/ports/lang/python27/work/stage/usr/local/lib/libpython2.7.so.1;  if
test libpython2.7.so !=3D libpython2.7.so.1; then  (cd
/usr/ports/lang/python27/work/stage/usr/local/lib; ln -sf libpython2.7.so.1
libpython2.7.so)  fi  fi;  else true;  fi
warning: openssl 0x00000000 is too old for _hashlib
```
root@gw:/usr/ports/lang/python27 # /usr/local/bin/openssl version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
root@gw:/usr/ports/lang/python27 # ls -al  /usr/local/bin/openssl
-rwxr-xr-x  1 root wheel 828656 May 14 11:22 /usr/local/bin/openssl
root@gw:/usr/ports/lang/python27 # ls -al /usr/bin/openssl
-r-xr-xr-x  1 root wheel 970624 Nov 25 14:13 /usr/bin/openssl
root@gw: /usr/ports/lang/python27  # /usr/bin/openssl version
OpenSSL 3.0.12 24 Oct 2023 (Library: OpenSSL 3.0.12 24 Oct 2023)

I have DEFAULT_VERSIONS+=3Dssl=3Dopenssl



--=20
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]

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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, May 13, 2024 at 4:13=E2=80=AF=
PM Herbert J. Skuhra &lt;<a href=3D"mailto:herbert@gojira.at">herbert@gojir=
a.at</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">On Mon, 13 May 2024 14:31:16 +0200, Odhiambo Washington wrote:<br>
&gt; <br>
&gt; Hi<br>
&gt; <br>
&gt; I need to install Python27 from /usr/ports/lang/python27 to test somet=
hing,<br>
&gt; but it fails:<br>
&gt; <br>
&gt; ```<br>
&gt; root@gw:/usr/ports/lang/python27 # make reinstall clean<br>
&gt; =3D=3D=3D&gt;=C2=A0 Deinstalling for python27<br>
&gt; =3D=3D=3D&gt;=C2=A0 =C2=A0python27 not installed, skipping<br>
&gt; =3D=3D=3D&gt;=C2=A0 Installing for python27-2.7.18<br>
&gt; =3D=3D=3D&gt;=C2=A0 Checking if python27 is already installed<br>
&gt; =3D=3D=3D&gt;=C2=A0 =C2=A0Registering installation for python27-2.7.18=
<br>
&gt; pkg-static: Unable to access file<br>
&gt; /usr/ports/lang/python27/work/stage//lib/python2.7/lib-dynload/_hashli=
b.so:No<br>
&gt; such file or directory<br>
&gt; *** Error code 1<br>
&gt; <br>
&gt; Stop.<br>
&gt; make[1]: stopped in /usr/ports/lang/python27<br>
&gt; *** Error code 1<br>
&gt; <br>
&gt; Stop.<br>
&gt; make: stopped in /usr/ports/lang/python27<br>
&gt; ```<br>
&gt; <br>
&gt; The files missing are actually<br>
&gt; in /usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dyn=
load/.<br>
&gt; <br>
&gt; How can I solve this problem?<br>
<br>
Works for me on stable/14 (amd64) and main(arm64):<br>
<br>
% find work/stage -name &quot;_hashlib.so&quot;<br>
work/stage/usr/local/lib/python2.7/lib-dynload/_hashlib.so<br>
<br>
Do you use openssl/libressl from ports? Can you check the build log<br>
for more information?</blockquote><div><br></div><div>I am using openssl fr=
om the ports.</div><div>I checked the build log and saw:</div><div><br></di=
v><div>```</div>#warning &quot;Make sure new member of socket address initi=
alized&quot;<br>=C2=A0^<br>1 warning generated.<br>warning: openssl 0x00000=
000 is too old for _hashlib<br>building dbm using ndbm<br><br>Python build =
finished, but the necessary bits to build these modules were not found:<br>=
_bsddb =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 _hashlib =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 dl<br>imageop =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0li=
nuxaudiodev =C2=A0 =C2=A0 =C2=A0spwd<br>sunaudiodev<br>To find the necessar=
y bits, look in setup.py in detect_modules() for the module&#39;s name.<br>=
<br>=3D=3D=3D&gt; =C2=A0Staging for python27-2.7.18<br>=3D=3D=3D&gt; =C2=A0=
 python27-2.7.18 depends on file: /usr/local/lib/libcrypto.so.12 - found<br=
>=3D=3D=3D&gt; =C2=A0 Generating temporary packing list<br>install =C2=A0-s=
 -m 555 python /usr/ports/lang/python27/work/stage/usr/local/bin/python2.7<=
br>if test -f <a href=3D"http://libpython2.7.so">libpython2.7.so</a>; then =
=C2=A0if test -n &quot;&quot; ; then =C2=A0install =C2=A0-s -m 0644 =C2=A0/=
usr/ports/lang/python27/work/stage/usr/local/bin; =C2=A0else =C2=A0install =
=C2=A0-s -m 0644 <a href=3D"http://libpython2.7.so">libpython2.7.so</a>; /us=
r/ports/lang/python27/work/stage/usr/local/lib/libpython2.7.so.1; =C2=A0if =
test <a href=3D"http://libpython2.7.so">libpython2.7.so</a>; !=3D libpython2=
.7.so.1; then =C2=A0(cd /usr/ports/lang/python27/work/stage/usr/local/lib; =
ln -sf libpython2.7.so.1 <a href=3D"http://libpython2.7.so">libpython2.7.so=
</a>) =C2=A0fi =C2=A0fi; =C2=A0else true; =C2=A0fi<br><div>warning: openssl=
 0x00000000 is too old for _hashlib</div><div>```</div>root@gw:/usr/ports/l=
ang/python27 # /usr/local/bin/openssl version<br>OpenSSL 3.0.13 30 Jan 2024=
 (Library: OpenSSL 3.0.13 30 Jan 2024)<br>root@gw:/usr/ports/lang/python27 =
# ls -al =C2=A0/usr/local/bin/openssl<br>-rwxr-xr-x =C2=A01 root wheel 8286=
56 May 14 11:22 /usr/local/bin/openssl<br>root@gw:/usr/ports/lang/python27 =
# ls -al /usr/bin/openssl<br><div>-r-xr-xr-x =C2=A01 root wheel 970624 Nov =
25 14:13 /usr/bin/openssl</div><div>root@gw:

/usr/ports/lang/python27=C2=A0 # /usr/bin/openssl version<br>OpenSSL 3.0.12=
 24 Oct 2023 (Library: OpenSSL 3.0.12 24 Oct 2023)<br></div><div><br></div>=
<div>I have DEFAULT_VERSIONS+=3Dssl=3Dopenssl</div><div>=C2=A0</div></div><=
br clear=3D"all"><div><br></div><span class=3D"gmail_signature_prefix">-- <=
/span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div =
dir=3D"ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+25=
4 7 3200 0004/+254 7 2274 3223</div><div><span style=3D"color:rgb(34,34,34)=
">=C2=A0In=C2=A0</span><span style=3D"color:rgb(34,34,34)">an Internet fail=
ure case, the #1 suspect is a constant: DNS.</span><br>&quot;<span style=3D=
"font-size:12.8px">Oh, the cruft.</span><span style=3D"font-size:12.8px">&q=
uot;,=C2=A0</span><span style=3D"font-size:12.8px">egrep -v &#39;^$|^.*#&#3=
9;=C2=A0</span><span style=3D"background-color:rgb(34,34,34);color:rgb(238,=
238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&=
quot;,monospace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/=C2=AF</span><span s=
tyle=3D"font-size:12.8px">=C2=A0:-)</span></div><div><span style=3D"font-si=
ze:12.8px">[How to ask smart questions:=C2=A0</span><span style=3D"font-siz=
e:12.8px"><a href=3D"http://www.catb.org/~esr/faqs/smart-questions.html" ta=
rget=3D"_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</sp=
an></div></div></div></div></div>

--000000000000f85ddf061865f24b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WNbzX00nzKQAHU23GwG%2BAuboivy9b-_eRNa=ka_J2yGTg>