Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263745 - media-sound/amarok-2.0.1.1 fails to build due to undefined references to clock_gettime in libmysqld.a
Summary: media-sound/amarok-2.0.1.1 fails to build due to undefined references to cloc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-25 15:45 UTC by Jani-Matti Hätinen
Modified: 2009-04-15 06:18 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jani-Matti Hätinen 2009-03-25 15:45:16 UTC
Amarok-2.0.1.1 fails to build due to undefined references while building the amarok sql collection library. Build log and emerge info below:

Scanning dependencies of target amarok_collection-sqlcollection                                                                                                                                          
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/amarok_collection-sqlcollection_automoc.o                                                         
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/DatabaseUpdater.o                                                                                 
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/OrganizeCollectionDialog.o                                                                        
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/ScanManager.o                                                                                     
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/ScanResultProcessor.o                                                                             
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollection.o                                                                                   
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionDBusHandler.o                                                                        
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionLocation.o                                                                           
[ 85%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlQueryMaker.o                                                                                   
[ 86%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlRegistry.o                                                                                     
[ 86%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlMeta.o                                                                                         
[ 86%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/MySqlEmbeddedCollection.o                                                                         
[ 86%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/XesamDbus.o                                                                                       
[ 86%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/XesamCollectionBuilder.o                                                                          
[ 86%] Building CXX object src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/SqlCollectionAdaptor.o                                                                            
Linking CXX shared module ../../../lib/libamarok_collection-sqlcollection.so                                                                                                                             
/usr/lib/mysql/libmysqld.a(sql_parse.o): In function `mysql_parse(THD*, char const*, unsigned int, char const**)':                                                                                       
(.text+0xe833): undefined reference to `clock_gettime'                                                                                                                                                   
/usr/lib/mysql/libmysqld.a(sql_parse.o): In function `mysql_parse(THD*, char const*, unsigned int, char const**)':                                                                                       
(.text+0xe967): undefined reference to `clock_gettime'                                                                                                                                                   
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_fetch(THD*, char*, unsigned int)':                                                                                                    
(.text+0x11a3): undefined reference to `clock_gettime'                                                                                                                                                   
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_fetch(THD*, char*, unsigned int)':                                                                                                    
(.text+0x13bc): undefined reference to `clock_gettime'                                                                                                                                                   
/usr/lib/mysql/libmysqld.a(sql_prepare.o): In function `mysql_stmt_prepare(THD*, char const*, unsigned int)':                                                                                            
(.text+0x2850): undefined reference to `clock_gettime'                                                                                                                                                   
/usr/lib/mysql/libmysqld.a(sql_prepare.o):(.text+0x29f8): more undefined references to `clock_gettime' follow                                                                                            
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.                                                                                     
collect2: ld returned 1 exit status                                                                                                                                                                      
make[2]: *** [lib/libamarok_collection-sqlcollection.so] Virhe 1
make[1]: *** [src/collection/sqlcollection/CMakeFiles/amarok_collection-sqlcollection.dir/all] Virhe 2
make: *** [all] Virhe 2
 *
 * ERROR: media-sound/amarok-2.0.1.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3100:  Called kde4-base_src_compile
 *             environment, line 2304:  Called cmake-utils_src_compile
 *             environment, line  737:  Called cmake-utils_src_make
 *             environment, line  809:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 *  The die message:
 *   Make failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/media-sound:amarok-2.0.1.1:20090325-141453.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-2.0.1.1/temp/environment'.
 *

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

>>>  '/var/log/portage/media-sound:amarok-2.0.1.1:20090325-141453.log'



emerge --info:
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r3 i686)
=================================================================                                           
System uname: Linux-2.6.28-gentoo-r3-i686-Intel-R-_Pentium-R-_M_processor_1.60GHz-with-glibc2.0             
Timestamp of tree: Tue, 24 Mar 2009 15:15:01 +0000                                                          
app-shells/bash:     3.2_p39                                                                                
dev-java/java-config: 2.1.7                                                                                 
dev-lang/python:     2.5.2-r7                                                                               
dev-util/cmake:      2.6.3                                                                                  
sys-apps/baselayout: 1.12.11.1                                                                              
sys-apps/sandbox:    1.6                                                                                    
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/applications/kde /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/applications /usr/share/applications/kde /usr/share/applnk /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo"
LANG="fi_FI.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="fi"
PKGDIR="/var/cache/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="/var/cache/portage"
PORTDIR_OVERLAY="/var/local/layman/kde-testing /var/local/layman/finnish /var/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aiglx akonadi alsa amr amrnb amrwb aotuv apache2 asf audiofile berkdb bittorrent bluetooth bonjour branding bzip2 cairo captury cdaudio cddb cdparanoia cdr chm cjk cleartype cli consolekit cracklib crypt css cups curl cvs daap dbus dia djvu dlloader dri dts dv dvd dvdread ebook emboss emf emovix enblend enchant encode evo examples exif expat faac faad fam fame fbcon fbcondecor ffmpeg flac fmod fontconfig foomaticdb fortran fpx gcj gdbm gif glib glitz glut gnokii gnutls google-gadgets gpac gphoto2 gpm gs gsm hal hfs history ical iconv id3tag idea idn ieee1394ifp imagemagick inkjar inotify ipod ipv6 isdnlog jasper java java5 java6 javascript jbig jikes jingle jpeg jpeg2k kde kerberos kipi laptop lcms ldap libnotify lm_sensors logrotate lua lzo mad matroskamidi mikmod mjpeg mmx mmxext mng modplug mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap musepack musicbrainz mysql ncurses network networkmanager njb nls npp nptl nptlonly nsplugin odbc odk ogg openal openexr opengl openmp oscar otr pam pcmcia pcre pdf perl phonon pic plasma plotutils png postscript ppds pppd python qt3 qt3support qt4 quicktime readline reflection rle rss ruby samba sasl scanner schroedinger sdl semantic-desktop session sift slp smpeg sndfile snmp sound sox speex spell spl sse sse2 ssl startup-notification subversion svg sysfs tcpd templates tetex theora threads tidy tiff tk tmispell truetype udev unicode usb utempter utf8 vcd visualization vorbis wavpack webdav webkit wifi win32codecs wlm wmf x264 x86 xattr xcb xcomposite xine xinerama xml xmp xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always

Steps to Reproduce:
1. emerge amarok
2.
3.




Amarok-2.0.1.1 build fine earlier on the same machine to this bug is probably related to some update in one of the dependencies. For the record, amarok-2.0.2 from the kde-testing overlay also fails with the same error.
Comment 1 Arttu Valo 2009-03-25 19:41:51 UTC
Considering gentoo bugs for other packages with clock_gettime problems (e.g., bug #207560) point to -lrt, could this be due to the following mysql bug:

http://bugs.mysql.com/bug.php?id=37639

If so, trying to emerge mysql and amarok with something like follows might help as a work-around:

LDFLAGS="-lrt" emerge -1 mysql
emerge amarok

I cannot try this myself as I'm on amd64 and am experiencing bug #238487 in turn (another mysql/amarok bug, -fPIC on amd64).
Comment 2 Jani-Matti Hätinen 2009-03-30 07:31:47 UTC
I tried LDFLAGS="-lrt" emerge -1 mysql && emerge amarok, but unfortunately that didn't work. However, I did find a way to fiw the problem.

It seems that this error only happens if amarok is built against mysql-community (at least version 5.0.77). With regular mysql it works just fine.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2009-04-15 06:18:24 UTC
This one should have been fixed with mysql-5.0.76-r1 / mysql-community-5.0.77-r1 and amarok-2.0.2-r1.