Repository navigation
undefined symbol: lua_tolstring #2
Copy link
Copy link
Open
Description
user [ ~/python-lua/src-c ]$ python3 setup.py build
running build
running build_ext
building 'lua' extension
creating build
creating build/temp.linux-x86_64-cpython-311
clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/python3.11 -c module.cc -o build/temp.linux-x86_64-cpython-311/module.o -std=c++20 -I/usr/include/lua5.4 -llua5.4
clang-16: warning: -llua5.4: 'linker' input unused [-Wunused-command-line-argument]
creating build/lib.linux-x86_64-cpython-311
clang++ -shared build/temp.linux-x86_64-cpython-311/module.o -L/usr/lib -o build/lib.linux-x86_64-cpython-311/lua.cpython-311-x86_64-linux-gnu.so
user [ ~/python-lua/src-c ]$ sudo python3 setup.py install
running install
/usr/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running bdist_egg
running egg_info
creating lua.egg-info
writing lua.egg-info/PKG-INFO
writing dependency_links to lua.egg-info/dependency_links.txt
writing top-level names to lua.egg-info/top_level.txt
writing manifest file 'lua.egg-info/SOURCES.txt'
reading manifest file 'lua.egg-info/SOURCES.txt'
writing manifest file 'lua.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-cpython-311/lua.cpython-311-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for lua.cpython-311-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/lua.py to lua.cpython-311.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying lua.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lua.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lua.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying lua.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__.lua.cpython-311: module references __file__
creating dist
creating 'dist/lua-0.6-py3.11-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing lua-0.6-py3.11-linux-x86_64.egg
removing '/usr/lib/python3.11/site-packages/lua-0.6-py3.11-linux-x86_64.egg' (and everything under it)
creating /usr/lib/python3.11/site-packages/lua-0.6-py3.11-linux-x86_64.egg
Extracting lua-0.6-py3.11-linux-x86_64.egg to /usr/lib/python3.11/site-packages
lua 0.6 is already the active version in easy-install.pth
Installed /usr/lib/python3.11/site-packages/lua-0.6-py3.11-linux-x86_64.egg
Processing dependencies for lua==0.6
Finished processing dependencies for lua==0.6
user [ ~/python-lua/src-c ]$ python3
Python 3.11.5 (main, Sep 24 2023, 01:58:09) [Clang 16.0.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lua
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python3.11/site-packages/lua-0.6-py3.11-linux-x86_64.egg/lua.cpython-311-x86_64-linux-gnu.so: undefined symbol: lua_tolstringReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity