Gentoo Archives: gentoo-desktop

From: Ladislav Laska <ladislav.laska@×××××.com>
To: gentoo-desktop@l.g.o
Subject: Re: [gentoo-desktop] Re: kde-sunset: new akode build problems
Date: Sun, 22 Aug 2010 18:26:53
Message-Id: AANLkTimwxvreONk7aupvZK3gYQYF1SP00SJ3BDHZYK8T@mail.gmail.com
In Reply to: Re: [gentoo-desktop] Re: kde-sunset: new akode build problems by Brent Busby
1 Hey thanks! This fixes it, but I'm not sure how to fix it properly. A
2 simple solution is to just call libtool directly (everyone should have
3 it installed), but I don't think it's right:
4
5 I just tried it and make file with error:
6 kangaroo lib # make
7 make all-am
8 make[1]: Entering directory
9 `/var/tmp/portage/media-libs/akode-2.0.2/work/akode-2.0.2/akode/lib'
10 /bin/sh libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++
11 -O2 -pipe -march=prescott -Wl,-O1 -Wl,--as-needed -o libakode.la
12 -rpath /usr/lib -no-undefined -Wl,--no-undefined
13 -Wl,--allow-shlib-undefined -version-info 2:0:0 bytebuffer.lo
14 audiobuffer.lo pluginhandler.lo decoderpluginhandler.lo
15 resamplerpluginhandler.lo sinkpluginhandler.lo encoderpluginhandler.lo
16 fast_resampler.lo crossfader.lo volumefilter.lo localfile.lo
17 mmapfile.lo wav_decoder.lo auto_sink.lo void_sink.lo converter.lo
18 buffered_decoder.lo player.lo magic.lo -lpthread -lltdl
19 i686-pc-linux-gnu-g++:
20 /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crti.o: No such file or
21 directory
22 i686-pc-linux-gnu-g++:
23 /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/crtbeginS.o: No such file or
24 directory
25 i686-pc-linux-gnu-g++: /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/crtendS.o:
26 No such file or directory
27 i686-pc-linux-gnu-g++:
28 /usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../crtn.o: No such file or
29 directory
30 make[1]: *** [libakode.la] Error 1
31 make[1]: Leaving directory
32 `/var/tmp/portage/media-libs/akode-2.0.2/work/akode-2.0.2/akode/lib'
33 make: *** [all] Error 2
34
35 This is correct, those files does not exist, since I don't have gcc
36 4.4.3 installed (had it once, now I have 4.4.4). I tried gcc-config
37 and it still throws this error. After rebuilding libtool, it worked
38 like a charm. So this leads me to think that gcc version is somehow
39 hardcoded in libtool? But that's just stupid, it can't be.
40
41 Do you have any suggestions?
42
43 Regards Ladislav Laska
44 S pozdravem Ladislav Laska
45 ---
46 xmpp/jabber: ladislav.laska@××××××.cz
47
48
49
50 On Sun, Aug 22, 2010 at 7:41 PM, Brent Busby <brent@×××××××××.org> wrote:
51 > On Sun, 22 Aug 2010, Dr Andrew John Hughes wrote:
52 >
53 >> So libtool creates the symlinks and the la file, thus satisfying the
54 >> Makefile requirements, but never actually invokes gcc to build the
55 >> library, so the symlinks are to a non-existent library.  The libtool
56 >> being used is an old in-tree version:
57 >
58 > [...]
59 >
60 >> # ../../libtool --version
61 >> ltmain.sh (GNU libtool) 1.5a (1.1240 2003/06/26 06:55:19)
62 >>
63 >> If just 'libtool' is invoked instead,
64 >>
65 >> # libtool --version
66 >> libtool (GNU libtool) 2.2.10
67 >
68 > [...]
69 >
70 >> the right thing is done and the library is built.
71 >
72 > That explains why Ladislav said earlier he was able to build the library
73 > manually.
74 >
75 >> Note that libakode.so.2.0.0 is now there.  On x86_64, I also had to
76 >> patch the Makefile to add -fPIC to the CFLAGS otherwise the link
77 >> failed with a relocatable symbol error.
78 >
79 > In general terms (not specific to this particular package), what do you do
80 > in the Makefile to fix that?  I've been trying to fix the ebuild for
81 > games-fps/quakeforge on x86_64 (bug #294388), which seems to run into the
82 > same problem trying to build a shared object without -fPIC.  There might be
83 > a lot of older packages that need this out there, and I'd like to know what
84 > the basic idea is to fix them myself.
85 >
86 >> I'd be interested to know when this was last known to build, as the
87 >> in-tree libtool is clearly buggy.
88 >
89 > It worked for me earlier this year on x86_64, but using GCC 4.3, and before
90 > the policy switch to libtool with '--as-needed'.  I don't know if it was the
91 > compiler switch or the new libtool options that made the difference, but I'd
92 > imagine it's the latter, since GCC 4.3 and 4.4 are supposed to act about 99%
93 > the same.
94 >
95 > --
96 > + Brent A. Busby         + "We've all heard that a million monkeys
97 > + UNIX Systems Admin     +  banging on a million typewriters will
98 > + University of Chicago  +  eventually reproduce the entire works of
99 > + Physical Sciences Div. +  Shakespeare.  Now, thanks to the Internet,
100 > + James Franck Institute +  we know this is not true." -Robert Wilensky
101 >
102 >

Replies

Subject Author
Re: [gentoo-desktop] Re: kde-sunset: new akode build problems Dr Andrew John Hughes <gnu_andrew@××××××××××.org>