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

tinyxml2 upgrade broke daemon #31

Open
ghost opened this issue Dec 14, 2017 · 3 comments
Open

tinyxml2 upgrade broke daemon #31

ghost opened this issue Dec 14, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 14, 2017

Just now noticed this and I did several large and dependent heavy upgrades today, so I do not know for certain which one bumped tinyxml2 from 0.5 to 0.6, but systemctl fails to start sidewinderd.service without libtinyxml2.so.5. However the fix was simple, and a symlink pointing to the newer lib worked:

ln -s /usr/lib/libtinyxml2.so.6.0.0 /usr/lib/libtinyxml2.so.5

Kernel: 4.14.4-1-ARCH x86_64 bits: 64 Desktop: Cinnamon 3.6.6 Distro: Arch Linux

Just wanted to make you aware incase this is distro specific or someone else comes by wondering what to do. A downgrade to tinyxml2 probably would cause a dependency apocalypse if you do any dotnet CLI or any kind of coding via CLI, let alone normal use issues.

@Marateg
Copy link

Marateg commented Nov 3, 2019

same problem was with version 7 of tinyxml2:
this fixed my Manjaro :-)
sudo ln -s /usr/lib/libtinyxml2.so.7 /usr/lib/libtinyxml2.so.6

# uname -a
Linux Home 5.3.6-1-MANJARO #1 SMP PREEMPT Sat Oct 12 09:30:05 UTC 2019 x86_64 GNU/Linux

@tolga9009
Copy link
Owner

This happens, when you have an old build, linking against a previous version of tinyxml2. The proper fix would be to delete the build directory e.g. by using rm -rf build and re-building & re-installing sidewinderd from scratch by following the instructions at https://github.com/tolga9009/sidewinderd#install.

Unfortunately, I'm not aware of any methods to fix it within the scope of this project. It's unusual for a stable library to get major version bumps each year, so keep this thread in mind.

I'll leave this issue tracker open, so it's easier to find for future readers.

@jayfan0
Copy link

jayfan0 commented Jul 9, 2024

Thanks for leaving this open, this helped me today with version 9 > 10.

Would linking against libtinyxml2.so instead of libtinyxml2.so.X during build time help? Though i suppose there is risk of using an incompatible version. The .so usually links to whatever latest version is installed

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

3 participants