Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-perl/DBD-mysql-5.7.0 fails with MariaDB [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1852

PostPosted: Tue Feb 04, 2025 5:41 pm    Post subject: dev-perl/DBD-mysql-5.7.0 fails with MariaDB [SOLVED] Reply with quote

This happened to me trying to upgrade to dev-perl/DBD-mysql-5.7.0 on my 32bit x86 machines, but NOT on this 64 bit machine. It appears it's requiring MySQL specifically and is disallowing MariaDB?:

Code:
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-perl/DBD-mysql-5.7.0/work/DBD-mysql-5.007 ...
 * Using ExtUtils::MakeMaker
 * perl Makefile.PL AR=i686-pc-linux-gnu-ar CC=i686-pc-linux-gnu-gcc CPP=i686-pc-linux-gnu-gcc -E LD=i686-pc-linux-gnu-gcc NM=i686-pc-linux-gnu-nm RANLIB=i686-pc-linux-gnu-ranlib OPTIMIZE=-march=pentium4 -O2 -pipe -fomit-frame-pointer -fno-stack-protector LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none --mysql_config=/usr/bin/mariadb_config


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user '' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> CREATE USER ''@'localhost' IDENTIFIED BY 's3kr1t';
mysql> GRANT ALL PRIVILEGES ON test.* TO ''@'localhost';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

DBD::mysql requires MySQL 8.x for building. Version reported by /usr/bin/mariadb_config --version: 10.8.8 at Makefile.PL line 451, <PIPE> line 3.
 * ERROR: dev-perl/DBD-mysql-5.7.0::gentoo failed (configure phase):
 *   Unable to build!
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 1796:  Called perl-module_src_configure
 *   environment, line 1290:  Called die
 * The specific snippet of code:
 *               perl Makefile.PL "$@" <<< "${pm_echovar}" || die "Unable to build!";
 *
 * If you need support, post the output of `emerge --info '=dev-perl/DBD-mysql-5.7.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-perl/DBD-mysql-5.7.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-perl/DBD-mysql-5.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-perl/DBD-mysql-5.7.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-perl/DBD-mysql-5.7.0/work/DBD-mysql-5.007'
 * S: '/var/tmp/portage/dev-perl/DBD-mysql-5.7.0/work/DBD-mysql-5.007'

>>> Failed to emerge dev-perl/DBD-mysql-5.7.0, Log file:


Another strange thing is the fact that that /usr/bin/mariadb_config is reporting 10.8.8 given that I have 10.6.17 installed...though that's the case on this machine as well where it built just fine.

I'm about to mask that for now. Any ideas as to what's up there?

Tom


Last edited by tld on Tue Feb 04, 2025 7:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1884
Location: Germany

PostPosted: Tue Feb 04, 2025 6:29 pm    Post subject: Reply with quote

Could it be this bug here: https://bugs.gentoo.org/931628 ?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1852

PostPosted: Tue Feb 04, 2025 7:12 pm    Post subject: Reply with quote

OMG yes...that's definitely it...though regarding a somewhat older version.

Also, that totally explains why it worked on this machine and not on my MythTV x86 machines. On those machines I have the mariadb USE set, and on this one I have mysql set. That's actually the fix recommended there.

Thanks!!
Tom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum