Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340005 - emerge -av1 dev-db/mysql++-2.3.2 failed after mysql update
Summary: emerge -av1 dev-db/mysql++-2.3.2 failed after mysql update
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-07 03:21 UTC by email200202
Modified: 2017-09-10 11:51 UTC (History)
2 users (show)

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


Attachments
build log (build-mysqlpp.log,26.72 KB, text/plain)
2017-09-10 11:49 UTC, Xander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2010-10-07 03:21:21 UTC
After update dev-db/mysql-5.1.50-r1 [5.0.90-r2], revdep-rebuild could not re-emerge dev-db/mysql++-2.3.2 on hardened profile.

The problem is: it can not find "libmysqlclient_r.so.15". 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libmysqlclient_r.so.15, needed by /usr/lib64/libmysqlpp.so, not found (try using -rpath or -rpath-link) 

And there is only "libmysqlclient_r.so.16"
# ls -l /usr/lib/libmysqlclient* 
lrwxrwxrwx 1 root root 30 Oct  6 13:17 /usr/lib/libmysqlclient.so -> mysql/libmysqlclient.so.16.0.0 
lrwxrwxrwx 1 root root 30 Oct  6 13:17 /usr/lib/libmysqlclient.so.16 -> mysql/libmysqlclient.so.16.0.0 
lrwxrwxrwx 1 root root 30 Oct  6 13:17 /usr/lib/libmysqlclient.so.16.0 -> mysql/libmysqlclient.so.16.0.0 
lrwxrwxrwx 1 root root 30 Oct  6 13:17 /usr/lib/libmysqlclient.so.16.0.0 -> mysql/libmysqlclient.so.16.0.0 
lrwxrwxrwx 1 root root 32 Oct  6 13:17 /usr/lib/libmysqlclient_r.so -> mysql/libmysqlclient_r.so.16.0.0 
lrwxrwxrwx 1 root root 32 Oct  6 13:17 /usr/lib/libmysqlclient_r.so.16 -> mysql/libmysqlclient_r.so.16.0.0 
lrwxrwxrwx 1 root root 32 Oct  6 13:17 /usr/lib/libmysqlclient_r.so.16.0 -> mysql/libmysqlclient_r.so.16.0.0 
lrwxrwxrwx 1 root root 32 Oct  6 13:17 /usr/lib/libmysqlclient_r.so.16.0.0 -> mysql/libmysqlclient_r.so.16.0.0 


# emerge --info mysql++                    
Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-hardened-r9 x86_64) 
================================================================= 
                        System Settings 
================================================================= 
System uname: Linux-2.6.32-hardened-r9-x86_64-Intel-R-_Xeon-R-_CPU_E3110_@_3.00GHz-with-gentoo-1.12.13 
Timestamp of tree: Wed, 06 Oct 2010 01:00:01 +0000 
app-shells/bash:     4.0_p37 
dev-lang/python:     2.6.5-r3, 3.1.2-r4 
dev-util/cmake:      2.8.1-r2 
sys-apps/baselayout: 1.12.13 
sys-apps/sandbox:    2.3-r1 
sys-devel/autoconf:  2.65-r1 
sys-devel/automake:  1.11.1 
sys-devel/binutils:  2.20.1-r1 
sys-devel/gcc:       4.3.4 
sys-devel/gcc-config: 1.4.1 
sys-devel/libtool:   2.2.10 
sys-devel/make:      3.81-r2 
virtual/os-headers:  2.6.30-r1 
ACCEPT_KEYWORDS="amd64" 
ACCEPT_LICENSE="* -@EULA" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc" 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" 
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" 
GENTOO_MIRRORS="http://distfiles.gentoo.org" 
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 --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri gdbm gpm hal hardened iconv justify mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session sse sse2 ssl sysfs tcpd threads urandom usb xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY 

================================================================= 
                        Package Settings 
================================================================= 

dev-db/mysql++-2.3.2 was built with the following: 
USE="(multilib)" 
LDFLAGS="-Wl,-O1" 


# emerge --info mysql  
Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-hardened-r9 x86_64) 
================================================================= 
                        System Settings 
================================================================= 
... removed to save space 

================================================================= 
                        Package Settings 
================================================================= 

dev-db/mysql-5.1.50-r1 was built with the following: 
USE="community (multilib) perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test -xtradb" 
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing" 
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-strict-aliasing" 



Reproducible: Always

Steps to Reproduce:
1. emerge -auvDN world
2. revdep-rebuild
3.

Actual Results:  
emerge dev-db/mysql++-2.3.2  failed because of "libmysqlclient_r.so.15" can not be found.

Expected Results:  
no errors
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-10-14 22:46:55 UTC
Hi,

can you please submit a full build.log and environment file?

Thanks, Michael
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2010-11-16 00:11:46 UTC
I just checked here with mysql-5.1.52. This are the libmysql client files installed by the latest version:

qlist -v mysql | grep libmysqlclient
/usr/lib64/libmysqlclient_r.so.16.0 -> mysql/libmysqlclient_r.so.16.0.0
/usr/lib64/libmysqlclient_r.so.16.0.0 -> mysql/libmysqlclient_r.so.16.0.0
/usr/lib64/libmysqlclient.so.16 -> mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.la
/usr/lib64/mysql/libmysqlclient_r.a
/usr/lib64/mysql/libmysqlclient.a
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0
/usr/lib64/mysql/libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient.la
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient.so -> libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so -> libmysqlclient_r.so.16.0.0
/usr/lib64/libmysqlclient.so.16.0.0 -> mysql/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient.so -> mysql/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient_r.so.16 -> mysql/libmysqlclient_r.so.16.0.0
/usr/lib64/libmysqlclient_r.so -> mysql/libmysqlclient_r.so.16.0.0
/usr/lib64/libmysqlclient.so.16.0 -> mysql/libmysqlclient.so.16.0.0

The revdep-rebuild is looking for the wrong so version. As requested, please post your full build log and if you can try mysql++-3.0.9.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-03-26 22:16:12 UTC
Please reopen this bug when you attach the required info.
Comment 4 Xander 2017-09-10 11:49:04 UTC
Created attachment 493712 [details]
build log

Slightly different circumstances, same cause
Comment 5 Xander 2017-09-10 11:51:51 UTC
I'm in the middle of updating an old system, but the issue is the same - the linker is looking in /usr/lib64 before the current directory.

Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-5.4.0, glibc-2.23-r4, 3.18.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-3930K_CPU_@_3.20GHz-with-gentoo-2.3
KiB Mem:    16378008 total,   4241840 free
KiB Swap:    3145724 total,   2892516 free
Timestamp of repository gentoo: Sat, 09 Sep 2017 09:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.24-r3::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /mnt/olddrive/portage
    sync-type: rsync
    sync-uri: rsync://mirror.internode.on.net/gentoo-portage
    priority: -1000

Xander
    location: /mnt/olddrive/portage-overlay
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL FraunhoferFDK Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/mnt/olddrive/distfiles"
EMERGE_DEFAULT_OPTS="--ask --ask-enter-invalid"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.iinet.net.au/pub/Gentoo"
LANG="en_AU.UTF-8"
LC_ALL="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="aac acl acpi admin alsa amd64 avx bash-completion berkdb bzip2 cli cracklib crypt cxx directfb dri dvb dvd fastcgi ffmpeg gdbm iconv ipv6 lame matroska mmx mmxext modules mp3 mp4 mpeg multilib mysql ncurses nfs nls nptl ogg opengl openmp pam pcre policykit qt3support readline samba seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification tcpd threads udev unicode upnp v4l2 x264 xattr xml xv xvid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-db/mysql++-3.2.1::gentoo was built with the following:
USE=""
CFLAGS="-O2 -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=12288 -pipe"
CXXFLAGS="-O2 -march=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=12288 -pipe"