LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2019, 02:59 PM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
Mariadb-10.4.8 configure error - Plugin AUTH_PAM cannot be built


Slackware-current 64 bit, last updated this morning 9/16/2019.

I'm trying to build Mariadb-10.4.8 from source, using their mysql config:

cmake ../ -DBUILD_CONFIG=mysql_release

And it gives this error

CMake Error at cmake/plugin.cmake:284 (MESSAGE):
Plugin AUTH_PAM cannot be built

Comparing the file mysql_release.cmake to the 2.4.7 version, I find this line has been added:

SET(PLUGIN_AUTH_PAM YES)

If I change it to NO, then it builds up to this point:

[ 52%] Building CXX object storage/rocksdb/CMakeFiles/rocksdblib.dir/rocksdb/env/io_posix.cc.o
[ 52%] Building CXX object storage/rocksdb/CMakeFiles/rocksdblib.dir/build_version.cc.o
[ 52%] Linking CXX static library librocksdblib.a
[ 52%] Built target rocksdblib
make: *** [Makefile:163: all] Error 2

At which point it dies. Line 163 of the Makefile is

$(MAKE) -f CMakeFiles/Makefile2 all

Makefile2 exists, and at this point idk wtf is up or why it won't continue to build...

I tried the SlackBuild for 10.4.7, same thing. On the same box, Mariadb-10.4.7 builds just fine, both manually and with the SlackBuild.

Anyone else tried to build Mariadb-10.4.8?

PS I'm running Slackware-current, last updated this morning 9/16/2019.
 
Old 09-16-2019, 03:01 PM   #2
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,016

Rep: Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207Reputation: 1207
Slackware has no LinuxPAM support.
 
Old 09-16-2019, 03:12 PM   #3
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by ZhaoLin1457 View Post
Slackware has no LinuxPAM support.
I know. That is why I disabled it. I don't think that is why it died when it did, but since it didn't tell me why, I can't be sure.
 
Old 09-16-2019, 04:33 PM   #4
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
This seems to be where it dies:

/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.
 
Old 09-16-2019, 05:00 PM   #5
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,498

Rep: Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450Reputation: 8450
Quote:
Originally Posted by Ook View Post
This seems to be where it dies:

/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.
 
Old 09-19-2019, 01:45 PM   #6
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
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.
 
3 members found this post helpful.
Old 09-19-2019, 10:45 PM   #7
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
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.
 
Old 09-20-2019, 11:07 AM   #8
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
Quote:
Originally Posted by TheRealGrogan View Post
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...
 
Old 09-20-2019, 01:45 PM   #9
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, LFS, Manjaro (for gaming)
Posts: 570

Rep: Reputation: 413Reputation: 413Reputation: 413Reputation: 413Reputation: 413
Quote:
Originally Posted by Ook View Post
I wish i could have a dollar for every botched Windows update I've seen...
I want $100 for every one, for the unbillable time it has cost me :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nginx auth_pam and groups Turbocapitalist Linux - Server 3 04-02-2019 09:45 AM
LXer: KDE Participating in Google Summer of Code 2019, MariaDB Releasing New Open-Source MariaDB Enterprise Server, CentOS Celebrates 15th B LXer Syndicated Linux News 0 02-28-2019 06:50 AM
[SOLVED] MariaDB TokuDB plugin load issue in current. matusz Slackware 1 09-05-2017 12:06 AM
SELinux Error on Apache2 with auth_pam DiWi Fedora 1 04-30-2008 04:50 AM
Apache auth_pam / pam winbind deny failed user auth collen Linux - Security 3 04-10-2006 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration