Skip to content

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

@MatthiasPetermann

Description

@MatthiasPetermann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions