Skip to content

Compatibility with libxml2 2.14 #480

@beenje

Description

@beenje

I maintain the nexus conda package on conda-forge.

There is an opened PR to rebuild it with libxml2 2.14 but compilation fails:

$SRC_DIR/applications/NXtranslate/xml_parser.cpp: In function 'void my_error(void*, const char*, ...)':
$SRC_DIR/applications/NXtranslate/xml_parser.cpp:467:12: error: 'getLineNumber' was not declared in this scope
  467 |   int line=getLineNumber(context);
      |            ^~~~~~~~~~~~~
$SRC_DIR/applications/NXtranslate/xml_parser.cpp:468:12: error: 'getColumnNumber' was not declared in this scope; did you mean 'xmlSAX2GetColumnNumber'?
  468 |   int col =getColumnNumber(context);
      |            ^~~~~~~~~~~~~~~
      |            xmlSAX2GetColumnNumber
$SRC_DIR/applications/NXtranslate/xml_parser.cpp: In function 'void my_fatalError(void*, const char*, ...)':
$SRC_DIR/applications/NXtranslate/xml_parser.cpp:490:12: error: 'getLineNumber' was not declared in this scope
  490 |   int line=getLineNumber(context);
      |            ^~~~~~~~~~~~~
$SRC_DIR/applications/NXtranslate/xml_parser.cpp:491:12: error: 'getColumnNumber' was not declared in this scope; did you mean 'xmlSAX2GetColumnNumber'?
  491 |   int col =getColumnNumber(context);
      |            ^~~~~~~~~~~~~~~
      |            xmlSAX2GetColumnNumber

Full log here

I see the code was updated in 2020 to replace those deprecated functions (b0459f6) but there hasn't been any new release since 2016.

Is it possible to make a new release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions