1 |
On 06/22/2010 10:01 PM, Chen Huan wrote: |
2 |
> When I emerge xulrunner-1.9.2.4 and mozilla-firefox-3.6.4,xulrunner cannot be emerged, here is the error message: |
3 |
> |
4 |
> ./../../dist/bin/js: /usr/lib/libstdc++.so.6: version `CXXABI_1.3' not found (required by ./../../dist/bin/js) |
5 |
> ./../../dist/bin/js: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4' not found (required by ./../../dist/bin/js) |
6 |
|
7 |
> Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.3.4, |
8 |
|
9 |
This is a little confusing unless you've been through it before. I expect that |
10 |
portage has recently installed gcc-4.4.3 (or 4.4.4 on ~x86) so you now have (at |
11 |
least) two versions of gcc on your machine, but you are still using the older |
12 |
gcc-4.3.4. |
13 |
|
14 |
The point is that you now have (at least) two versions of libstdc++.so.6 because |
15 |
each version of gcc installs its own version of libstdc++. |
16 |
|
17 |
Somehow the xulrunner build is trying to use both versions of libstdc++.so.6 |
18 |
(I don't know why, but it probably involves .la files, as usual) so I suggest |
19 |
that you switch to the new gcc-4.4.3 (or 4.4.4) like this: |
20 |
|
21 |
#gcc-config --list-profiles |
22 |
[1] i686-pc-linux-gnu-4.3.4 |
23 |
[2] i686-pc-linux-gnu-4.4.3 * <----- (I'm already using the newer version) |
24 |
|
25 |
#gcc-config 1 |
26 |
* Switching native-compiler to i686-pc-linux-gnu-4.3.4 ... |
27 |
|
28 |
#gcc-config 2 |
29 |
* Switching native-compiler to i686-pc-linux-gnu-4.4.3 ... |
30 |
|
31 |
After you switch, you probably should run |
32 |
#fix_libtool_files.sh 4.3.4 |
33 |
* Scanning libtool files for hardcoded gcc library paths... |
34 |
cat: ld.so.conf.d/*.conf: No such file or directory |
35 |
* [1/5] Scanning /lib ... |
36 |
* [2/5] Scanning /usr/lib ... |
37 |
* [3/5] Scanning /usr/games/lib ... |
38 |
* [4/5] Scanning /usr/i686-pc-linux-gnu/lib ... |
39 |
* [5/5] Scanning /usr/local/lib ... |