Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 677532

Summary: sys-auth/libnss-mysql-1.5_p20060915-r4 : checking for MySQL libraries... configure: error: Cannot locate MySQL libraries. Try using --with-mysql=DIR
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-auth:libnss-mysql-1.5_p20060915-r4:20190209-091502.log
temp.tbz2
Fix AC macro FIND_MYSQL
My emerge --info

Description Toralf Förster gentoo-dev 2019-02-09 09:24:48 UTC
checking whether the linker accepts -znodelete... yes
checking for MySQL headers... /usr/include/mysql
checking for MySQL libraries... configure: error: Cannot locate MySQL libraries.  Try using --with-mysql=DIR

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-auth/libnss-mysql-1.5_p20060915-r4/work/libnss-mysql/config.log

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-developer_20190208-112056

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *




emerge -qpvO sys-auth/libnss-mysql
[ebuild  N    ] sys-auth/libnss-mysql-1.5_p20060915-r4  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2019-02-09 09:24:50 UTC
Created attachment 564304 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-09 09:24:53 UTC
Created attachment 564306 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-02-09 09:24:56 UTC
Created attachment 564308 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-02-09 09:24:59 UTC
Created attachment 564310 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-02-09 09:25:03 UTC
Created attachment 564312 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-09 09:25:06 UTC
Created attachment 564314 [details]
sys-auth:libnss-mysql-1.5_p20060915-r4:20190209-091502.log
Comment 7 Toralf Förster gentoo-dev 2019-02-09 09:25:09 UTC
Created attachment 564316 [details]
temp.tbz2
Comment 8 Blakawk 2019-08-20 20:17:35 UTC
Got same issue here.

I tracked it down to the fact that i'm using a no-multilib 17.1 profile, and because the acinclude.m4 macro FIND_MYSQL does not look in /usr/lib64 for the MySQL libraries.
Comment 9 Blakawk 2019-08-20 20:19:31 UTC
Created attachment 587714 [details, diff]
Fix AC macro FIND_MYSQL
Comment 10 Blakawk 2019-08-20 20:24:14 UTC
Created attachment 587716 [details]
My emerge --info