How to prevent bind from causing problems when being updated in Slackware?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to prevent bind from causing problems when being updated in Slackware?
In the test lab, when I updated Bind from version 9.7.3 to version 9.9.11, the following error occurred: liblwres.so.60: Cannot Open shared.
From what I've researched, it seems that I have to install bind-libs, in the compatible version. I didn't find this package on slackware ftp for version 13.37.
I know that the Slackware 13.37 server is a very old system, but it is what we have in production, and in order for me to update I have to present my boss with a very consistent plan.
The problem is that Slackware 13.37 is EOL since 6. April 2018, meaning no further updates are being released for that version of the distribution.
I'm guessing you're updating BIND due to there being some security flaw that needs patching? In that case, these are your options:
Install the required libraries from a more recent Slackware release
Build and install the libraries yourself
Compile and install BIND from the source code
Upgrade the server to a supported version of Slackware
Option 1 will result in a weird Slackware-hybrid that isn't supported in any way. And you'll most certainly experience other dependency issues.
Options 2-3 will probably also mean you'll have to chase down and fix a number of dependencies along the way, so it'll be even more work and you'll still end up with something that's unsupported and has to be patched manually.
Option 4 will work and give you a secure and supported platform. 13.37 is a bit long in the tooth, so you may want to consider doing the upgrade in multiple steps, via 14.0 and 14.1 to 14.2. There are some possible pitfalls related to (among other things) NIC firmware and the kmod package which you could avoid by doing it that way.
You may be able to deduce from this which of the above I would recommend.
The problem is that Slackware 13.37 is EOL since 6. April 2018, meaning no further updates are being released for that version of the distribution.
I'm guessing you're updating BIND due to there being some security flaw that needs patching? In that case, these are your options:
Install the required libraries from a more recent Slackware release
Build and install the libraries yourself
Compile and install BIND from the source code
Upgrade the server to a supported version of Slackware
Option 1 will result in a weird Slackware-hybrid that isn't supported in any way. And you'll most certainly experience other dependency issues.
Options 2-3 will probably also mean you'll have to chase down and fix a number of dependencies along the way, so it'll be even more work and you'll still end up with something that's unsupported and has to be patched manually.
Option 4 will work and give you a secure and supported platform. 13.37 is a bit long in the tooth, so you may want to consider doing the upgrade in multiple steps, via 14.0 and 14.1 to 14.2. There are some possible pitfalls related to (among other things) NIC firmware and the kmod package which you could avoid by doing it that way.
You may be able to deduce from this which of the above I would recommend.
The problem was that I configured bind in chroot, and when starting rc.bind he was calling the libraries of the old version still. After I copied the new binaries from /usr/sbin to /var/named/chroot, it worked normally!
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803
Rep:
Quote:
Originally Posted by cesarsj
In the test lab, when I updated Bind from version 9.7.3 to version 9.9.11, the following error occurred: liblwres.so.60: Cannot Open shared.
From what I've researched, it seems that I have to install bind-libs, in the compatible version. I didn't find this package on slackware ftp for version 13.37.
I know that the Slackware 13.37 server is a very old system, but it is what we have in production, and in order for me to update I have to present my boss with a very consistent plan.
Luckily, you have a lab setup so you can try out different combinations of OS version and applications.
Do the applications actually have dependencies on Bind? (Did they actually make major configuration changes to a point release??!!) I think I'd simply backup the Bind configuration files, and restore them onto a fresh, up-to-date SW test installation and see how it goes on your test network.
If there are non-Bind applications to worry about: What applications is this system running? How are they installed? (packages? sources?) How dependent are any "production" applications on 13.37 itself?
I've had applications that were built from sources and installed under "/opt". (Sometimes just be closer to current when a distibution's repository is lagging behind.) If I were to upgrade the base OS, I could then remount /opt, and see if the applications are still working as they should be. If not, I could make a parallel tree of the sources (in /opt/src/appname-new-version), recompile using the new OS's libraries, redefine the symlink pointing to the application's new binary/lib tree before running "make install", and test, test, test (deleting the old tree after passing tests). In the past, I've kept "configure" command lines in scripts to allow me to recompile with the exact same options---not sure how well that plan works with Slackbuilds if you've been going that route.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.