1 |
On October 22, 2005 11:53 pm Richard Fish was like: |
2 |
|
3 |
> Could you post the output of "gcc -print-search-dirs"? |
4 |
> |
5 |
> Particularly, I am looking to see something like: |
6 |
> |
7 |
> libraries: =/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/... |
8 |
> |
9 |
> I think the libstdc++ library in this directory contains the |
10 |
> gxx_personality_v0 symbol, but the stdc++ in /usr/lib does not. If gcc |
11 |
> was somehow linking against /usr/lib first, it would pull in the |
12 |
> libstdc++ from there, and you would end up with the problem above. |
13 |
|
14 |
zebedee ~ # gcc -print-search-dirs |
15 |
install: /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/ |
16 |
programs: |
17 |
=/usr/libexec/gcc/i686-pc-linux-gnu/3.4.4/:/usr/libexec/gcc/i686-pc-linux-gnu/3.4.4/:/usr/libexec/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/libexec/gcc/i686-pc-linux-gnu/3.4.4/:/usr/libexec/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/:/usr/lib/gcc/i686-pc-linux-gnu/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/i686-pc-linux-gnu/3.4.4/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ |
18 |
libraries: |
19 |
=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/lib/i686-pc-linux-gnu/3.4.4/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/lib/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../i686-pc-linux-gnu/3.4.4/:/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../:/lib/i686-pc-linux-gnu/3.4.4/:/lib/:/usr/lib/i686-pc-linux-gnu/3.4.4/:/usr/lib/ |
20 |
|
21 |
There is a lot of convoluted repetition here. Would that make a difference? |
22 |
|
23 |
> So |
24 |
> you should also check that /usr/lib/gcc/i686-pc-linux-gnu/3.4.4 contains |
25 |
> usable libstdc++ files: |
26 |
> |
27 |
> carcharias lib # ll /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++* |
28 |
> -rw-r--r-- 1 root root 1702000 Sep 10 20:22 |
29 |
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.a |
30 |
> -rwxr-xr-x 1 root root 957 Sep 10 20:22 |
31 |
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.la |
32 |
> lrwxrwxrwx 1 root root 18 Oct 9 00:49 |
33 |
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so -> libstdc++.so.6.0.3 |
34 |
> lrwxrwxrwx 1 root root 18 Oct 9 00:49 |
35 |
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 -> libstdc++.so.6.0.3 |
36 |
> -rwxr-xr-x 1 root root 1077149 Sep 10 20:22 |
37 |
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6.0.3 |
38 |
> -rw-r--r-- 1 root root 1798478 Sep 10 20:22 |
39 |
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++_pic.a |
40 |
|
41 |
All of the above are where they should be on my system. |
42 |
|
43 |
> -Richard |
44 |
|
45 |
Thanks |
46 |
Robert |
47 |
-- |
48 |
Robert Persson |
49 |
|
50 |
"Don't use nuclear weapons to troubleshoot faults." |
51 |
(US Air Force Instruction 91-111, 1 Oct 1997) |
52 |
|
53 |
-- |
54 |
gentoo-user@g.o mailing list |