Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] using g++ instead of gcc to build abiword
Date: Mon, 24 Oct 2005 10:58:19
Message-Id: 435B3360.3050300@asmallpond.org
In Reply to: Re: [gentoo-user] using g++ instead of gcc to build abiword by Robert Persson
1 Robert Persson wrote:
2
3 >On October 22, 2005 04:38 pm Dave Nebinger was like:
4 >
5 >
6 >>I think at this point you'll have to post some of the output generated when
7 >>the ebuild fails before we'll be able to help you any further...
8 >>
9 >>
10 >
11 >Well here goes...
12 >
13 >...
14 >UnixMain.o ../../../../src/wp/ap/libAp.a ../../../../src/wp/impexp/libImpExp.a ../../../../src/af/xap/libXap.a ../../../../src/af/util/libUtil.a ../../../../src/af/gr/libGr.a ../../../../src/af/ev/libEv.a ../../../../src/other/spell/xp/libSpell.a ../../../../src/other/ttftool/unix/libTtfTool.a ../../../../src/pkg/linux/apkg/libApkg.a ../../../../src/text/fmt/xp/libFmt.a ../../../../src/text/ptbl/xp/libPtbl.a ../../../../src/wp/ap/libAp.a ../../../../src/wp/impexp/libImpExp.a ../../../../src/af/xap/libXap.a ../../../../src/af/util/libUtil.a ../../../../src/af/gr/libGr.a ../../../../src/af/ev/libEv.a ../../../../src/other/spell/xp/libSpell.a ../../../../src/other/ttftool/unix/libTtfTool.a ../../../../src/pkg/linux/apkg/libApkg.a ../../../../src/text/fmt/xp/libFmt.a ../../../../src/text/ptbl/xp/libPtbl.a ../../../../src/wp/ap/libAp.a ../../../../src/wp/impexp/libImpExp.a ../../../../src/af/xap/libXap.a ../../../../src/af/util/libUtil.a ../../../../src/af/gr/libGr.a ../../../..!
15 /!
16 > src/af/ev/libEv.a ../../../../src/other/spell/xp/libSpell.a ../../../../src/other/ttftool/unix/libTtfTool.a ../../../../src/pkg/linux/apkg/libApkg.a ../../../../src/text/fmt/xp/libFmt.a ../../../../src/text/ptbl/xp/libPtbl.a ../../../../src/wp/ap/libAp.a ../../../../src/wp/impexp/libImpExp.a ../../../../src/af/xap/libXap.a ../../../../src/af/util/libUtil.a ../../../../src/af/gr/libGr.a ../../../../src/af/ev/libEv.a ../../../../src/other/spell/xp/libSpell.a ../../../../src/other/ttftool/unix/libTtfTool.a ../../../../src/pkg/linux/apkg/libApkg.a ../../../../src/text/fmt/xp/libFmt.a ../../../../src/text/ptbl/xp/libPtbl.a
17 >-lglade-2.0 -lgtk-x11-2.0 -lxml2 -lpthread -lz -lgdk-x11-2.0 -latk-1.0
18 >-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
19 >-lgmodule-2.0 -ldl -lglib-2.0 -lSM -lICE -lX11 -Wl,--export-dynamic
20 >-lgmodule-2.0 -ldl -lglib-2.0 -Wl,--export-dynamic -lgnomeprintui-2-2
21 >-lgnomeprint-2-2 -lgnomecanvas-2 -lxml2 -lpthread -lz -lart_lgpl_2
22 >-lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
23 >-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
24 >-lglib-2.0 -Wl,--export-dynamic -lenchant -lgmodule-2.0 -ldl -lglib-2.0
25 >-L/usr/lib -lxml2 -lz -lpthread -lm -lfribidi -lwv -lwmf -lwmflite
26 >-lfreetype -lSM -lICE -lX11 -lexpat -ljpeg -lxml2 -lpthread -lglib-2.0 -lpng
27 >-lz -lm -lglib-2.0 -lpng12 -lz -lm -lz -lpopt -lXft -lX11 -lfreetype
28 >-lXrender -lfontconfig -pthread -lgthread-2.0 -lglib-2.0
29 >UnixMain.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
30 >../../../../src/wp/ap/libAp.a(ap_UnixApp.o)(.text+0x3ef): In function
31 >`AP_UnixApp::loadStringsFromDisk(char const*, AP_BuiltinStringSet*)':
32 >
33 >
34
35 Could you post the output of "gcc -print-search-dirs"?
36
37 Particularly, I am looking to see something like:
38
39 libraries: =/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/...
40
41 I think the libstdc++ library in this directory contains the
42 gxx_personality_v0 symbol, but the stdc++ in /usr/lib does not. If gcc
43 was somehow linking against /usr/lib first, it would pull in the
44 libstdc++ from there, and you would end up with the problem above. So
45 you should also check that /usr/lib/gcc/i686-pc-linux-gnu/3.4.4 contains
46 usable libstdc++ files:
47
48 carcharias lib # ll /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++*
49 -rw-r--r-- 1 root root 1702000 Sep 10 20:22
50 /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.a
51 -rwxr-xr-x 1 root root 957 Sep 10 20:22
52 /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.la
53 lrwxrwxrwx 1 root root 18 Oct 9 00:49
54 /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so -> libstdc++.so.6.0.3
55 lrwxrwxrwx 1 root root 18 Oct 9 00:49
56 /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 -> libstdc++.so.6.0.3
57 -rwxr-xr-x 1 root root 1077149 Sep 10 20:22
58 /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6.0.3
59 -rw-r--r-- 1 root root 1798478 Sep 10 20:22
60 /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++_pic.a
61
62 -Richard
63
64
65
66 --
67 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] using g++ instead of gcc to build abiword Robert Persson <ireneshusband@××××××××.uk>
Re: [gentoo-user] using g++ instead of gcc to build abiword Robert Persson <ireneshusband@××××××××.uk>