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 on compile on Fedora Rawhide #224

Closed
farchord opened this issue Jan 12, 2024 · 8 comments · Fixed by #225
Closed

Error on compile on Fedora Rawhide #224

farchord opened this issue Jan 12, 2024 · 8 comments · Fixed by #225

Comments

@farchord
Copy link

Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
  1. Compile obconf-qt on Fedora Rawhide
Context

This issue stops us from compiling obconf-qt on the next version of Fedora (Rawhide).

System Information
  • Distribution & Version: Fedora 40 (Rawhide)
  • Kernel: 6.8.0-0.rc0.20240110gitab27740f7665
  • Qt Version: 5.15.12
  • libqtxdg Version: 3.12.0
  • lxqt-build-tools Version: 0.13.0
  • Package version: 0.16.3

The short of the error is as follows:

/builddir/build/BUILD/obconf-qt-0.16.3/src/obconf-qt.cpp:233:36: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive]
233 | xmlErrorPtr e = xmlGetLastError();
| ~~~~~~~~~~~~~~~^~
| |
| const xmlError* {aka const _xmlError*}

Attaching the whole build log as well.

Thank you!
build.log

@tsujan
Copy link
Member

tsujan commented Jan 12, 2024

Does replacing the line

xmlErrorPtr e = xmlGetLastError();

with

const xmlError *e = xmlGetLastError();

fix the problem? I can't test because I'm on Wayland.

@stefonarch
Copy link
Member

I get the same error now on arch, the patch resolves it.
Why should wayland matter for compile btw?

@tsujan
Copy link
Member

tsujan commented Jan 12, 2024

Why should wayland matter for compile btw?

Not for compilation but for running and testing — at least here, it crashes on Wayland.

EDIT:
If the app really works with that change, I could make a point release.

@stefonarch
Copy link
Member

stefonarch commented Jan 12, 2024

at least here, it crashes on Wayland.

Ok, but here it opens fine with QT_QPA_PLATFORM=xcb obconf-qt and looks working, changed theme to test.

EDIT: will run x11 session with openbox to be sure.

@tsujan
Copy link
Member

tsujan commented Jan 12, 2024

@stefonarch
Thanks for testing! I'm in the middle of some work but will make another point release tonight or tomorrow after making the change. Is that OK with you? Do you want to merge #219 or any translation?

@farchord
Thanks for reporting!

@stefonarch
Copy link
Member

Obconf-qt is working fine I see, go ahead. There are no new translations, but some have been merged after the last release, nothing to merge.

@tsujan
Copy link
Member

tsujan commented Jan 12, 2024

nothing to merge.

What about #219?

@stefonarch
Copy link
Member

I've lost interest somehow in this, as it's not possible for most lxqt apps.

tsujan added a commit that referenced this issue Jan 14, 2024
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.

3 participants