New submission from Christian Bachmaier <ch...@infosun.fim.uni-passau.de>:
Now that the patch from issue 42591 (https://bugs.python.org/issue42591), i.e., msg383154 from 12/16/20 has made it to Ubuntu 20.04 with packet version python3.9.1-1, there show some problems with that. I did: > freeze/freeze.py -o frozen helloworld.py > cd frozen > make This delivers a linker error ...xml__parsers.o M_xml__parsers__expat.o M_xml__sax.o M_xml__sax___exceptions.o M_xml__sax__expatreader.o M_xml__sax__handler.o M_xml__sax__saxutils.o M_xml__sax__xmlreader.o M_xmlrpc.o M_xmlrpc__client.o M_zipfile.o M_zipimport.o /usr/lib/libpython3.9.so -lexpat -L/usr/lib -lz -lexpat -lcrypt -lpthread -ldl -lutil -lm -lm -o helloworld x86_64-linux-gnu-gcc: error: /usr/lib/libpython3.9.so: No such file or directory make: *** [Makefile:1234: helloworld] Error 1 The linker searches libpython3.9 in /usr/lib instead in /usr/lib/x86_64-linux-gnu . The "hot-fix" > ln -s /usr/lib/x86_64-linux-gnu/libpython3.9.so /usr/lib/libpython3.9.so fixes that, but brings another error: > freeze/freeze.py -o frozen helloworld.py > cd frozen > make ...xml__parsers.o M_xml__parsers__expat.o M_xml__sax.o M_xml__sax___exceptions.o M_xml__sax__expatreader.o M_xml__sax__handler.o M_xml__sax__saxutils.o M_xml__sax__xmlreader.o M_xmlrpc.o M_xmlrpc__client.o M_zipfile.o M_zipimport.o /usr/lib/libpython3.9.so -lexpat -L/usr/lib -lz -lexpat -lcrypt -lpthread -ldl -lutil -lm -lm -o helloworld /usr/bin/ld: config.o:(.data.rel+0x278): undefined reference to `PyInit_lazr' collect2: error: ld returned 1 exit status make: *** [Makefile:1234: helloworld] Error 1 @Victor: I know there are alternatives to freeze, however, I have to keep a larger legacy project running, and I am not that expert. Maybe you could have a look on the above. ---------- components: Library (Lib) messages: 387015 nosy: chba priority: normal severity: normal status: open title: freeze searches libpython3.9.so in /usr/lib instead /usr/lib/x86_64-linux-gnu versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43229> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com