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

BUILD(cmake): Find and link Poco::XML #5616

Merged

Conversation

carlwgeorge
Copy link
Contributor

Without this, building against the latest poco snapshot results in errors like:

/usr/bin/ld: /builddir/build/BUILD/mumble-1.4.230.src/src/mumble/PluginManifest.cpp:72: undefined reference to `typeinfo for Poco::XML::Element'

Checks

@carlwgeorge
Copy link
Contributor Author

If this looks good to y'all I'm happy to send the equivalent pull request to the 1.4.x branch.

@Krzmbrzl
Copy link
Member

Krzmbrzl commented Apr 6, 2022

Indeed, it appears that I didn't revise the cmake script after having introduced the dependency on Poco::XML 👀

In theory however, everything that we don't use explicitly, should be handled as an implicit dependency of the modules that we do use (Zip and XML). Did you try if specifying those is enough?
I would prefer restricting ourselves to the explicitly used modules and let cmake figure out the necessary dependencies from that. That seems to make our intent more clear 🤔

@Krzmbrzl
Copy link
Member

Krzmbrzl commented Apr 6, 2022

If this looks good to y'all I'm happy to send the equivalent pull request to the 1.4.x branch.

Thanks for the offer, but there is probably no need for that. I have a tool to backport pull-requests semi-automatically, so that should take care of this :)

@carlwgeorge
Copy link
Contributor Author

Did you try if specifying those is enough?

Not at first, but I modified my patch locally and that does seem to work.

Without this, building against the latest poco snapshot results in
errors like:

/usr/bin/ld: /builddir/build/BUILD/mumble-1.4.230.src/src/mumble/PluginManifest.cpp:72: undefined reference to `typeinfo for Poco::XML::Element'
@carlwgeorge carlwgeorge force-pushed the find-and-link-all-poco-components branch from 0d714f5 to fefdd79 Compare April 6, 2022 18:42
@carlwgeorge
Copy link
Contributor Author

I've amended this PR to only add Poco::XML, let me know if it needs any other adjustments.

@Krzmbrzl Krzmbrzl added the build Everything related to compiling/building the code label Apr 7, 2022
@Krzmbrzl Krzmbrzl changed the title BUILD(cmake): Find and link all poco components BUILD(cmake): Find and link Poco::XML Apr 7, 2022
@Krzmbrzl Krzmbrzl merged commit 73d8a4d into mumble-voip:master Apr 7, 2022
@Krzmbrzl
Copy link
Member

Krzmbrzl commented Apr 7, 2022

Thanks for fixing this 👍

@Krzmbrzl
Copy link
Member

Krzmbrzl commented Apr 7, 2022

💚 All backports created successfully

Status Branch Result
1.4.x

Questions ?

Please refer to the Backport tool documentation

@carlwgeorge carlwgeorge deleted the find-and-link-all-poco-components branch April 7, 2022 18:36
MingcongBai added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request May 25, 2022
MingcongBai added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request May 25, 2022
MingcongBai added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request Jun 10, 2022
MingcongBai added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request Jun 14, 2022
MingcongBai added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request Jun 14, 2022
MingcongBai added a commit to AOSC-Dev/aosc-os-abbs that referenced this pull request Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Everything related to compiling/building the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants