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

Zorba fails to build with modern libxml2 #22

Open
SMillerDev opened this issue Feb 20, 2024 · 0 comments · May be fixed by #23
Open

Zorba fails to build with modern libxml2 #22

SMillerDev opened this issue Feb 20, 2024 · 0 comments · May be fixed by #23

Comments

@SMillerDev
Copy link

Compiling creates errors like:

 /tmp/zorba-20240217-2363463-adrtuk/zorba-3.1/src/store/naive/loader_fast.cpp:219:26: error: invalid conversion from ‘void (*)(void*, xmlErrorPtr)’ {aka ‘void (*)(void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive]
    219 |   theSaxHandler.serror = &XmlLoader::error;
        |                          ^~~~~~~~~~~~~~~~~
        |                          |
        |                          void (*)(void*, xmlErrorPtr) {aka void (*)(void*, _xmlError*)}
  /tmp/zorba-20240217-2363463-adrtuk/zorba-3.1/src/store/naive/loader_dtd.cpp: In constructor ‘zorba::simplestore::FragmentXmlLoader::FragmentXmlLoader(zorba::store::ItemFactory*, zorba::XQueryDiagnostics*, const zorba::store::LoadProperties&, bool)’:
  /tmp/zorba-20240217-2363463-adrtuk/zorba-3.1/src/store/naive/loader_dtd.cpp:110:26: error: invalid conversion from ‘void (*)(void*, xmlErrorPtr)’ {aka ‘void (*)(void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive]
    110 |   theSaxHandler.serror = &XmlLoader::error;
        |                          ^~~~~~~~~~~~~~~~~
        |                          |
        |                          void (*)(void*, xmlErrorPtr) {aka void (*)(void*, _xmlError*)}
  /tmp/zorba-20240217-2363463-adrtuk/zorba-3.1/src/store/naive/loader_dtd.cpp: In constructor ‘zorba::simplestore::DtdXmlLoader::DtdXmlLoader(zorba::store::ItemFactory*, zorba::XQueryDiagnostics*, const zorba::store::LoadProperties&, bool)’:
  /tmp/zorba-20240217-2363463-adrtuk/zorba-3.1/src/store/naive/loader_dtd.cpp:603:26: error: invalid conversion from ‘void (*)(void*, xmlErrorPtr)’ {aka ‘void (*)(void*, _xmlError*)’} to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void*, const _xmlError*)’} [-fpermissive]
    603 |   theSaxHandler.serror = &XmlLoader::error;
        |                          ^~~~~~~~~~~~~~~~~
        |                          |
        |                          void (*)(void*, xmlErrorPtr) {aka void (*)(void*, _xmlError*)}
  make[2]: *** [src/CMakeFiles/zorba_simplestore.dir/build.make:10005: src/CMakeFiles/zorba_simplestore.dir/store/naive/loader_fast.cpp.o] Error 1

As spotted in: Homebrew/homebrew-core#153108

ryandesign added a commit to ryandesign/zorba that referenced this issue Nov 15, 2024
@ryandesign ryandesign linked a pull request Nov 15, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant