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--