Mariadb-10.4.8 configure error - Plugin AUTH_PAM cannot be built
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
/usr/bin/ld: skipping incompatible /usr/lib/libtinfo.so when searching for -ltinfo
/usr/bin/ld: cannot find -ltinfo
In the past, I would symlink libtinfo to libncurses to get past this, but this seems to no longer work.
Slackware -current has a proper libtinfo, and also ships already with mariadb-10.4.8. The patch for the cmake config is the same as what you found in the OP. Not sure what's wrong with your box, but the -ltinfo issues don't happen here. I'd suggest reinstalling the ncurses package as any libtinfo hacks aren't needed anymore and would probably just cause breakage.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
So I removed my libtinfo hacks, and reinstalled the ncurses package, as you suggested. I then ran into problems with the mariadb build provided by mariadb:
mysql
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Looked a bit closer and found:
ldd mysql
libncurses.so.5 => not found
libtinfo.so.5 => not found
The build provided by Mariadb appears to have been compiled against the .5 version of libncurses and libtinfo. I looked at the version that comes with Slackware:
ldd mysql
libncurses.so.6 => /lib64/libncurses.so.6 (0x00007f9e2624a000)
libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007f9e26219000)
So I built mariadb using the slackbuilds script, and it worked. I then built it from source, modifying the mysql_release.cmake to not use PAM, and again it works. Cleaning up my ncurses and libtinfo mess seems to have fixed the problem.
Lesson learned: Don't rely on the build provided by Mariadb. This is not the first time I got bit by trying to use their build, I guess I did not learn my lesson the first time.
That's the thing about running other people's binaries, they aren't compiled for your distribution. It's probably built on an older Ubuntu or something.
I expect that more often than not, with third party binaries and if I take such a shortcut, I expect it to fail one day after library changes. It's best to compile, or use a package built for the correct version of your distro.
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699
Original Poster
Rep:
Quote:
Originally Posted by TheRealGrogan
That's the thing about running other people's binaries, they aren't compiled for your distribution. It's probably built on an older Ubuntu or something.
I expect that more often than not, with third party binaries and if I take such a shortcut, I expect it to fail one day after library changes. It's best to compile, or use a package built for the correct version of your distro.
Agree 100%. For my production systems, I always compile from scratch. That way it's not only compiled for my build, but it's compiled *my way. I manage several Linux servers used for fax, web, email and apps, and they are pushing 100% uptime. The only downtime I can think of that was attributed to a linux problem was when they broke an ssh2 lib for php and I had to scramble to find/compile/install an older version to get it working again. That is the *only botched update I've ever seen for Slackware.
I wish i could have a dollar for every botched Windows update I've seen...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.