Gentoo Archives: gentoo-dev

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

Replies

Subject Author
Re: [gentoo-dev] g++ problem Ioannis Aslanidis <aslanidis@×××××.com>
Re: [gentoo-dev] g++ problem Christian Parpart <trapni@g.o>