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

Bug 375307

Summary: media-sound/amarok-2.4.1 failed (compile phase)
Product: Gentoo Linux Reporter: Alexander Polozov <Apolozov>
Component: Current packagesAssignee: Jorge Manuel B. S. Vicetto (RETIRED) <jmbsvicetto>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, michael.schachtebeck, optiluca, sound
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Polozov 2011-07-15 19:36:44 UTC
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/amarok_service_ampache_automoc.o                                                                                            
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlecollection.so                    
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld      
collect2: выполнение ld завершилось с кодом возврата 1
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Ошибка 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Ошибка 2
make[1]: *** Ожидание завершения заданий...
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/AmpacheService.o
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/AmpacheServiceCollection.o                                                                                                  
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/AmpacheServiceQueryMaker.o                                                                                                  
[ 97%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LastFmTreeView.o     
[ 97%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/AmpacheMeta.o      
[ 98%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/AmpacheConfig.o    
[ 98%] Building CXX object src/services/ampache/CMakeFiles/amarok_service_ampache.dir/LastfmInfoParser.o 
[ 98%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/AvatarDownloader.o   
[ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/meta/LastFmMeta.o    
[ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/meta/LastFmStreamInfoCapability.o                                                                                             
Linking CXX shared module ../../../lib/amarok_service_ampache.so                                         
[ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/biases/LastFmBias.o  
[ 99%] Built target amarok_service_ampache                                                               
[ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/biases/WeeklyTopBias.o                                                                                                        
[ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/SimilarArtistsAction.o                                                                                                        
[ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LoveTrackAction.o    
Linking CXX shared module ../../../lib/amarok_service_lastfm.so                                          
[ 99%] Built target amarok_service_lastfm                                                                
make: *** [all] Ошибка 2
emake failed


Portage 2.2.0_alpha44 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r4, 2.6.39-gentoo-r3 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 15 Jul 2011 00:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2
dev-util/cmake:           2.8.5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo qico-xe husky SynCE gamerlay-stable rusxmms panic
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Nero-EULA-US dlj-1.1 QUAKE4 AdobeFlash-10.1 AdobeFlash-10 Q3AEULA skype-eula PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles ftp://de-mirror.org/distro/gentoo http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.free.fr/mirrors/ftp.gentoo.org "
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/qico-xe /usr/local/portage/layman/husky /usr/local/portage/layman/synce /usr/local/portage/layman/gamerlay /usr/local/portage/layman/rusxmms /usr/local/portage/layman/panic"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac accessibility acpi akode alsa amd64 ao ape apng archive aspell bash-completion bluetooth bzip2 cairo cdda cdr chardet chm cleartype cli consolekit cracklib crypt css cuda cups cxx dbus declarative dhclient dhcp djvu dri dts dvb dvd dvdr dvdread embedded emboss enca encode exif extrafilters faac fam fbcon ffmpeg firefox flac fontconfig fortran gdu geolocation gif glib glibc-omitfp glitz gphoto2 iconv icq icu ipv6 jabber java java6 jingle jpeg jpeg2k kde kipi lastfm lcms lensfun libnotify live lm_sensors lzma lzo matroska mmap mmx mmxext mng modules mp3 mp4 mpeg mpi mudflap multilib musepack musicbrainz mysql ncurses network nls nptl nptlonly nsplugin nvidia ogg opencl opengl openmp optimisememory oscar pam pango pch pcre pda pdf phonon plasma pmu png policykit postproc ppds pppd python python3 qt-faststart qt3support qt4 rar rcc readline redeyes resolvconf romio rtmp rtsp samba secure-delete serial session skype slang spell srt sse sse2 ssl ssse3 startup-notification stream subversion svg sysfs syslog taglib tcpd theora threads tiff timidity truetype udev unicode usb v4l v4l2 vaapi vdpau vorbis vpx wavpack webkit x264 xcb xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon 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" HUSKY_MODULES="bsopack sqpack htick hptsqfix hpt" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-sound/amarok-2.4.1 was built with the following:
USE="cdda (consolekit) embedded lastfm (multilib) opengl player (policykit) utils -daap -debug -handbook -ipod (-kdeenablefinal) -mp3tunes -mtp -playdar -semantic-desktop -upnp" LINGUAS="ru -bg -ca -cs -da -de -en_GB -es -et -eu -fi -fr -hu -it -ja -km -nb -nds -nl -pa -pl -pt -pt_BR -sl -sr -sr@latin -sv -th -tr -uk -wa -zh_TW"
Comment 1 Agostino Sarubbo gentoo-dev 2011-07-16 12:44:29 UTC
PLease add full build log as attachment with LC_ALL="C"

anyway try also with -O2 if it works
Comment 2 optiluca@gmail.com 2011-07-16 16:35:05 UTC
[ 96%] Building CXX object src/services/opmldirectory/CMakeFiles/amarok_service_opmldirectory.dir/OpmlDirectoryService.o                                                                                                                           
[ 96%] Built target amarok_service_mp3tunes                                                                                                                                                                                                        
[ 96%] Building CXX object src/services/opmldirectory/CMakeFiles/amarok_service_opmldirectory.dir/OpmlDirectoryMeta.o
[ 96%] Built target amarok_service_magnatunestore                                                                                                                                                                                                  
[ 97%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LastFmServiceConfig.o
Linking CXX shared module ../../../lib/kcm_amarok_service_lastfm.so                                                                                                                                                                                
[ 97%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LastFmServiceQueryMaker.o                                                                                                                                      
[ 97%] Built target kcm_amarok_service_lastfm                                                                                                                                                                                                      
[ 97%] Building CXX object src/services/opmldirectory/CMakeFiles/amarok_service_opmldirectory.dir/OpmlDirectoryInfoParser.o
[ 97%] Building CXX object src/services/opmldirectory/CMakeFiles/amarok_service_opmldirectory.dir/OpmlDirectoryModel.o                                                                                                                             
[ 98%] Building CXX object src/services/opmldirectory/CMakeFiles/amarok_service_opmldirectory.dir/OpmlDirectoryView.o                                                                                                                              
[ 98%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/ScrobblerAdapter.o                                                                                                                                             
Scanning dependencies of target amarok_device_massstorage                                                                                                                                                                                          
[ 98%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LastFmTreeModel.o                                                                                                                                              
[ 98%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LastFmTreeView.o                                                                                                                                               
[ 98%] Building CXX object src/core-impl/collections/db/sql/device/massstorage/CMakeFiles/amarok_device_massstorage.dir/amarok_device_massstorage_automoc.o                                                                                        
[ 98%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/AvatarDownloader.o                                                                                                                                             
[ 98%] Building CXX object src/core-impl/collections/db/sql/device/massstorage/CMakeFiles/amarok_device_massstorage.dir/MassStorageDeviceHandler.o                                                                                                 
Scanning dependencies of target amarok_device_nfs                                                                                                                                                                                                  
[ 98%] Building CXX object src/core-impl/collections/db/sql/device/nfs/CMakeFiles/amarok_device_nfs.dir/amarok_device_nfs_automoc.o                                                                                                                
[ 98%] Building CXX object src/core-impl/collections/db/sql/device/nfs/CMakeFiles/amarok_device_nfs.dir/NfsDeviceHandler.o                                                                                                                         
Scanning dependencies of target amarok_device_smb                                                                                                                                                                                                  
[ 98%] Building CXX object src/core-impl/collections/db/sql/device/smb/CMakeFiles/amarok_device_smb.dir/amarok_device_smb_automoc.o                                                                                                                
Scanning dependencies of target amarok_collection-mysqlecollection                                                                                                                                                                                 
[ 98%] Building CXX object src/core-impl/collections/db/sql/device/smb/CMakeFiles/amarok_device_smb.dir/SmbDeviceHandler.o                                                                                                                         
Linking CXX shared module ../../../../../../../lib/amarok_device_massstorage.so                                                                                                                                                                    
[ 98%] Built target amarok_device_massstorage                                                                                                                                                                                                      
Scanning dependencies of target amarok_collection-mysqlservercollection
[ 98%] Building CXX object src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/amarok_collection-mysqlecollection_automoc.o                                                                        
[ 98%] Building CXX object src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/__/mysql-shared/MySqlStorage.o                                                                                      
[ 98%] Building CXX object src/core-impl/collections/db/sql/mysqlservercollection/CMakeFiles/amarok_collection-mysqlservercollection.dir/amarok_collection-mysqlservercollection_automoc.o                                                         
[ 99%] Building CXX object src/core-impl/collections/db/sql/mysqlservercollection/CMakeFiles/amarok_collection-mysqlservercollection.dir/__/mysql-shared/MySqlStorage.o                                                                            
[ 99%] Building CXX object src/core-impl/collections/db/sql/mysqlservercollection/CMakeFiles/amarok_collection-mysqlservercollection.dir/MySqlServerCollection.o                                                                                   
Linking CXX shared module ../../../../../../../lib/amarok_device_nfs.so                                                                                                                                                                            
Linking CXX shared module ../../../lib/amarok_service_opmldirectory.so                                                                                                                                                                             
Linking CXX shared module ../../../../../../../lib/amarok_device_smb.so                                                                                                                                                                            
[ 99%] Built target amarok_device_nfs                                                                                                                                                                                                              
[ 99%] Building CXX object src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/MySqlEmbeddedCollection.o
[ 99%] Built target amarok_device_smb                                                                                                                                                                                                              
[ 99%] Building CXX object src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/MySqlEmbeddedStorage.o
[ 99%] Built target amarok_service_opmldirectory                                                                                                                                                                                                   
[ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/meta/LastFmMeta.o
[ 99%] [ 99%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/meta/LastFmStreamInfoCapability.o                                                                                                                       
Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/biases/LastFmBias.o                                                                                                                                                   
[100%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/biases/WeeklyTopBias.o                                                                                                                                         
/var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp: In constructor ‘MySqlEmbeddedStorage::MySqlEmbeddedStorage(const QString&)’:                               
/var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/core-impl/collections/db/sql/mysqlecollection/MySqlEmbeddedStorage.cpp:86:31: warning: deprecated conversion from string constant to ‘char*’
[100%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/SimilarArtistsAction.o
[100%] Building CXX object src/services/lastfm/CMakeFiles/amarok_service_lastfm.dir/LoveTrackAction.o                                                                                                                                              
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlservercollection.so                                                                                                                                                         
Linking CXX shared module ../../../../../../lib/amarok_collection-mysqlecollection.so                                                                                                                                                              
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld                                                                                                                                                
collect2: ld returned 1 exit status
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target amarok_collection-mysqlservercollection
Linking CXX shared module ../../../lib/amarok_service_lastfm.so
[100%] Built target amarok_service_lastfm                                                                                                                                                                                                          
make: *** [all] Error 2
emake failed
 * ERROR: media-sound/amarok-2.4.1 failed (compile phase):
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4140:  Called kde4-base_src_compile
 *   environment, line 3226:  Called cmake-utils_src_compile
 *   environment, line 1394:  Called _execute_optionaly 'src_compile'
 *   environment, line  777:  Called enable_cmake-utils_src_compile
 *   environment, line 1645:  Called cmake-utils_src_make
 *   environment, line 1413:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 * 
 * If you need support, post the output of 'emerge --info =media-sound/amarok-2.4.1',
 * the complete build log and the output of 'emerge -pqv =media-sound/amarok-2.4.1'.
 * The complete build log is located at '/var/tmp/portage/media-sound/amarok-2.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-2.4.1/temp/environment'.
 * S: '/var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1'

>>> Failed to emerge media-sound/amarok-2.4.1, Log file:

>>>  '/var/tmp/portage/media-sound/amarok-2.4.1/temp/build.log'

 * Messages for package media-sound/amarok-2.4.1:

 * ERROR: media-sound/amarok-2.4.1 failed (compile phase):
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4140:  Called kde4-base_src_compile
 *   environment, line 3226:  Called cmake-utils_src_compile
 *   environment, line 1394:  Called _execute_optionaly 'src_compile'
 *   environment, line  777:  Called enable_cmake-utils_src_compile
 *   environment, line 1645:  Called cmake-utils_src_make
 *   environment, line 1413:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 * 
 * If you need support, post the output of 'emerge --info =media-sound/amarok-2.4.1',
 * the complete build log and the output of 'emerge -pqv =media-sound/amarok-2.4.1'.
 * The complete build log is located at '/var/tmp/portage/media-sound/amarok-2.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-2.4.1/temp/environment'.
 * S: '/var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1'
 * Build finished correctly. Removing temporary files...
 * You can re-run revdep-rebuild to verify that all libraries and binaries
 * are fixed. Possible reasons for remaining inconsistencies include:
 *   orphaned files
 *   deep dependencies
 *   packages installed outside of portage's control
 *   specially-evaluated libraries


Same error over here, in english :D
Comment 3 optiluca@gmail.com 2011-07-16 16:35:15 UTC
emerge --info

Portage 2.2.0_alpha45 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r4, 2.6.38-gentoo-r3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-r3-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 16 Jul 2011 10:00:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2
dev-util/cmake:           2.8.5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo multimedia sunrise ikelos lcd-filtering LOCAL
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/etc/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ http://mirror.bytemark.co.uk/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1"
LINGUAS="en_GB it"
MAKEOPTS="-j8"
PKGDIR="/etc/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"
PORTDIR_OVERLAY="/var/lib/layman/multimedia /var/lib/layman/sunrise /var/lib/layman/ikelos /var/lib/layman/lcd-filtering /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr apm avi bash-completion berkdb bluetooth branding bzip2 cairo caps cdaudio cdda cddb cdr chm cleartype cli consolekit cracklib crypt css cuda cups cxx dbus declarative dhcp dri dts dv dvb dvd dvdr dvdread editor emboss emovix encode exif faac faad fam fame fbcondecor fbsplash ffmpeg firefox flac foomaticdb fortran gcj gd gdbm gdu gif git glitz glx gphoto2 gpm gps gstreamer hdaps iconv id3tag ieee1394 imagemagick inotify ipod ipv6 it jack java java6 joystick jpeg kde kickoff kipi ladspa lastfm lcms ldap libnotify libsamplerate lm_sensors mad mbrola mikmod mmx mng modules mp2 mp3 mp4 mpeg mplayer msn mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl phonon plasma pmu png policykit ppds pppd python qt qt3support qt4 quicktime readline rtc samba scanner sdl semantic-desktop session skype slp smp snmp spell sse sse2 sse3 ssl ssse3 startup-notification subtitles subversion svg sysfs tcpd theora threads tiff truetype twolame udev unicode usb v4l v4l2 vdpau vorbis wicd wifi x264 xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" 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="evdev joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB it" PHP_TARGETS="php5-3 php5-2" RUBY_TARGETS="ruby18" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-sound/amarok-2.4.1 was built with the following:
USE="cdda (consolekit) debug embedded ipod lastfm mp3tunes (multilib) opengl player (policykit) semantic-desktop utils -daap -handbook (-kdeenablefinal) -mtp -playdar -upnp" LINGUAS="en_GB it -bg -ca -cs -da -de -es -et -eu -fi -fr -hu -ja -km -nb -nds -nl -pa -pl -pt -pt_BR -ru -sl -sr -sr@latin -sv -th -tr -uk -wa -zh_TW"
CFLAGS="-march=native -O2 -pipe -ggdb"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
Comment 4 optiluca@gmail.com 2011-07-16 17:57:27 UTC
Amarok was called for re-installation by revdep-rebuild after an emerge -uDN world today, due to some breakage involving 

broken /usr/lib64/kde4/amarok_collection-mysqlecollection.so (requires libmysqld.so.0)

It also does not run at all at the moment, I assume because of said breakage.  The backtrace is as follows

Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f5f6e0c27a0 (LWP 786))]

Thread 2 (Thread 0x7f5f4f5c0700 (LWP 788)):
#0  0x00007f5f6aa2afa3 in poll () from /lib64/libc.so.6
#1  0x00007f5f64f5f4cd in g_main_context_iterate.clone.6 () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f5f64f5f9fd in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f5f6b393e96 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f5f6b368322 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f5f6b368564 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f5f6b27e6a4 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f5f6b349f08 in QInotifyFileSystemWatcherEngine::run() () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f5f6b280ef5 in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f5f5ff3cbc3 in ?? () from //usr/lib64/opengl/nvidia/lib/libGL.so.1
#10 0x00007f5f68bf0d4c in start_thread () from /lib64/libpthread.so.0
#11 0x00007f5f6aa33c6d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f5f6e0c27a0 (LWP 786)):
[KCrash Handler]
#6  Plugins::PluginManager::init (this=0x1defcc0) at /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/PluginManager.cpp:93
#7  0x00007f5f6d0049c4 in Plugins::PluginManager::PluginManager (this=0x1defcc0, parent=<value optimized out>) at /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/PluginManager.cpp:62
#8  0x00007f5f6d004af7 in Plugins::PluginManager::instance () at /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/PluginManager.cpp:41
#9  0x00007f5f6cff4be7 in MainWindow::MainWindow (this=0x1d825e0) at /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/MainWindow.cpp:149
#10 0x00007f5f6cfd4d40 in App::continueInit (this=0x7fffe22d74a0) at /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/App.cpp:612
#11 0x00007f5f6cfd5cb9 in App::App (this=0x7fffe22d74a0) at /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/App.cpp:208
#12 0x00000000004072f8 in main (argc=1, argv=0x7fffe22d9ab8) at /var/tmp/portage/media-sound/amarok-2.4.1/work/amarok-2.4.1/src/main.cpp:286
Comment 5 Srdjan Rakic 2011-07-16 18:57:05 UTC
I have exactly same problem.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqld                       
collect2: ld returned 1 exit status
make[2]: *** [lib/amarok_collection-mysqlecollection.so] Error 1
make[1]: *** [src/core-impl/collections/db/sql/mysqlecollection/CMakeFiles/amarok_collection-mysqlecollection.dir/all] Error 2

If necessary I will provide full build log and emerge --info.
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-07-16 19:01:40 UTC

*** This bug has been marked as a duplicate of bug 375063 ***