Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257433 - Amarok-2.0.1.1 fails to build at libtag.so
Summary: Amarok-2.0.1.1 fails to build at libtag.so
Status: RESOLVED INVALID
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-02-02 21:24 UTC by Claes
Modified: 2009-02-04 19:20 UTC (History)
0 users

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 Claes 2009-02-02 21:24:44 UTC
Amarok-2.0.1.1 fails to build.
The problem appears to be libtag.so.

The workaround with mysql -DPIC -fPIC does not work as far as I can tell.

Reproducible: Always

Steps to Reproduce:
1. emerge amarok
Actual Results:  
Error message:
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/MainControlsWidget.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/MainToolbar.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/Osd.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/PixmapViewer.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/PrettyTreeView.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/ProgressiveSearchWidget.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/ProgressSlider.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/SearchWidget.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/SidebarWidget.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/SliderWidget.o
/var/tmp/portage/media-sound/amarok-2.0.1.1/work/amarok-2.0.1.1/src/widgets/SliderWidget.cpp: In member function 'void Amarok::Slider::paintCustomSlider(QPainter*, int, int, int, int, double)':
/var/tmp/portage/media-sound/amarok-2.0.1.1/work/amarok-2.0.1.1/src/widgets/SliderWidget.cpp:189: warning: converting to 'int' from 'double'
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/TokenListWidget.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/Token.o
[ 85%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/TrackTooltip.o
[ 86%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/VolumeWidget.o
[ 86%] Building CXX object src/CMakeFiles/amaroklib.dir/widgets/Splitter.o
[ 86%] Building CXX object src/CMakeFiles/amaroklib.dir/GlobalCollectionActions.o
[ 86%] Building CXX object src/CMakeFiles/amaroklib.dir/RootAdaptor.o
[ 86%] Building CXX object src/CMakeFiles/amaroklib.dir/PlayerAdaptor.o
[ 86%] Building CXX object src/CMakeFiles/amaroklib.dir/TracklistAdaptor.o
[ 86%] Building CXX object src/CMakeFiles/amaroklib.dir/amarokconfig.o
Linking CXX shared library ../lib/libamaroklib.so
[ 86%] Built target amaroklib
Scanning dependencies of target amarok_automoc
[ 86%] Built target amarok_automoc
Scanning dependencies of target amarok
[ 86%] Building CXX object src/CMakeFiles/amarok.dir/amarok_automoc.o
[ 86%] Building CXX object src/CMakeFiles/amarok.dir/main.o
Linking CXX executable amarok
/usr/lib/libtag.so.1: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)@GLIBCXX_3.4.9'
collect2: ld returned 1 exit status
make[2]: *** [src/amarok] Error 1
make[1]: *** [src/CMakeFiles/amarok.dir/all] Error 2
make: *** [all] Error 2
 * 
 * ERROR: media-sound/amarok-2.0.1.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3079:  Called kde4-base_src_compile
 *             environment, line 2217:  Called kde4-base_src_make
 *             environment, line 2277:  Called cmake-utils_src_make
 *             environment, line  775:  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.

Expected Results:  
Completed emerge of amarok

# emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-glibc2.0
Timestamp of tree: Sun, 01 Feb 2009 09:15:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  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=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.mdfnet.se/mirror/gentoo ftp://mirror.mdfnet.se/gentoo http://ftp.ing.umu.se/linux/gentoo/ ftp://ftp.ing.umu.se/linux/gentoo/"
LDFLAGS="-Wl,--as-needed"
LINGUAS="se"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
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.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bluetooth branding bzip2 cairo cdr cli cracklib crypt dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer hal iconv ipv6 isdnlog jpeg kde kdeenablefinal ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse ssl startup-notification svg symlink sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xinerama xml xorg xulrunner xv 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 authn_alias authn_anon 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="se" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Claes 2009-02-02 22:35:06 UTC
I noticed something.

During configuration:
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
-- Configuring done

#Comment out my LDFlags I instead get:-- Looking for dgettext
-- Looking for dgettext - not found
-- Looking for dgettext in LIBINTL_LIBRARY-NOTFOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBINTL_LIBRARY
    linked by target "cmTryCompileExec" in directory /var/tmp/portage/media-sound/amarok-2.0.1.1/work/amarok_build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for dgettext in LIBINTL_LIBRARY-NOTFOUND - not found
CMake Error at /usr/share/apps/cmake/modules/FindGettext.cmake:61 (message):
  Could NOT find Gettext
Call Stack (most recent call first):
  po/CMakeLists.txt:1 (find_package)


-- Configuring incomplete, errors occurred!

Switching to -asneeded gcc profile gets me back to working configure.
Comment 2 Claes 2009-02-04 19:20:47 UTC
I failed to realise that taglib is a dep to amarok instead of a part of it.
emerge taglib solved the problem