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

Errors when building with libxml2 ≥ 2.12.0 #36

Open
ryandesign opened this issue Jun 16, 2024 · 0 comments
Open

Errors when building with libxml2 ≥ 2.12.0 #36

ryandesign opened this issue Jun 16, 2024 · 0 comments

Comments

@ryandesign
Copy link
Contributor

libinfinity 0.7.2 does not build with libxml2 ≥ 2.12.0. Errors from the first encountered file are:

adopted/inf-adopted-session-record.c:88:3: error: use of undeclared identifier 'xmlErrorPtr'
  xmlErrorPtr xmlerror;
  ^

adopted/inf-adopted-session-record.c:91:3: error: use of undeclared identifier 'xmlerror'
  xmlerror = xmlGetLastError();
  ^
adopted/inf-adopted-session-record.c:91:14: error: implicit declaration of function 'xmlGetLastError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
  xmlerror = xmlGetLastError();
             ^

adopted/inf-adopted-session-record.c:97:5: error: use of undeclared identifier 'xmlerror'
    xmlerror->message
    ^

adopted/inf-adopted-session-record.c:559:3: error: use of undeclared identifier 'xmlErrorPtr'
  xmlErrorPtr xmlerror;
  ^

adopted/inf-adopted-session-record.c:593:5: error: use of undeclared identifier 'xmlerror'
    xmlerror = xmlGetLastError();
    ^
adopted/inf-adopted-session-record.c:593:16: error: implicit declaration of function 'xmlGetLastError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    xmlerror = xmlGetLastError();
               ^
adopted/inf-adopted-session-record.c:598:7: error: use of undeclared identifier 'xmlerror'
      xmlerror->code,
      ^
adopted/inf-adopted-session-record.c:599:7: error: use of undeclared identifier 'xmlerror'
      xmlerror->message
      ^
adopted/inf-adopted-session-record.c:612:5: error: use of undeclared identifier 'xmlerror'
    xmlerror = xmlGetLastError();
    ^
adopted/inf-adopted-session-record.c:612:16: error: implicit declaration of function 'xmlGetLastError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    xmlerror = xmlGetLastError();
               ^
adopted/inf-adopted-session-record.c:617:7: error: use of undeclared identifier 'xmlerror'
      xmlerror->code,
      ^
adopted/inf-adopted-session-record.c:618:7: error: use of undeclared identifier 'xmlerror'
      xmlerror->message
      ^
adopted/inf-adopted-session-record.c:674:3: error: use of undeclared identifier 'xmlErrorPtr'
  xmlErrorPtr xmlerror;
  ^

adopted/inf-adopted-session-record.c:723:5: error: use of undeclared identifier 'xmlerror'
    xmlerror = xmlGetLastError();
    ^
adopted/inf-adopted-session-record.c:723:16: error: implicit declaration of function 'xmlGetLastError' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    xmlerror = xmlGetLastError();
               ^
adopted/inf-adopted-session-record.c:728:7: error: use of undeclared identifier 'xmlerror'
      xmlerror->code,
      ^
adopted/inf-adopted-session-record.c:729:7: error: use of undeclared identifier 'xmlerror'
      xmlerror->message
      ^

but many, many other files need fixes too. The problem occurs because libxml2 2.12.0 removed unnecessary inclusions from their headers, exposing areas where your code has not included the necessary headers.

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

No branches or pull requests

1 participant