Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Russ Allbery
Ralf Wildenhues writes: > * Bob Friesenhahn wrote on Wed, Aug 26, 2009 at 05:01:18AM CEST: >> Is someone here willing to contribute a portable m4 macro which tests >> the compiler (and/or linker) to prove beyond a shadow of a doubt that >> it adequately supports the implicit linkage required? The

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Ralf Wildenhues
* Mike Frysinger wrote on Wed, Aug 26, 2009 at 01:49:18AM CEST: > On Tuesday 25 August 2009 18:41:52 Russ Allbery wrote: > > Bob Friesenhahn writes: > > > libfoo-ssl_fast.so > > > myprog --> somelib --> or > > > libfoo-ssl_slow.so > > > > > >

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Ralf Wildenhues
* Richard Purdie wrote on Wed, Aug 26, 2009 at 12:37:54AM CEST: > On Tue, 2009-08-25 at 20:44 +0200, Ralf Wildenhues wrote: > > With GNU/Linux, and libraries all being in directories searched by > > default by both the link editor and the runtime linker, the problems > > are fairly limited. IIRC D

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Ralf Wildenhues
* Bob Friesenhahn wrote on Wed, Aug 26, 2009 at 05:01:18AM CEST: > Is someone here willing to contribute a portable m4 macro which > tests the compiler (and/or linker) to prove beyond a shadow of a > doubt that it adequately supports the implicit linkage required? The > tests should work for more t

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Ralf Wildenhues
* Russ Allbery wrote on Wed, Aug 26, 2009 at 12:41:52AM CEST: > Bob Friesenhahn writes: > > > libfoo-ssl_fast.so > > myprog --> somelib --> or > > libfoo-ssl_slow.so > This case is exceptionally rare. It used to be a lot more common, and li

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Bob Friesenhahn
Is someone here willing to contribute a portable m4 macro which tests the compiler (and/or linker) to prove beyond a shadow of a doubt that it adequately supports the implicit linkage required? The tests should work for more than Linux and should be based on observed behavior. Support for indi

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Anssi Hannula
Mike Frysinger wrote: > On Tuesday 25 August 2009 20:33:25 Anssi Hannula wrote: >> Mike Frysinger wrote: >>> On Tuesday 25 August 2009 18:37:54 Richard Purdie wrote: On Tue, 2009-08-25 at 20:44 +0200, Ralf Wildenhues wrote: > * Bob Friesenhahn wrote on Tue, Aug 25, 2009 at 05:17:49PM CEST:

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Mike Frysinger
On Tuesday 25 August 2009 20:33:25 Anssi Hannula wrote: > Mike Frysinger wrote: > > On Tuesday 25 August 2009 18:37:54 Richard Purdie wrote: > >> On Tue, 2009-08-25 at 20:44 +0200, Ralf Wildenhues wrote: > >>> * Bob Friesenhahn wrote on Tue, Aug 25, 2009 at 05:17:49PM CEST: > On Tue, 25 Aug 20

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Anssi Hannula
Mike Frysinger wrote: > On Tuesday 25 August 2009 18:37:54 Richard Purdie wrote: >> On Tue, 2009-08-25 at 20:44 +0200, Ralf Wildenhues wrote: >>> * Bob Friesenhahn wrote on Tue, Aug 25, 2009 at 05:17:49PM CEST: On Tue, 25 Aug 2009, Anssi Hannula wrote: > I think the proper way to solve thi

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Anssi Hannula
dherr...@tentpost.com wrote: > Mike wrote: >> making the code use reduced library sets for only linux targets is fine by >> me. >> libtool already has plenty of target-specific code based on the quality of >> library handling. > > > I think the scope of the problem is more devious than you imagin

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Mike Frysinger
On Tuesday 25 August 2009 18:37:54 Richard Purdie wrote: > On Tue, 2009-08-25 at 20:44 +0200, Ralf Wildenhues wrote: > > * Bob Friesenhahn wrote on Tue, Aug 25, 2009 at 05:17:49PM CEST: > > > On Tue, 25 Aug 2009, Anssi Hannula wrote: > > > >I think the proper way to solve this is to not link to dep

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Mike Frysinger
On Tuesday 25 August 2009 18:41:52 Russ Allbery wrote: > Bob Friesenhahn writes: > > How would you like to deal with the case where a library has multiple > > usable dependencies, which satisify identical purposes, but via > > different possible libraries? > > > > libfoo-s

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Russ Allbery
Bob Friesenhahn writes: > How would you like to deal with the case where a library has multiple > usable dependencies, which satisify identical purposes, but via > different possible libraries? > libfoo-ssl_fast.so > myprog --> somelib --> or >

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Richard Purdie
On Tue, 2009-08-25 at 20:44 +0200, Ralf Wildenhues wrote: > * Bob Friesenhahn wrote on Tue, Aug 25, 2009 at 05:17:49PM CEST: > > On Tue, 25 Aug 2009, Anssi Hannula wrote: > > > > > >I think the proper way to solve this is to not link to dependency_libs > > >when linking dynamically on systems where

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Bob Friesenhahn
On Tue, 25 Aug 2009, Russ Allbery wrote: I know what the difference is. My point is that adding an explicit dependency on a shared library whose ABI you do not use directly simply doesn't scale when maintaining a distribution the size of Debian. You have to rely on the dynamic linker to resolv

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Mike Frysinger
On Tuesday 25 August 2009 17:52:07 Bob Friesenhahn wrote: > On Tue, 25 Aug 2009, Russ Allbery wrote: > >> Relying on the OS's implicit dependency features seems to be an approach > >> which is fraught with peril. > > > > Relying on the dynamic linker to resolve implicit dependencies is the > > only

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Russ Allbery
Bob Friesenhahn writes: > On Tue, 25 Aug 2009, Russ Allbery wrote: >>> Relying on the OS's implicit dependency features seems to be an >>> approach which is fraught with peril. >> Relying on the dynamic linker to resolve implicit dependencies is the >> only way that it's really feasible to maint

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Bob Friesenhahn
On Tue, 25 Aug 2009, Russ Allbery wrote: Relying on the OS's implicit dependency features seems to be an approach which is fraught with peril. Relying on the dynamic linker to resolve implicit dependencies is the only way that it's really feasible to maintain a distribution the size of Debian

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Russ Allbery
Bob Friesenhahn writes: > On Tue, 25 Aug 2009, Anssi Hannula wrote: >> I think the proper way to solve this is to not link to dependency_libs >> when linking dynamically on systems where it is not needed to link to >> those. I haven't seen any correctly working patches that implement >> this. >

RE: extra exports with libtool (pr-msvc-support)

2009-08-25 Thread David Byron
Re-ordering paragraphs... > Not on all systems, but I think that will happen with gcc/ld though. > I think they will only export dllexported symbols if at least one such > symbol exist. However, this causes some trouble if you e.g. have a > library that is not decorated with dllexport and which us

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Mike Frysinger
On Tuesday 25 August 2009 13:50:18 dherr...@tentpost.com wrote: > Mike wrote: > > On Tuesday 25 August 2009 12:42:19 Bob Friesenhahn wrote: > >> On Tue, 25 Aug 2009, Mike Frysinger wrote: > >> >> Relying on the OS's implicit dependency features seems to be an > >> >> approach which is fraught with

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Ralf Wildenhues
Hello, * Bob Friesenhahn wrote on Tue, Aug 25, 2009 at 05:17:49PM CEST: > On Tue, 25 Aug 2009, Anssi Hannula wrote: > > > >I think the proper way to solve this is to not link to dependency_libs > >when linking dynamically on systems where it is not needed to link to > >those. I haven't seen any co

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread dherring
Mike wrote: > On Tuesday 25 August 2009 12:42:19 Bob Friesenhahn wrote: >> On Tue, 25 Aug 2009, Mike Frysinger wrote: >> >> Relying on the OS's implicit dependency features seems to be an >> >> approach which is fraught with peril. >> > >> > why ? >> >> When viewing the issue through Linux package-

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Mike Frysinger
On Tuesday 25 August 2009 12:42:19 Bob Friesenhahn wrote: > On Tue, 25 Aug 2009, Mike Frysinger wrote: > >> Relying on the OS's implicit dependency features seems to be an > >> approach which is fraught with peril. > > > > why ? > > When viewing the issue through Linux package-maintainer spectacles

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Bob Friesenhahn
On Tue, 25 Aug 2009, Mike Frysinger wrote: Relying on the OS's implicit dependency features seems to be an approach which is fraught with peril. why ? When viewing the issue through Linux package-maintainer spectacles everything looks pretty straightforward since the environment and packag

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Paul Wise
On Tue, 2009-08-25 at 18:34 +0300, Anssi Hannula wrote: > You mean to subscribe on the debian development list? I'd think this > list would be the more appropriate place for discussing a proper > upstream solution. There is no need to subscribe, just ask people to CC you. I'm unsure if you'll get

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Mike Frysinger
On Tuesday 25 August 2009 11:17:49 Bob Friesenhahn wrote: > On Tue, 25 Aug 2009, Anssi Hannula wrote: > > I think the proper way to solve this is to not link to dependency_libs > > when linking dynamically on systems where it is not needed to link to > > those. I haven't seen any correctly working

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Anssi Hannula
Paul Wise wrote: > On Tue, 2009-08-25 at 17:46 +0300, Anssi Hannula wrote: > >> I don't understand what the proposed dependency_libs_shared would be for. >> >> dependency_libs contains the dependencies of a library. These are needed >> when linking statically. These are also needed when linking dy

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Bob Friesenhahn
On Tue, 25 Aug 2009, Anssi Hannula wrote: I think the proper way to solve this is to not link to dependency_libs when linking dynamically on systems where it is not needed to link to those. I haven't seen any correctly working patches that implement this. Relying on the OS's implicit dependenc

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Paul Wise
On Tue, 2009-08-25 at 17:46 +0300, Anssi Hannula wrote: > I don't understand what the proposed dependency_libs_shared would be for. > > dependency_libs contains the dependencies of a library. These are needed > when linking statically. These are also needed when linking dynamically, > but only on

Re: removal of .la files from Debian and a possible solution to the libtool shared libs problem

2009-08-25 Thread Anssi Hannula
Paul Wise wrote: > Just so you know, Debian is removing all .la files where possible or > emptying dependency_libs where not possible: > > http://lists.debian.org/debian-devel/2009/08/msg00783.html > http://lists.debian.org/debian-release/2009/08/threads.html#00217 > http://lists.debian.org/debian