Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247565 - dev-lang/php does not find libmysqlclient_r even if it is in /usr/lib64
Summary: dev-lang/php does not find libmysqlclient_r even if it is in /usr/lib64
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: PHP Bugs
Depends on:
Reported: 2008-11-19 11:06 UTC by Simon
Modified: 2010-03-31 17:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2008-11-19 11:06:45 UTC
configure: error: Cannot find libmysqlclient_r under /usr.
Note that the MySQL client library is not bundled anymore!
 * ERROR: dev-lang/php-5.2.6-r7 failed.
 * Call stack:
 *     , line   49:  Called src_compile
 *             environment, line 4480:  Called src_compile_normal
 *             environment, line 4591:  Called php5_2-sapi_src_compile
 *             environment, line 3509:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed";
 *  The die message:
 *   configure failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/php-5.2.6-r7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.6-r7/temp/environment'.

Reproducible: Always

Steps to Reproduce:
emerge php

this patch helped me resolving:

--- /var/tmp/portage/dev-lang/php-5.2.6-r7/work/php-5.2.6/ext/mysql/config.m4      2006-06-01 21:14:48.000000000 +0200
+++ config.m4   2008-05-04 19:34:26.000000000 +0200
@@ -3,9 +3,8 @@

   -  str="$MYSQL_DIR/$1/lib$MYSQL_LIBNAME.*"
   -  for j in `echo $str`; do
   -    if test -r $j; then
   +  find $MYSQL_DIR/$i/ -name "lib$MYSQL_LIBNAME*" | while read j; do
   +  if test -r $j; then
          break 2
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2010-03-30 22:35:08 UTC
Thanks for reporting this bug. 

I do miss a build log, can you please post one? Also, does this bug still occur with latest php version available in portage (php-5.2.12)?

Can you post the output of emerge -pv dev-lang/php?
Comment 2 Simon 2010-03-31 17:43:06 UTC
well, i've 5.2.13 now and that works without the patch, 5.2.6 isnt even in portage anymore, so i think this bug is obsolete. *closed*