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

Error reading xml on Freebsd (different BSD systems) #32

Closed
ctapmex opened this issue Apr 28, 2024 · 4 comments
Closed

Error reading xml on Freebsd (different BSD systems) #32

ctapmex opened this issue Apr 28, 2024 · 4 comments
Labels

Comments

@ctapmex
Copy link
Member

ctapmex commented Apr 28, 2024

An error occurs when running the FarColorer plugin on a BSD system
image

@ctapmex ctapmex added the bug label Apr 28, 2024
@ctapmex
Copy link
Member Author

ctapmex commented Apr 28, 2024

For some reason, when performing dynamic_cast conversion, the resulting response is always null.

void HrcLibrary::Impl::parseHrcBlockElements(const xercesc::DOMNode* elem)
{
  if (elem->getNodeType() == xercesc::DOMNode::ELEMENT_NODE) {
    if (auto sub_elem = dynamic_cast<const xercesc::DOMElement*>(elem)) {
      if (xercesc::XMLString::equals(elem->getNodeName(), hrcTagPrototype) ||
          xercesc::XMLString::equals(elem->getNodeName(), hrcTagPackage))
      {
        addPrototype(sub_elem);
      }

@ctapmex
Copy link
Member Author

ctapmex commented Apr 28, 2024

On BSD systems, clang is used as a compiler.
It looks like we are getting into an error as described here android/ndk#533 (comment)

When building colorer on nix systems, dynamic linking with external libraries is always used.

@ctapmex
Copy link
Member Author

ctapmex commented Apr 28, 2024

not playable on ubuntu + clang

@ctapmex
Copy link
Member Author

ctapmex commented Apr 28, 2024

fixed

@ctapmex ctapmex closed this as completed Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant