public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] g++ problem
@ 2007-05-28 15:23 Didi
  2007-05-28 16:16 ` Robert Clark
  2007-05-28 18:01 ` Mike Frysinger
  0 siblings, 2 replies; 5+ messages in thread
From: Didi @ 2007-05-28 15:23 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 994 bytes --]

Hi

I wrote a little c++ program. It works fine if I compile it on my machine.
But now I want to statically link everything so I can run the program on
other some other arches. Where there might be no xerces-c for example
(OpenBSD)

g++ -g -Wall  `curl-config --cflags` `curl-config --libs` -l xerces-c Ui.cpp
GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp

works fine as soon as I add the -static flag for g++

g++ -g -Wall -static  `curl-config --cflags` `curl-config --libs` -l
xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp
Options.cpp    /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
cannot find -lgssapi_krb5
collect2: ld returned 1 exit status

Any ideas

ldconfig -p | grep gssapi_krb5
libgssapi_krb5.so.2 (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so.2
libgssapi_krb5.so (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so


(Yes, I use a Makefile but it is easier to understand this way)

Cheers Dietger

----
www.ribalba.de

[-- Attachment #2: Type: text/html, Size: 1292 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] g++ problem
  2007-05-28 15:23 [gentoo-dev] g++ problem Didi
@ 2007-05-28 16:16 ` Robert Clark
  2007-05-28 16:22   ` Ioannis Aslanidis
  2007-05-31  9:26   ` Christian Parpart
  2007-05-28 18:01 ` Mike Frysinger
  1 sibling, 2 replies; 5+ messages in thread
From: Robert Clark @ 2007-05-28 16:16 UTC (permalink / raw
  To: gentoo-dev

On 28/05/07, Didi <ribalba@gmail.com> wrote:
> Hi
>
>  I wrote a little c++ program. It works fine if I compile it on my machine.
> But now I want to statically link everything so I can run the program on
> other some other arches. Where there might be no xerces-c for example
> (OpenBSD)
>
> g++ -g -Wall  `curl-config --cflags` `curl-config --libs` -l xerces-c Ui.cpp
> GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp
>
> works fine as soon as I add the -static flag for g++
>
>  g++ -g -Wall -static  `curl-config --cflags` `curl-config --libs` -l
> xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lgssapi_krb5
>  collect2: ld returned 1 exit status
>
>  Any ideas
>
> ldconfig -p | grep gssapi_krb5
> libgssapi_krb5.so.2 (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so.2
> libgssapi_krb5.so (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so
>
>
> (Yes, I use a Makefile but it is easier to understand this way)
>
> Cheers Dietger
>
> ----
> www.ribalba.de


Sorry friend this list is for gentoo development and related issues. I
suggest you try to find your answer somewhere else.

Thanks
-Rob

-- 
/**
  * Gentoo Linux Developer
  * GPG : 0x2217D168
  */
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] g++ problem
  2007-05-28 16:16 ` Robert Clark
@ 2007-05-28 16:22   ` Ioannis Aslanidis
  2007-05-31  9:26   ` Christian Parpart
  1 sibling, 0 replies; 5+ messages in thread
From: Ioannis Aslanidis @ 2007-05-28 16:22 UTC (permalink / raw
  To: gentoo-dev

You may ask for help on the Gentoo Forums: http://forums.gentoo.org

On 5/28/07, Robert Clark <hyakuhei@gentoo.org> wrote:
> On 28/05/07, Didi <ribalba@gmail.com> wrote:
> > Hi
> >
> >  I wrote a little c++ program. It works fine if I compile it on my machine.
> > But now I want to statically link everything so I can run the program on
> > other some other arches. Where there might be no xerces-c for example
> > (OpenBSD)
> >
> > g++ -g -Wall  `curl-config --cflags` `curl-config --libs` -l xerces-c Ui.cpp
> > GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp
> >
> > works fine as soon as I add the -static flag for g++
> >
> >  g++ -g -Wall -static  `curl-config --cflags` `curl-config --libs` -l
> > xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp Options.cpp
> >
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> > cannot find -lgssapi_krb5
> >  collect2: ld returned 1 exit status
> >
> >  Any ideas
> >
> > ldconfig -p | grep gssapi_krb5
> > libgssapi_krb5.so.2 (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so.2
> > libgssapi_krb5.so (libc6,x86-64) => /usr/lib64/libgssapi_krb5.so
> >
> >
> > (Yes, I use a Makefile but it is easier to understand this way)
> >
> > Cheers Dietger
> >
> > ----
> > www.ribalba.de
>
>
> Sorry friend this list is for gentoo development and related issues. I
> suggest you try to find your answer somewhere else.
>
> Thanks
> -Rob
>
> --
> /**
>   * Gentoo Linux Developer
>   * GPG : 0x2217D168
>   */
> --
> gentoo-dev@gentoo.org mailing list
>
>


-- 
Ioannis Aslanidis

<deathwing00[at]gentoo.org> 0xB9B11F4E
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] g++ problem
  2007-05-28 15:23 [gentoo-dev] g++ problem Didi
  2007-05-28 16:16 ` Robert Clark
@ 2007-05-28 18:01 ` Mike Frysinger
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2007-05-28 18:01 UTC (permalink / raw
  To: gentoo-dev; +Cc: Didi

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

On Monday 28 May 2007, Didi wrote:
> works fine as soon as I add the -static flag for g++
>
> g++ -g -Wall -static  `curl-config --cflags` `curl-config --libs` -l
> xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp
> Options.cpp   
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/
>ld: cannot find -lgssapi_krb5
> collect2: ld returned 1 exit status
>
> Any ideas

as noted, this should have been posted to gentoo-user instead ...

that said, you're experiencing the kerberos static bug
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-dev] g++ problem
  2007-05-28 16:16 ` Robert Clark
  2007-05-28 16:22   ` Ioannis Aslanidis
@ 2007-05-31  9:26   ` Christian Parpart
  1 sibling, 0 replies; 5+ messages in thread
From: Christian Parpart @ 2007-05-31  9:26 UTC (permalink / raw
  To: gentoo-dev; +Cc: Robert Clark

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

On Monday 28 May 2007 18:16:11 Robert Clark wrote:
> > works fine as soon as I add the -static flag for g++
> >
> >  g++ -g -Wall -static  `curl-config --cflags` `curl-config --libs` -l
> > xerces-c Ui.cpp GetDataCurl.cpp GetDataAmazon.cpp XmlParser.cpp
> > Options.cpp
> >
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bi
> >n/ld: cannot find -lgssapi_krb5
> >  collect2: ld returned 1 exit status

obviousely you've got a dynamic version libgssapi_krb5.so but no static 
version libgssapi_krb5.a (please note the file extension).
please checkout the package that installed this particular library (sorry, 
don't know which, as I don't play w/ gssapi nor krb) and probably fix the 
ebuild, in case it is just missing installing the dynamic version.
But maybe upstream just did not create a static lib version, so you've to 
patch their Makefile and in the end, patch the ebuild anyways.

Hope these thoughts help,
Christian Parpart.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-05-31  9:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-28 15:23 [gentoo-dev] g++ problem Didi
2007-05-28 16:16 ` Robert Clark
2007-05-28 16:22   ` Ioannis Aslanidis
2007-05-31  9:26   ` Christian Parpart
2007-05-28 18:01 ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox