comp.lang.ada
 help / color / mirror / Atom feed
* No more static `libgnat` with FSF GNAT?
@ 2013-04-14 12:49 Yannick Duchêne (Hibou57)
  2013-04-14 13:19 ` Pascal Obry
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2013-04-14 12:49 UTC (permalink / raw)


There use to be a static version of `libgnat` in the past. However, I'm  
not able to locate it in my current FSF GNAT installation and can't find  
any installation package for it.

Is this Ubuntu specific or is this FSF GNAT? Is there a technical reason  
for not including any‑more a static version of `libgnat` or was it just  
forgotten?

Note: using libgnat-4.6.3

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University


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

* Re: No more static `libgnat` with FSF GNAT?
  2013-04-14 12:49 No more static `libgnat` with FSF GNAT? Yannick Duchêne (Hibou57)
@ 2013-04-14 13:19 ` Pascal Obry
  2013-04-14 15:47 ` Yannick Duchêne (Hibou57)
  2013-04-14 15:50 ` Simon Wright
  2 siblings, 0 replies; 5+ messages in thread
From: Pascal Obry @ 2013-04-14 13:19 UTC (permalink / raw)



Yannick,

> Is this Ubuntu specific or is this FSF GNAT? Is there a technical reason
> for not including any‑more a static version of `libgnat` or was it just
> forgotten?
> 
> Note: using libgnat-4.6.3

I still have the static libgnat in gnat-4.6 package on GNU/Debian:

$ apt-file list gnat-4.6 | grep libgnat
gnat-4.6: /usr/lib/gcc/x86_64-linux-gnu/4.6/rts-native/adalib/libgnat.a
gnat-4.6: /usr/lib/gcc/x86_64-linux-gnu/4.6/rts-native/adalib/libgnat.so
gnat-4.6: /usr/lib/x86_64-linux-gnu/libgnat-4.6.so
gnat-4.6: /usr/lib/x86_64-linux-gnu/libgnat.so
gnat-4.6-sjlj:
/usr/lib/gcc/x86_64-linux-gnu/4.6/rts-sjlj/adalib/libgnat-4.6.a
gnat-4.6-sjlj: /usr/lib/gcc/x86_64-linux-gnu/4.6/rts-sjlj/adalib/libgnat.a
libgnat-4.6: /usr/lib/x86_64-linux-gnu/libgnarl-4.6.so.1
libgnat-4.6: /usr/lib/x86_64-linux-gnu/libgnat-4.6.so.1
libgnat-4.6: /usr/share/doc/libgnat-4.6
libgnat-4.6: /usr/share/lintian/overrides/libgnat-4.6
libgnat-4.6-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libgnarl-4.6.so.1
libgnat-4.6-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libgnat-4.6.so.1
libgnat-4.6-dbg: /usr/share/doc/libgnat-4.6-dbg

-- 
  Pascal Obry /  Magny Les Hameaux (78)

  The best way to travel is by means of imagination

  http://v2p.fr.eu.org
  http://www.obry.net

  gpg --keyserver keys.gnupg.net --recv-key F949BD3B


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

* Re: No more static `libgnat` with FSF GNAT?
  2013-04-14 12:49 No more static `libgnat` with FSF GNAT? Yannick Duchêne (Hibou57)
  2013-04-14 13:19 ` Pascal Obry
@ 2013-04-14 15:47 ` Yannick Duchêne (Hibou57)
  2013-04-14 16:04   ` Ludovic Brenta
  2013-04-14 15:50 ` Simon Wright
  2 siblings, 1 reply; 5+ messages in thread
From: Yannick Duchêne (Hibou57) @ 2013-04-14 15:47 UTC (permalink / raw)


On Sun, 14 Apr 2013 15:19:11 +0200, Pascal Obry <pascal@obry.net> wrote:

Hi Pascal, nice to see you


> Yannick,
>> Is this Ubuntu specific or is this FSF GNAT? Is there a technical  
> reason
> > for not including any‑more a static version of `libgnat` or was it just
> > forgotten?
> > > Note: using libgnat-4.6.3

> I still have the static libgnat in gnat-4.6 package on GNU/Debian:
>$ apt-file list gnat-4.6 | grep libgnat
> […]

So that's in the GNAT package. I did not look here, and looked at the  
libgnat-4.6 package instead.

Here is about what I did:

     $ dpkg-query --listfiles libgnat-4.6 | grep libgnat

     /usr/share/lintian/overrides/libgnat-4.6
     /usr/lib/i386-linux-gnu/libgnat-4.6.so.1
     /usr/share/doc/libgnat-4.6

Thus I did not find it.

Using a command similar to the one I used, here is what you did:

     $ dpkg-query --listfiles gnat-4.6 | grep libgnat

     /usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.a
     /usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.so
     /usr/lib/i386-linux-gnu/libgnat.so
     /usr/lib/i386-linux-gnu/libgnat-4.6.so

And here the *both* a shared and static version appears.

Something I don't understand now then, is: if the GNAT package provides  
the library, what is the purpose of this separate shared library package?  
I though it may be a dependency package (without installing GNAT) for  
applications linked to the shared GNAT library, but if I try to remove it,  
Synaptic tells me I have to remove GNAT as a whole too. Strange…

I could build adding this to the Linker package option in the GPR file:

     Common_Switches :=
       ([…],
        "/usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.a");


That works, but I don't understand the rational behind this, and I don't  
like it (to not understand it). I will need to have a deeper review of  
this topic.


--
Yannick Duchêne
-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University

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

* Re: No more static `libgnat` with FSF GNAT?
  2013-04-14 12:49 No more static `libgnat` with FSF GNAT? Yannick Duchêne (Hibou57)
  2013-04-14 13:19 ` Pascal Obry
  2013-04-14 15:47 ` Yannick Duchêne (Hibou57)
@ 2013-04-14 15:50 ` Simon Wright
  2 siblings, 0 replies; 5+ messages in thread
From: Simon Wright @ 2013-04-14 15:50 UTC (permalink / raw)


"Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr> writes:

> There use to be a static version of `libgnat` in the past. However,
> I'm not able to locate it in my current FSF GNAT installation and
> can't find any installation package for it.
>
> Is this Ubuntu specific or is this FSF GNAT? Is there a technical
> reason for not including any‑more a static version of `libgnat` or was
> it just forgotten?
>
> Note: using libgnat-4.6.3

GCC 4.8.0 for x86_64-apple-darwin12 contains static versions of the
libraries.

Maybe you need a -dev version of the relevant packages?

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

* Re: No more static `libgnat` with FSF GNAT?
  2013-04-14 15:47 ` Yannick Duchêne (Hibou57)
@ 2013-04-14 16:04   ` Ludovic Brenta
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Brenta @ 2013-04-14 16:04 UTC (permalink / raw)


"Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr> writes:
>     $ dpkg-query --listfiles gnat-4.6 | grep libgnat
>
>     /usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.a
>     /usr/lib/gcc/i686-linux-gnu/4.6/rts-native/adalib/libgnat.so
>     /usr/lib/i386-linux-gnu/libgnat.so
>     /usr/lib/i386-linux-gnu/libgnat-4.6.so
>
> And here the *both* a shared and static version appears.

No. What you see is a static library and a *symlink* to the shared
library.

> Something I don't understand now then, is: if the GNAT package
> provides the library, what is the purpose of this separate shared
> library package?

Read the Debian Policy about how shared libraries are packaged.

-- 
Ludovic Brenta.


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

end of thread, other threads:[~2013-04-14 16:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-14 12:49 No more static `libgnat` with FSF GNAT? Yannick Duchêne (Hibou57)
2013-04-14 13:19 ` Pascal Obry
2013-04-14 15:47 ` Yannick Duchêne (Hibou57)
2013-04-14 16:04   ` Ludovic Brenta
2013-04-14 15:50 ` Simon Wright

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