Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined PLT symbol "__cxa_throw" (dynamic exception specifications are deprecated in C++11?) #18

Open
MatthiasPetermann opened this issue Jan 5, 2022 · 0 comments

Comments

@MatthiasPetermann
Copy link

Hello,

I am trying to install this package via luarocks on lua 5.3. The installation works so far, but I get an error message when I "require" the xml lib in my script, which indicates that a symbol from a dependent library can not be resolved:

error loading module 'xml.core' from file 'local/lib/lua/5.3/xml/core.so': local/lib/lua/5.3/xml/core.so: Undefined PLT symbol "__cxa_throw" (symnum = 8) lua: local/share/lua/5.3/xml/init.lua:31: attempt to call a nil value (field 'Parser') stack traceback: local/share/lua/5.3/xml/init.lua:31: in main chunk [C]: in function 'require' ./project-list.lua:21: in main chunk [C]: in ?

I'm trying this on NetBSD which is certainly not the usual use case - so of course it could be that it's my environment. I'd still appreciate a quick feedback. In case it's a bug, I'm happy to help test it, of course.

Since the complained about symbol cxa_throw seems to be a part of the exception handling, maybe also the following writeout might be interesting, which appears during the installation with Luarocks at some of the C-files:

src/bind/dub/dub.h:304:82: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
 void **checksdata(lua_State *L, int ud, const char *tname, bool keep_mt = false) throw(dub::Exception);

Many greetings
Matthias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant