Skip to content

How to install XML-related dependencies on Ubuntu 22.04? Issue #320 does not address this issue. #422

@moodykeke

Description

@moodykeke
snapcloud dev-0 is pinned to xml 1.1.3-1 (not installed)
Installing https://luarocks.org/xml-1.1.3-1.src.rock
gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/Parser.cpp -o src/Parser.o -Iinclude -Isrc/bind -Isrc/vendor
In file included from include/xml/Parser.h:33,
                 from src/Parser.cpp:1:
src/bind/dub/dub.h:298:48: error: ISO C++17 does not allow dynamic exception specifications
  298 | lua_Number checknumber(lua_State *L, int narg) throw(dub::TypeException);
      |                                                ^~~~~
src/bind/dub/dub.h:299:50: error: ISO C++17 does not allow dynamic exception specifications
  299 | lua_Integer checkinteger(lua_State *L, int narg) throw(dub::TypeException);
      |                                                  ^~~~~
src/bind/dub/dub.h:300:63: error: ISO C++17 does not allow dynamic exception specifications
  300 | *checklstring(lua_State *L, int narg, size_t *len) throw(dub::TypeException);
      |                                                    ^~~~~

src/bind/dub/dub.h:301:82: error: ISO C++17 does not allow dynamic exception specifications
  301 | , int ud, const char *tname, bool keep_mt = false) throw(dub::Exception);
      |                                                    ^~~~~

src/bind/dub/dub.h:304:82: error: ISO C++17 does not allow dynamic exception specifications
  304 | , int ud, const char *tname, bool keep_mt = false) throw(dub::Exception);
      |                                                    ^~~~~

src/bind/dub/dub.h:307:62: error: ISO C++17 does not allow dynamic exception specifications
  307 | cksdata_d(lua_State *L, int ud, const char *tname) throw(dub::Exception);
      |                                                    ^~~~~

src/bind/dub/dub.h:317:56: error: ISO C++17 does not allow dynamic exception specifications
  317 | ne const char *checkstring(lua_State *L, int narg) throw(dub::TypeException) {
      |                                                    ^~~~~


Error: Failed installing dependency: https://luarocks.org/xml-1.1.3-1.src.rock - Build error: Failed compiling object src/Parser.o

The installation error is as follows. Is there a better solution? Thank you.

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