From nobody Tue May 14 08:39:30 2024 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VdqYP3yPqz5KhMv for ; Tue, 14 May 2024 08:40:09 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VdqYN5l22z54Rt for ; Tue, 14 May 2024 08:40:08 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Pqr2aSk3; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2607:f8b0:4864:20::c2a as permitted sender) smtp.mailfrom=odhiambo@gmail.com Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5b27369b0e3so2795719eaf.1 for ; Tue, 14 May 2024 01:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715676007; x=1716280807; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=lb6XlYrHLFfzmcUspqYZ7aqXIkCj9/iurQXDCnaTKkQ=; b=Pqr2aSk3V3DxBn/wXBb4bZyvZjZYex+LLJAVopmZ+DHpoq2ZIoGnnDaqMSSw6GJCW+ jGUlcVex8jpE42vwKSbuuJG7AbIHg2+qrvadoXVILeFn5aUs/n7ExdApYi3uBhXzTUIi wWCJ3BgNNymmQgfZms7EcafTAoQnpX9jjFvwGX99xViPXALdcaTH4gvan/B0f3I/0VWn onJQqZAUaRktPg8axYSjvjaiLASOGUB7FcqqUKCb8FZCWHBJ28L54KRZ4Z97Uzhy6fo1 Zglr4x35+8jm40IRVx+ZptIoj8Udk6MwCqwGvUN9K/suQ0Cse2OtaPhcjyHgMzQpfgH7 /U+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715676007; x=1716280807; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lb6XlYrHLFfzmcUspqYZ7aqXIkCj9/iurQXDCnaTKkQ=; b=EjHRNa+MkOmt9Xmj4+HyTS5fo7htkuXQQzxYKNNB8T770nh5meVgQAO6ceDOxs4cTN hQv7eNLxjpBLyW9kXjVDWvT7UpkUbV5OT+HaKGBp+wykR+jN6yMwtFtkTuHw1PnffJtH nIu2kEL0Zy7b3Dy37fA9cQJIB/PCaJctI870Kx4+P983cHExFkMhNxK6HUFxGs+9dYv+ rQyWu0PKwAOExQ06dwqP7RritPCQycgJIhoUewScDLQxcRfoBLB9bU2sduLRZB8NvIVi 3DCXVdmEAQOH5NxMDWI9G7bDLkCpqKW99aUmxfCpxo5sPlwnjHiyYNyyodC4VzvseX7K MPng== X-Gm-Message-State: AOJu0Ywh8zQkmlEMYNN1fO7YVl+OhRnqj/6IIJCc5adxSgt92PlAP7T1 yI7+8kxv701EcPCvqkDoUTpg4eVbHn5wu1CxyD+MTa85R+rucUbdBOQHl73Ik86vqKZeRZtnWK7 yZ4hQPt0aYmYo9NUcmihUOiWwyqNGDJ1hpORY0A== X-Google-Smtp-Source: AGHT+IEC14UXtJSMcf+nuloatOix/vF/Aeovq2vPiNeZj6qc9skycE7PpYx/boTKloZ1LWFdRNmPhohBe4RFJq9nUUA= X-Received: by 2002:a05:6871:d042:b0:22a:6ce3:d57 with SMTP id 586e51a60fabf-24172bb6da1mr15377336fac.25.1715676007388; Tue, 14 May 2024 01:40:07 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: <87r0e57t3l.wl-herbert@gojira.at> In-Reply-To: <87r0e57t3l.wl-herbert@gojira.at> From: Odhiambo Washington Date: Tue, 14 May 2024 11:39:30 +0300 Message-ID: Subject: Re: Installing Python2.7 in 14-RELEASE To: questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000f85ddf061865f24b" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.92 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.920]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::c2a:from] X-Rspamd-Queue-Id: 4VdqYN5l22z54Rt --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 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


=
On Mon, May 13, 2024 at 4:13=E2=80=AF= PM Herbert J. Skuhra <herbert@gojir= a.at> 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 somet= hing,
> but it fails:
>
> ```
> root@gw:/usr/ports/lang/python27 # make reinstall clean
> =3D=3D=3D>=C2=A0 Deinstalling for python27
> =3D=3D=3D>=C2=A0 =C2=A0python27 not installed, skipping
> =3D=3D=3D>=C2=A0 Installing for python27-2.7.18
> =3D=3D=3D>=C2=A0 Checking if python27 is already installed
> =3D=3D=3D>=C2=A0 =C2=A0Registering installation for python27-2.7.18=
> pkg-static: Unable to access file
> /usr/ports/lang/python27/work/stage//lib/python2.7/lib-dynload/_hashli= b.so: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-dyn= load/.
>
> 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 fr= om the ports.
I checked the build log and saw:

```
#warning "Make sure new member of socket address initi= alized"
=C2=A0^
1 warning generated.
warning: openssl 0x00000= 000 is too old for _hashlib
building dbm using ndbm

Python build = finished, but the necessary bits to build these modules were not found:
= _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
imageop =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0li= nuxaudiodev =C2=A0 =C2=A0 =C2=A0spwd
sunaudiodev
To find the necessar= y bits, look in setup.py in detect_modules() for the module's name.
=
=3D=3D=3D> =C2=A0Staging for python27-2.7.18
=3D=3D=3D> =C2=A0= python27-2.7.18 depends on file: /usr/local/lib/libcrypto.so.12 - found=3D=3D=3D> =C2=A0 Generating temporary packing list
install =C2=A0-s= -m 555 python /usr/ports/lang/python27/work/stage/usr/local/bin/python2.7<= br>if test -f libpython2.7.so; then = =C2=A0if test -n "" ; 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 libpython2.7.so /us= r/ports/lang/python27/work/stage/usr/local/lib/libpython2.7.so.1; =C2=A0if = test libpython2.7.so !=3D libpython2= .7.so.1; then =C2=A0(cd /usr/ports/lang/python27/work/stage/usr/local/lib; = ln -sf libpython2.7.so.1 libpython2.7.so= ) =C2=A0fi =C2=A0fi; =C2=A0else true; =C2=A0fi
warning: openssl= 0x00000000 is too old for _hashlib
```
root@gw:/usr/ports/l= ang/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 =C2=A0/usr/local/bin/openssl
-rwxr-xr-x =C2=A01 root wheel 8286= 56 May 14 11:22 /usr/local/bin/openssl
root@gw:/usr/ports/lang/python27 = # ls -al /usr/bin/openssl
-r-xr-xr-x =C2=A01 root wheel 970624 Nov = 25 14:13 /usr/bin/openssl
root@gw: /usr/ports/lang/python27=C2=A0 # /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
=C2=A0
<= br clear=3D"all">

-- <= /span>
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+25= 4 7 3200 0004/+254 7 2274 3223
=C2=A0In=C2=A0an Internet fail= ure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.&q= uot;,=C2=A0egrep -v '^$|^.*#= 9;=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]
--000000000000f85ddf061865f24b--