Gentoo Archives: gentoo-dev

From: Ioannis Aslanidis <aslanidis@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] g++ problem
Date: Mon, 28 May 2007 16:26:51
Message-Id: ea440b1d0705280922o3458cc49k44ec39fbc48ab93a@mail.gmail.com
In Reply to: Re: [gentoo-dev] g++ problem by Robert Clark
1 You may ask for help on the Gentoo Forums: http://forums.gentoo.org
2
3 On 5/28/07, Robert Clark <hyakuhei@g.o> wrote:
4 > On 28/05/07, Didi <ribalba@×××××.com> wrote:
5 > > Hi
6 > >
7 > > I wrote a little c++ program. It works fine if I compile it on my machine.
8 > > But now I want to statically link everything so I can run the program on
9 > > other some other arches. Where there might be no xerces-c for example
10 > > (OpenBSD)
11 > >
12 > > g++ -g -Wall `curl-config --cflags` `curl-config --libs` -l xerces-c Ui.cpp
13 > > GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp
14 > >
15 > > works fine as soon as I add the -static flag for g++
16 > >
17 > > g++ -g -Wall -static `curl-config --cflags` `curl-config --libs` -l
18 > > xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp
19 > >
20 > > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
21 > > cannot find -lgssapi_krb5
22 > > collect2: ld returned 1 exit status
23 > >
24 > > Any ideas
25 > >
26 > > ldconfig -p | grep gssapi_krb5
27 > > libgssapi_krb5.so.2 (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so.2
28 > > libgssapi_krb5.so (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so
29 > >
30 > >
31 > > (Yes, I use a Makefile but it is easier to understand this way)
32 > >
33 > > Cheers Dietger
34 > >
35 > > ----
36 > > www.ribalba.de
37 >
38 >
39 > Sorry friend this list is for gentoo development and related issues. I
40 > suggest you try to find your answer somewhere else.
41 >
42 > Thanks
43 > -Rob
44 >
45 > --
46 > /**
47 > * Gentoo Linux Developer
48 > * GPG : 0x2217D168
49 > */
50 > --
51 > gentoo-dev@g.o mailing list
52 >
53 >
54
55
56 --
57 Ioannis Aslanidis
58
59 <deathwing00[at]gentoo.org> 0xB9B11F4E
60 --
61 gentoo-dev@g.o mailing list