How to get an unstripped amarok binary on Gentoo?
Jeff Mitchell
kde-dev at emailgoeshere.com
Fri Jun 22 20:08:41 UTC 2007
Stupid question, have you tried using the "debug" USE flag when
emerging the package?
--Jeff
Quoting Leon Weber <leon at leonweber.de>:
> Hello,
>
> after I emerged amarok 1.4.6 on my Gentoo machine, it crashes at
> startup, gdb tells it is a segfault, while it exits with status 0.
>
> This is the backtrace I got:
>
> (gdb) bt
> #0 0xb68fc0f3 in QString::QString () from /usr/qt/3/lib/libqt-mt.so.3
> #1 0xb7b35818 in CollectionDB::CollectionDB () from
> /usr/kde/3.5/lib/libamarok.so.0
> #2 0xbfca5620 in ?? ()
> #3 0xb7f62508 in ?? ()
> #4 0xbfca55ec in ?? ()
> #5 0x00effb74 in ?? ()
> #6 0xb6a85630 in ?? () from /usr/qt/3/lib/libqt-mt.so.3
> #7 0x00000001 in ?? ()
> #8 0x7badbcd0 in ?? ()
> #9 0x00000000 in ?? ()
>
> However, this is not very useful as the binary seems stripped. So the
> next logical step is to get an unstripped binary because markey asked me
> to send a more useful backtrace.
> To make it short, I was not able to produce an unstripped amarok binary.
> These are the things I did:
> - USE="debug" (results in a configuration with --enable-debug=full)
> - CFLAGS="-ggdb"
> - FEATURES="nostrip"
>
> These didn't help.
>
> Then Flameeyes told me that the ??s could come from foreign binaries
> like Qt or Xine, which I also recompiled with these flags. Didn't help.
>
> My last try was to run
> # ebuild /usr/portage/media-sound/amarok/amarok-1.4.6.ebuild unpack
> # ebuild /usr/portage/media-sound/amarok/amarok-1.4.6.ebuild compile
>
> There I pressed Ctrl+C when it was done patching and configuring and
> started to compile.
>
> # cd /var/tmp/portage/media-sound/amarok-1.4.6/work/amarok-1.4.6/
>
> There I found that there are 154 Makefiles around. I didn't want to edit
> them all, so I simply did the following, because I had seen a
> STRIP = i686-pc-linux-gnu-strip line.
>
> # mv /usr/bin/i686-pc-linux-gnu-strip /usr/bin/i686-pc-linux-gnu-strip_
> # ln -s /bin/true /usr/bin/i686-pc-linux-gnu-strip
>
> # make
> # touch /var/tmp/portage/media-sound/amarok-1.4.6/.compiled
> # ebuild /usr/portage/media-sound/amarok/amarok-1.4.6.ebuild install
> # ebuild /usr/portage/media-sound/amarok/amarok-1.4.6.ebuild qmerge
>
> Even this didn't help. Any ideas on how to get a meaningful backtrace
> would be greatly appreciated, you know :)
>
> Leon
>
> --
> Leon Weber, leon at leonweber.de
> blog: https://leonweber.de/blog
> jabber: leowe at jabber.ccc.de (icq: 261067046)
> irc: LeonWP (irc.freenode.net)
> GPG: 0x8E04D7FC
> --
> Anyway, you should learn German. It's no more difficult than regex.
> -- Richard Quinn
>
More information about the Amarok
mailing list