I have a problem you can see it in http://bugs.gentoo.org/show_bug.cgi?id=239398. checking for MySQL UNIX socket location... /var/run/mysqld/mysqld.sock checking for mysql_close in -lmysqlclient_r... no checking for mysql_error in -lmysqlclient_r... no configure: error: mysql configure failed. Please check config.log for more information. * * ERROR: dev-lang/php-5.2.8-r1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4499: Called src_compile_normal * environment, line 4618: Called php5_2-sapi_src_compile * environment, line 3531: 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 dev-lang/php-5.2.8-r1 USE="apache2 bcmath berkdb bzip2 cdb cgi cli crypt ctype doc exif ftp gd gdbm iconv imap ipv6 kerberos msql mssql mysql ncurses nls odbc pcre posix readline reflection session snmp sockets spell spl sqlite ssl threads tokenizer truetype unicode wddx xml xsl zlib (-adabas) (-birdstep) -calendar -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase (-dbmaker) -debug -discard-path (-empress) (-empress-bcs) (-esoob) -fastbuild (-fdftk) -filter (-firebird) -flatfile -force-cgi-redirect (-frontbase) -gd-external -gmp -hash -inifile -interbase -iodbc (-java-external) -json -kolab -ldap -ldap-sasl -libedit -mcve -mhash -mysqli -oci8 -oci8-instant-client -pcntl -pdo -pic -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -soap (-solid) -suhosin (-sybase) (-sybase-ct) -sysvipc -tidy -xmlreader -xmlrpc -xmlwriter -xpm -yaz -zip -zip-external" 0 kB mysql installed: dev-db/mysql-5.0.72-r1 and i have right symlinks: lrwxrwxrwx 1 root root 26 Янв 7 17:22 libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 26 Янв 7 17:22 libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0 -rwxr-xr-x 1 root root 1531520 Янв 7 17:22 libmysqlclient_r.so.15.0.0 lrwxrwxrwx 1 root root 24 Янв 7 17:22 libmysqlclient.so -> libmysqlclient.so.15.0.0 lrwxrwxrwx 1 root root 24 Янв 7 17:22 libmysqlclient.so.15 -> libmysqlclient.so.15.0.0 -rwxr-xr-x 1 root root 1523040 Янв 7 17:22 libmysqlclient.so.15.0.0 Reproducible: Always
>> configure: error: mysql configure failed. Please check config.log for more information. Thank you.
Created attachment 178193 [details] Config.log
As you may see, the problem lies not in mysql, but in msql. Though, it's yet to be seen if that's a problem with your system only or something reproducible.
Ok. Thanks. I remove USE="msql" flag and it's compiled!