>>> Emerging (1 of 1) dev-lua/luadbi-0.5-r2 * luadbi.0.5.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking luadbi.0.5.tar.gz to /var/tmp/portage/dev-lua/luadbi-0.5-r2/work >>> Source unpacked in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work >>> Preparing source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... * Applying 0.5-r2-Makefile.patch ... [ ok ] * Applying 0.5-postgres-path.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... make -j3 CC=x86_64-pc-linux-gnu-gcc 'COMMON_LDFLAGS=-Wl,-O1 -Wl,--as-needed' mysql sqlite3 mkdir -p build x86_64-pc-linux-gnu-gcc -c -o build/dbd_common.o dbd/common.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_main.o dbd/mysql/main.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_connection.o dbd/mysql/connection.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/main.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/connection.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_statement.o dbd/mysql/statement.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_main.o dbd/sqlite3/main.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/statement.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_connection.o dbd/sqlite3/connection.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_statement.o dbd/sqlite3/statement.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . build/dbd_common.o build/dbd_mysql_main.o build/dbd_mysql_connection.o build/dbd_mysql_statement.o -o dbdmysql.so -Wl,-O1 -Wl,--as-needed -lmysqlclient /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mysql] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: dev-lua/luadbi-0.5-r2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lua/luadbi-0.5-r2'`, * the complete build log and the output of `emerge -pqv '=dev-lua/luadbi-0.5-r2'`. * The complete build log is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work' * S: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work' >>> Failed to emerge dev-lua/luadbi-0.5-r2, Log file: >>> '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/build.log' Reproducible: Always Steps to Reproduce: I'm not sure that this can be repeated not on my server. Actual Results: luadbi must be rebuilded. Expected Results: Failed to build. # cat /etc/ld.so.conf | grep mysql /usr/lib64/mysql ------------------------------------------- # ls -la /usr/lib64/mysql/ total 6596 drwxr-xr-x 3 root root 4096 Jul 6 11:14 . drwxr-xr-x 56 root root 49152 Jul 1 18:24 .. -rw-r--r-- 1 root root 3642228 Jul 6 11:14 libmysqlclient.a lrwxrwxrwx 1 root root 16 Jul 6 11:14 libmysqlclient_r.a -> libmysqlclient.a lrwxrwxrwx 1 root root 17 Jul 6 11:14 libmysqlclient_r.so -> libmysqlclient.so lrwxrwxrwx 1 root root 17 Jul 6 11:14 libmysqlclient_r.so.18 -> libmysqlclient.so lrwxrwxrwx 1 root root 17 Jul 6 11:14 libmysqlclient_r.so.18.0.0 -> libmysqlclient.so lrwxrwxrwx 1 root root 20 Jul 6 11:14 libmysqlclient.so -> libmysqlclient.so.18 lrwxrwxrwx 1 root root 24 Jul 6 11:14 libmysqlclient.so.18 -> libmysqlclient.so.18.0.0 -rwxr-xr-x 1 root root 3038592 Jul 6 11:14 libmysqlclient.so.18.0.0 -rw-r--r-- 1 root root 4410 Jul 6 11:14 libmysqlservices.a drwxr-xr-x 3 root root 4096 Jul 6 11:14 plugin ------------------------------------------- A week earlier, I had the following problem: /usr/sbin/sendmail: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory I was rebuild exim without mysql USE flag. But now i think this is more global problem. ------------------------------------------- # emerge --info Portage 2.1.12.11 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.17, 3.6.8-gentoo x86_64) ================================================================= System uname: Linux-3.6.8-gentoo-x86_64-QEMU_Virtual_CPU_version_0.15.0-with-gentoo-2.2 KiB Mem: 2054056 total, 349080 free KiB Swap: 1572860 total, 1569900 free Timestamp of tree: Sat, 06 Jul 2013 10:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5, 3.2.5, 3.3.2 dev-util/cmake: 2.8.11.1 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.11.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.6.3, 4.7.3 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo mva barzog-overlay sunrise luke-jr php x-nodejs-service ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.gentoo.bg/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ " LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/mva /var/lib/layman/barzog-overlay /var/lib/layman/sunrise /var/lib/layman/luke-jr /var/lib/layman/php /usr/local/portage/nodejs-service" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt curl cxx dri fortran ftp gd gdbm gnutls gpm gzip iconv imagemagick innodb ipv6 jabber jingle jpeg lzma mime mmx modules mudflap multilib mysql mysqli ncurses nls nptl odbc openmp pam pcre php png readline sasl session simplexml sockets sqlite sqlite3 sse sse2 ssl subversion tcpd unicode vhosts xml xmlrpc xmpp zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi stub_status" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Please run `revdep-rebuild` and `emerge @preserved-rebuild`; if it still happens after that, please attach the complete build log.
It's first what I did. # revdep-rebuild * Configuring search environment for revdep-rebuild * Checking reverse dependencies * Packages containing binaries and libraries broken by a package update * will be emerged. * Collecting system binaries and libraries * Generated new 1_files.rr * Collecting complete LD_LIBRARY_PATH * Generated new 2_ldpath.rr * Checking dynamic linking consistency [ 100% ] * broken /usr/lib64/python2.7/site-packages/MySQL_python-1.2.4b2-py2.7-linux-x86_64.egg/_mysql.so (no version information available) * Generated new 3_broken.rr * Assigning files to packages * !!! /usr/lib64/python2.7/site-packages/MySQL_python-1.2.4b2-py2.7-linux-x86_64.egg/_mysql.so not owned by any package is broken !!! * /usr/lib64/python2.7/site-packages/MySQL_python-1.2.4b2-py2.7-linux-x86_64.egg/_mysql.so -> (none) * Generated new 4_raw.rr and 4_owners.rr * Found some broken files, but none of them were associated with known packages * Unable to proceed with automatic repairs. * The broken files are listed in 4_owners.rr --------------------------------- # emerge @preserved-rebuild * IMPORTANT: 11 news items need reading for repository 'gentoo'. * Use eselect news to read news items. Calculating dependencies \ * ERROR: dev-php5/ZendGuardLoader-5.5.0 failed (depend phase): * php-ext-source-r2 is not compatible with EAPI=3 * * Call stack: * ebuild.sh, line 549: Called source '/var/lib/layman/barzog-overlay/dev-php5/ZendGuardLoader/ZendGuardLoader-5.5.0.ebuild' * ZendGuardLoader-5.5.0.ebuild, line 12: Called inherit 'php-ext-source-r2' * ebuild.sh, line 284: Called __qa_source '/usr/portage/eclass/php-ext-source-r2.eclass' * ebuild.sh, line 80: Called source '/usr/portage/eclass/php-ext-source-r2.eclass' * php-ext-source-r2.eclass, line 31: Called die * The specific snippet of code: * die "php-ext-source-r2 is not compatible with EAPI=${EAPI}" * * If you need support, post the output of `emerge --info '=dev-php5/ZendGuardLoader-5.5.0'`, * the complete build log and the output of `emerge -pqv '=dev-php5/ZendGuardLoader-5.5.0'`. * This ebuild is from an overlay named 'barzog-overlay': '/var/lib/layman/barzog-overlay/' * Working directory: '/usr/lib64/portage/pym' * S: '/var/tmp/portage/dev-php5/ZendGuardLoader-5.5.0/work/ZendGuardLoader-5.5.0' - * ERROR: dev-php5/ZendGuardLoader-5.5.0 failed (depend phase): * php-ext-source-r2 is not compatible with EAPI=3 * * Call stack: * ebuild.sh, line 549: Called source '/var/lib/layman/barzog-overlay/dev-php5/ZendGuardLoader/ZendGuardLoader-5.5.0.ebuild' * ZendGuardLoader-5.5.0.ebuild, line 12: Called inherit 'php-ext-source-r2' * ebuild.sh, line 284: Called __qa_source '/usr/portage/eclass/php-ext-source-r2.eclass' * ebuild.sh, line 80: Called source '/usr/portage/eclass/php-ext-source-r2.eclass' * php-ext-source-r2.eclass, line 31: Called die * The specific snippet of code: * die "php-ext-source-r2 is not compatible with EAPI=${EAPI}" * * If you need support, post the output of `emerge --info '=dev-php5/ZendGuardLoader-5.5.0'`, * the complete build log and the output of `emerge -pqv '=dev-php5/ZendGuardLoader-5.5.0'`. * This ebuild is from an overlay named 'barzog-overlay': '/var/lib/layman/barzog-overlay/' * Working directory: '/usr/lib64/portage/pym' * S: '/var/tmp/portage/dev-php5/ZendGuardLoader-5.5.0/work/ZendGuardLoader-5.5.0' ... done! >>> Auto-cleaning packages... >>> No outdated packages were found on your system. ---------------------------- Build log: # cat /var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/build.log * Package: dev-lua/luadbi-0.5-r2 * Repository: gentoo * Maintainer: maintainer-needed@gentoo.org * USE: amd64 elibc_glibc kernel_linux mysql sqlite userland_GNU * FEATURES: preserve-libs sandbox >>> Unpacking source... >>> Unpacking luadbi.0.5.tar.gz to /var/tmp/portage/dev-lua/luadbi-0.5-r2/work >>> Source unpacked in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work >>> Preparing source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... * Applying 0.5-r2-Makefile.patch ... [ ok ] * Applying 0.5-postgres-path.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... make -j3 CC=x86_64-pc-linux-gnu-gcc 'COMMON_LDFLAGS=-Wl,-O1 -Wl,--as-needed' mysql sqlite3 mkdir -p build x86_64-pc-linux-gnu-gcc -c -o build/dbd_common.o dbd/common.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_main.o dbd/mysql/main.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_connection.o dbd/mysql/connection.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/main.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/connection.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_statement.o dbd/mysql/statement.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_main.o dbd/sqlite3/main.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/statement.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_connection.o dbd/sqlite3/connection.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_statement.o dbd/sqlite3/statement.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . build/dbd_common.o build/dbd_mysql_main.o build/dbd_mysql_connection.o build/dbd_mysql_statement.o -o dbdmysql.so -Wl,-O1 -Wl,--as-needed -lmysqlclient /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mysql] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: dev-lua/luadbi-0.5-r2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lua/luadbi-0.5-r2'`, * the complete build log and the output of `emerge -pqv '=dev-lua/luadbi-0.5-r2'`. * The complete build log is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work' * S: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work'
You'll need to emerge dev-db/mysql or dev-db/mariadb with the right USE flags; since the package currently has no maintainer, it might take some time to get fixed. If you get it fixed or it is broken, can you please tell me which USE flags you compiled dev-db/mysql or dev-db/mariadb with? I can try to fix it.
this sounds a bit like https://bugs.gentoo.org/show_bug.cgi?id=474952 did you try to rebuild mysql?
> can you please tell me which USE flags you compiled dev-db/mysql or dev-db/mariadb with? > did you try to rebuild mysql? Yes. Tried it again just now: [ebuild R ] dev-db/mysql-5.5.32 USE="community perl ssl -cluster -debug -embedded -extraengine -jemalloc -latin1 -max-idx-128 -minimal -profiling (-selinux) -static -systemtap -tcmalloc {-test}" Would you like to merge these packages? [Yes/No] Y >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-db/mysql-5.5.32 >>> Installing (1 of 1) dev-db/mysql-5.5.32 >>> Jobs: 1 of 1 complete Load avg: 2.84, 2.62, 1.64 * Messages for package dev-db/mysql-5.5.32: * One or more symlinks to directories have been preserved in order to * ensure that files installed via these symlinks remain accessible. This * indicates that the mentioned symlink(s) may be obsolete remnants of an * old install, and it may be appropriate to replace a given symlink with * the directory that it points to. * * /var/run * * Messages for package dev-db/mysql-5.5.32: * MySQL MY_DATADIR is /var/lib/mysql * MySQL datadir found in /var/lib/mysql * A new one will not be created. * You might want to run: * "emerge --config =dev-db/mysql-5.5.32" * if this is a new install. * If you are upgrading major versions, you should run the * mysql_upgrade tool. Then I tried to emerge luadbi: [ebuild R ] dev-lua/luadbi-0.5-r2 USE="mysql sqlite -postgres" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] Y >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-lua/luadbi-0.5-r2 * luadbi.0.5.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking luadbi.0.5.tar.gz to /var/tmp/portage/dev-lua/luadbi-0.5-r2/work >>> Source unpacked in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work >>> Preparing source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... * Applying 0.5-r2-Makefile.patch ... [ ok ] * Applying 0.5-postgres-path.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lua/luadbi-0.5-r2/work ... make -j3 CC=x86_64-pc-linux-gnu-gcc 'COMMON_LDFLAGS=-Wl,-O1 -Wl,--as-needed' mysql sqlite3 mkdir -p build x86_64-pc-linux-gnu-gcc -c -o build/dbd_common.o dbd/common.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_main.o dbd/mysql/main.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_connection.o dbd/mysql/connection.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/connection.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/main.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] x86_64-pc-linux-gnu-gcc -c -o build/dbd_mysql_statement.o dbd/mysql/statement.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_main.o dbd/sqlite3/main.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . In file included from dbd/mysql/dbd_mysql.h:6:0, from dbd/mysql/statement.c:1: /usr/include/mysql/mysql.h:127:23: warning: ISO C90 does not support ‘long long’ [-Wlong-long] x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_connection.o dbd/sqlite3/connection.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -c -o build/dbd_sqlite3_statement.o dbd/sqlite3/statement.c -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . x86_64-pc-linux-gnu-gcc -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . build/dbd_common.o build/dbd_mysql_main.o build/dbd_mysql_connection.o build/dbd_mysql_statement.o -o dbdmysql.so -Wl,-O1 -Wl,--as-needed -lmysqlclient x86_64-pc-linux-gnu-gcc -O2 -pipe -march=nocona -fPIC -pedantic -shared -fpic -I /usr/include/lua5.1 -I /usr/include/mysql -I /usr/include/postgresql/ -I /opt/ibm/db2exc/V9.5/include/ -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -I . build/dbd_common.o build/dbd_sqlite3_main.o build/dbd_sqlite3_connection.o build/dbd_sqlite3_statement.o -o dbdsqlite3.so -Wl,-O1 -Wl,--as-needed -lsqlite3 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [mysql] Error 1 * ERROR: dev-lua/luadbi-0.5-r2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lua/luadbi-0.5-r2'`, * the complete build log and the output of `emerge -pqv '=dev-lua/luadbi-0.5-r2'`. * The complete build log is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work' * S: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work' >>> Failed to emerge dev-lua/luadbi-0.5-r2, Log file: >>> '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/build.log' * Messages for package dev-lua/luadbi-0.5-r2: * ERROR: dev-lua/luadbi-0.5-r2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lua/luadbi-0.5-r2'`, * the complete build log and the output of `emerge -pqv '=dev-lua/luadbi-0.5-r2'`. * The complete build log is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lua/luadbi-0.5-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work' * S: '/var/tmp/portage/dev-lua/luadbi-0.5-r2/work' Nothing new.
Check your /etc/ld.so.conf to see if you have /usr/lib*/mysql on it. If not, add that path, run ldconfig and try to build this package again.
(In reply to Jorge Manuel B. S. Vicetto from comment #6) > Check your /etc/ld.so.conf to see if you have /usr/lib*/mysql on it. As You can see above I've already checked it.
Created attachment 353890 [details, diff] luadbi-0.5-r2.ebuild.patch This patch solves the problem.
(In reply to Jorge Manuel B. S. Vicetto from comment #6) > Check your /etc/ld.so.conf to see if you have /usr/lib*/mysql on it. > If not, add that path, run ldconfig and try to build this package again. AFAIK, ld.so.conf only used for runtime linking.
Created attachment 353934 [details, diff] luadbi-0.5-r2.ebuild.patch Use mysql_config and pg_config to get includes and libs.
*luadbi-0.5-r3 (29 Jul 2013) 29 Jul 2013; Manuel Rüger <mrueg@gentoo.org> +luadbi-0.5-r3.ebuild: Fixes bug #475942. Ebuild patch by Alexander Tsoy. Minor improvements by me