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

Fix the build with slibtool #119

Open
wants to merge 1 commit into
base: stable-1.5
Choose a base branch
from
Open

Conversation

orbea
Copy link

@orbea orbea commented May 8, 2022

gentoo bug: https://bugs.gentoo.org/777444

Note:

  • This PR is based against the stable-1.5 branch.
  • The current master branch is not affected.
  • Gentoo still ships Babletrace 1 and does not yet have Babletrace 2. I have no knowledge when this will change.

The Babeltrace 1 build fails when using slibtool (https://dev.midipix.org/cross/slibtool) instead of GNU libtool with many multiple definition warnings. This appears to be a case of overlinking and can be solved by cleaning up the .la dependencies for the build. Slibtool is more sensitive to user error while GNU libtool will silently hide some of the worst bugs which is how this goes unnoticed. With this patch it now works with both slibtool and GNU libtool on my system. I am not sure if you wish to carry this patch too, but I am sharing it in case you find it valuable.

orbea added a commit to orbea/gentoo that referenced this pull request May 9, 2022
When building with slibtool the build fails with many multiple
definition errors. This is because of overlinking internal .la
files where GNU libtool somehow obscures the issue.

Note the newer Babeltrace 2 which is not yet in Gentoo does
not seem to have any slibtool related build issues.

Bug: https://bugs.gentoo.org/777444
Upstream-PR: efficios/babeltrace#119
Signed-off-by: orbea <orbea@riseup.net>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request May 9, 2022
When building with slibtool the build fails with many multiple
definition errors. This is because of overlinking internal .la
files where GNU libtool somehow obscures the issue.

Note the newer Babeltrace 2 which is not yet in Gentoo does
not seem to have any slibtool related build issues.

Bug: https://bugs.gentoo.org/777444
Upstream-PR: efficios/babeltrace#119
Closes: #25408
Signed-off-by: orbea <orbea@riseup.net>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant