View previous topic :: View next topic |
Author |
Message |
dustice n00b
Joined: 06 Jun 2007 Posts: 20
|
Posted: Thu Jul 26, 2007 9:47 pm Post subject: Amarok Fails to Compile: Undefined Reference to... [SOLVED] |
|
|
I'm totally lost on why amarok refuses to compile. Any help would be deeply, deeply appreciated.
The error:
Code: | /usr/lib64/libtag.so: 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*, long)@GLIBCXX_3.4.9'
collect2: ld returned 1 exit status
make[4]: *** [amarokapp] Error 1
make[4]: Leaving directory `/var/tmp/paludis/media-sound/amarok-1.4.6-r1/work/amarok-1.4.6/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/paludis/media-sound/amarok-1.4.6-r1/work/amarok-1.4.6/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/paludis/media-sound/amarok-1.4.6-r1/work/amarok-1.4.6/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/media-sound/amarok-1.4.6-r1/work/amarok-1.4.6'
make: *** [all] Error 2
!!! ERROR in media-sound/amarok-1.4.6-r1:
!!! In kde_src_compile at line 3810
!!! died running emake, kde_src_compile:make
!!! Call stack:
!!! * kde_src_compile (/var/tmp/paludis/media-sound/amarok-1.4.6-r1/temp/loadsaveenv:3810)
!!! * kde_src_compile (/var/tmp/paludis/media-sound/amarok-1.4.6-r1/temp/loadsaveenv:3814)
!!! * kde_src_compile (/var/tmp/paludis/media-sound/amarok-1.4.6-r1/temp/loadsaveenv:3693)
!!! * src_compile (/var/tmp/paludis/media-sound/amarok-1.4.6-r1/temp/loadsaveenv:5112)
!!! * ebuild_f_compile (/usr/libexec/paludis/src_compile.bash:51)
!!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:363)
!!! * main (/usr/libexec/paludis/ebuild.bash:381)
die trap: exiting with error.
Install error:
* In program paludis -i amarok:
* When performing install action from command line:
* When executing install task:
* When installing 'media-sound/amarok-1.4.6-r1':
* Install error: Install failed for 'media-sound/amarok-1.4.6-r1::gentoo' |
/etc/paludis/use.conf:
Code: | */* aac -acl alsa -arts avahi bash-completion -berkdb cdr daap dbus dvd -eds -esd flac
*/* gif glitz gnome gtk hal -ipv6 java jpeg kerebos -ldap mad mmxext mp3 mp4 -mysql nvidia opengl -oss perl php
*/* png python mysql rar ruby srt ssse3 tiff truetype X xv xvid x264 xcomposite xscreensaver -xml |
Tried some stuff that I found looking through the forums:
I've tried compiling without the -opengl flag, tried compiling the stable ebuild (failed with the same error).
I thought it might be something to do with the fact that I had to downgrade to gcc 4.1.2 after 4.2.0 didn't work so well, but I've taken care to rebuild broken libraries, rebuild toolkit, and ran fix_libtool_files
Anyone have any ideas to help me out of my misery??
Last edited by dustice on Sat Jul 28, 2007 4:51 pm; edited 1 time in total |
|
Back to top |
|
|
thestick Guru
Joined: 07 Apr 2006 Posts: 531 Location: /dev/urandom
|
Posted: Thu Jul 26, 2007 10:11 pm Post subject: |
|
|
post emerge -vp amarok;
post emerge --info;
add -musicbrainz to USE variable. |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Thu Jul 26, 2007 11:06 pm Post subject: |
|
|
Due to seeing this in your post, you may want to take a look at this thread -
https://forums.gentoo.org/viewtopic-t-571679-highlight-.html
It solved KDE compilation problems I was having with gcc-4.2.0 (and may fix 4.2.0 for you as well) - I'm pretty sure it was modifying the file /etc/env.d/05compiler to reflect the version of gcc I was using, but it's worth just checking over some of the other things mentioned in that thread. That file didn't seem to get changed by gcc-config. YMMV. I also did ldconfig -v to check that all was well. _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
dustice n00b
Joined: 06 Jun 2007 Posts: 20
|
Posted: Thu Jul 26, 2007 11:51 pm Post subject: |
|
|
@agent_jdh - I dont have a /etc/env.d/05compiler file O.o my /etc/env.d/05gcc file had some 4.2.0 stuff in it, I corrected it but amarok still has the same error.
@thestick:
paludis -ip amarok:
Code: | These packages will be installed:
* media-sound/amarok-1.4.6-r1 {:0} [N] -arts daap -debug -ifp -ipod kde mp4 -mtp -musicbrainz mysql -njb -noamazon opengl -postgres python (-real) -visualization -xinerama linguas: -af -ar -az -be -bg -bn -br -ca -cs -cy -da -de -el en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -he -hi -hu -id -is -it -ja -km -ko -ku -lo -lt -mk -ms -nb -nds -nl -nn -pa -pl -pt -pt_BR -ro -ru -rw -se -sk -sl -sq -sr -sr@Latn -ss -sv -ta -tg -th -tr -uk -uz -zh_CN -zh_TW |
paludis --info
Code: | paludis 0.24.5
Built by root@livecd on 2007-07-20T08:11:02-0500
CXX: x86_64-pc-linux-gnu-g++ 4.1.2 (Gentoo 4.1.2 p1.0.1)
CXXFLAGS: -march=nocona -O2 -pipe -fomit-frame-pointer
LDFLAGS:
DATADIR: /usr/share
LIBDIR: /usr/lib64
LIBEXECDIR: /usr/libexec
SYSCONFDIR: /etc
stdlib: GNU libstdc++ 20070214
libebt: 1.3.0
libwrapiter: 1.2.0
sandbox: enabled
Repository virtuals:
Configuration information:
format: virtuals
Repository installed_virtuals:
Configuration information:
format: installed_virtuals
Repository gentoo:
Configuration information:
buildroot: /var/tmp/paludis
cache: /usr/portage/metadata/cache
distdir: /usr/portage/distfiles
eclassdirs: /usr/portage/eclass
format: ebuild
location: /usr/portage
names_cache: /usr/portage/.cache/names
newsdir: /usr/portage/metadata/news
pkgdir: /usr/portage/packages
profiles: /usr/portage/profiles/default-linux/amd64/2007.0/desktop
securitydir: /usr/portage/metadata/glsa
setsdir: /usr/portage/sets
sync: rsync://rsync.namerica.gentoo.org/gentoo-portage
sync_options:
write_cache: /var/cache/paludis/metadata
Package information:
app-admin/eselect-compiler: (none)
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: (none)
dev-util/confcache: (none)
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
Variable information:
ACCEPT_KEYWORDS:
AUTOCLEAN:
CBUILD: x86_64-pc-linux-gnu
CFLAGS: -march=nocona -O2 -pipe
CHOST: x86_64-pc-linux-gnu
CONFIG_PROTECT:
CONFIG_PROTECT_MASK:
CTARGET:
CXXFLAGS: -march=nocona -O2 -pipe
DISTDIR: /usr/portage/distfiles
FEATURES:
GENTOO_MIRRORS:
INSTALL_MASK:
LANG:
LC_ALL:
LDFLAGS:
LINGUAS:
MAKEOPTS: -j3
PKGDIR:
PORTAGE_COMPRESS:
PORTAGE_COMPRESS_FLAGS:
PORTAGE_RSYNC_EXTRA_OPTS:
PORTAGE_RSYNC_OPTS:
PORTAGE_TMPDIR: /var/tmp/paludis
PORTDIR: /usr/portage
PORTDIR_OVERLAY:
SYNC:
USE:
Repository installed:
Configuration information:
buildroot: /var/tmp/paludis
format: vdb
location: /var/db/pkg
names_cache: /var/db/pkg/.cache/names
provides_cache: /var/db/pkg/.cache/provides
root: /
world: /var/db/pkg/world
Repository xeffects:
Configuration information:
buildroot: /var/tmp/paludis
cache: /var/empty
distdir: /var/tmp/distfiles
eclassdirs: /usr/portage/eclass /var/paludis/repositories/xeffects/eclass
format: ebuild
location: /var/paludis/repositories/xeffects
master_repository: gentoo
names_cache: /var/paludis/repositories/xeffects/.cache/names
newsdir: /var/paludis/repositories/xeffects/metadata/news
pkgdir: /usr/portage/packages
profiles: /usr/portage/profiles/default-linux/amd64/2007.0/desktop
securitydir: /var/paludis/repositories/xeffects/metadata/glsa
setsdir: /var/paludis/repositories/xeffects/sets
sync: svn://svn.gentoo-xeffects.org/xeffects/trunk
sync_options:
write_cache: /var/cache/paludis/metadata |
and musicbrainz is off by default. |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Thu Jul 26, 2007 11:53 pm Post subject: |
|
|
dustice wrote: | @agent_jdh - I dont have a /etc/env.d/05compiler file O.o my /etc/env.d/05gcc file had some 4.2.0 stuff in it, I corrected it but amarok still has the same error. |
Did you run
Code: | env-update
source /etc/profile |
Before trying to recompile amarok? Any modifications to /etc/env.d directory need to followed by (at least) env-update afaik. _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
dustice n00b
Joined: 06 Jun 2007 Posts: 20
|
Posted: Fri Jul 27, 2007 12:01 am Post subject: |
|
|
agent_jdh wrote: |
Before trying to recompile amarok? Any modifications to /etc/env.d directory need to followed by (at least) env-update afaik. |
Haha, thanks for the reminder, but yeah I did that - still fails |
|
Back to top |
|
|
agent_jdh Veteran
Joined: 08 Aug 2002 Posts: 1783 Location: Scotland
|
Posted: Fri Jul 27, 2007 12:04 am Post subject: |
|
|
What about the other suggestions in that thread? Have you checked gcc-config etc? _________________ Jingle Jangle Jewellery |
|
Back to top |
|
|
dustice n00b
Joined: 06 Jun 2007 Posts: 20
|
Posted: Fri Jul 27, 2007 1:59 pm Post subject: |
|
|
agent_jdh wrote: | What about the other suggestions in that thread? Have you checked gcc-config etc? |
Yep. (I've already unmerged gcc 1.4.2, and gcc-config is pointing to the right compiler) |
|
Back to top |
|
|
thestick Guru
Joined: 07 Apr 2006 Posts: 531 Location: /dev/urandom
|
Posted: Sat Jul 28, 2007 7:46 am Post subject: |
|
|
install portage-utils
qfile /usr/lib64/libtag.so
or try running emerge -NvuD world ; revdep-rebuild. maybe it will fix itself. |
|
Back to top |
|
|
dustice n00b
Joined: 06 Jun 2007 Posts: 20
|
Posted: Sat Jul 28, 2007 4:50 pm Post subject: |
|
|
Hey, reemerging world magically worked O.O
I guess it was something to do with gcc after all?
Thanks! |
|
Back to top |
|
|
|