Re: [Plplot-devel] Unnecessary library linkage

2012-02-10 Thread Alan W. Irwin
To all PLplot developers and testers lurking on this list: I have made an important change to the way we link libraries with revision 12165 so please pay close attention to this message. I am reviving this thread since non transitive linking is essential to avoid excessive linking and the associa

Re: [Plplot-devel] Unnecessary library linkage

2012-01-05 Thread Orion Poplawski
On 01/05/2012 06:02 AM, Andrew Ross wrote: > On Wed, Jan 04, 2012 at 10:29:02AM -0800, Alan Irwin wrote: >> Hi Orion: >> >> Sorry your previous post fell through the cracks. I think Andrew is the >> best guy to evaluate your patch so I won't comment on that, but >> I will respond to two of your qu

Re: [Plplot-devel] Unnecessary library linkage

2012-01-05 Thread Orion Poplawski
On 01/04/2012 07:30 PM, Alan W. Irwin wrote: > On 2012-01-04 14:02-0700 Orion Poplawski wrote: > >> Hmm, examples build okay now, but I still have the rpaths. > > Hi Orion: > > Just to review, rpath should be set for all languages and all > examples, libraries, and dlls in the build tree regardless

Re: [Plplot-devel] Unnecessary library linkage

2012-01-05 Thread Andrew Ross
On Wed, Jan 04, 2012 at 10:29:02AM -0800, Alan Irwin wrote: > Hi Orion: > > Sorry your previous post fell through the cracks. I think Andrew is the > best guy to evaluate your patch so I won't comment on that, but > I will respond to two of your questions not involving the patch. > Orion, I've

Re: [Plplot-devel] Unnecessary library linkage

2012-01-04 Thread Alan W. Irwin
On 2012-01-04 14:02-0700 Orion Poplawski wrote: > Hmm, examples build okay now, but I still have the rpaths. Hi Orion: Just to review, rpath should be set for all languages and all examples, libraries, and dlls in the build tree regardless of the value of USE_RPATH. In contrast rpath should be/n

Re: [Plplot-devel] Unnecessary library linkage

2012-01-04 Thread Orion Poplawski
On 01/04/2012 12:23 PM, Alan W. Irwin wrote: > On 2012-01-04 12:01-0700 Orion Poplawski wrote: > >> On 01/04/2012 11:29 AM, Alan W. Irwin wrote: >>> Hi Orion: >>> >>> Sorry your previous post fell through the cracks. I think Andrew is the >>> best guy to evaluate your patch so I won't comment on th

Re: [Plplot-devel] Unnecessary library linkage

2012-01-04 Thread Alan W. Irwin
On 2012-01-04 12:01-0700 Orion Poplawski wrote: > On 01/04/2012 11:29 AM, Alan W. Irwin wrote: >> Hi Orion: >> >> Sorry your previous post fell through the cracks. I think Andrew is the >> best guy to evaluate your patch so I won't comment on that, but >> I will respond to two of your questions

Re: [Plplot-devel] Unnecessary library linkage

2012-01-04 Thread Orion Poplawski
On 01/04/2012 11:29 AM, Alan W. Irwin wrote: Hi Orion: Sorry your previous post fell through the cracks. I think Andrew is the best guy to evaluate your patch so I won't comment on that, but I will respond to two of your questions not involving the patch. On 2012-01-04 09:12-0700 Orion Poplaws

Re: [Plplot-devel] Unnecessary library linkage

2012-01-04 Thread Alan W. Irwin
Hi Orion: Sorry your previous post fell through the cracks. I think Andrew is the best guy to evaluate your patch so I won't comment on that, but I will respond to two of your questions not involving the patch. On 2012-01-04 09:12-0700 Orion Poplawski wrote: >> plplot-ocaml.i686: E: binary-or-s

Re: [Plplot-devel] Unnecessary library linkage

2012-01-04 Thread Orion Poplawski
On 11/30/2011 10:49 AM, Orion Poplawski wrote: > On 11/30/2011 07:30 AM, Andrew Ross wrote: >> On Wed, Nov 30, 2011 at 11:40:42AM +, Andrew Ross wrote: >>> >>> I have fixed all the issues I have found. Still outstanding is Orions >>> fortran issue (I don't see this) and the copyright issue. > >

Re: [Plplot-devel] Unnecessary library linkage

2011-12-01 Thread Andrew Ross
On Thu, Dec 01, 2011 at 09:45:20AM +, Andrew Ross wrote: > > To start with I have just copied the Debian LGPL-2 (not 2.1) license to > replace the current COPYING.LIB. This does not change the terms of the > license at all, merely the FSF address. Switching to version 2.1 would > result in a s

Re: [Plplot-devel] Unnecessary library linkage

2011-12-01 Thread Andrew Ross
On Wed, Nov 30, 2011 at 11:38:05AM -0800, Alan Irwin wrote: > On 2011-11-30 11:11- Andrew Ross wrote: > > > On Tue, Nov 29, 2011 at 04:54:27PM -0700, Orion Poplawski wrote: > >> plplot.i686: W: file-not-utf8 /usr/share/doc/plplot-5.9.9/README.release > >> plplot.i686: E: incorrect-fsf-address

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Orion Poplawski
On 11/30/2011 11:33 AM, Alan W. Irwin wrote: > On 2011-11-30 15:31+0100 Arjen Markus wrote: > >> Hi Orion, >> >> On 2011-11-30 15:24, Orion Poplawski wrote: >> >>> >>> Actually, I don't have a big opinion on it, but I do think that the mod >>> and library should get installed into the examples/f95

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Alan W. Irwin
On 2011-11-30 11:11- Andrew Ross wrote: > On Tue, Nov 29, 2011 at 04:54:27PM -0700, Orion Poplawski wrote: >> plplot.i686: W: file-not-utf8 /usr/share/doc/plplot-5.9.9/README.release >> plplot.i686: E: incorrect-fsf-address >> /usr/share/doc/plplot-5.9.9/COPYING.LIB >> plplot-octave.i686: E: i

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Alan W. Irwin
On 2011-11-30 15:31+0100 Arjen Markus wrote: > Hi Orion, > > On 2011-11-30 15:24, Orion Poplawski wrote: > >> >> Actually, I don't have a big opinion on it, but I do think that the mod >> and library should get installed into the examples/f95 directory instead >> of the main system locations. >> >

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Orion Poplawski
On 11/30/2011 07:30 AM, Andrew Ross wrote: On Wed, Nov 30, 2011 at 11:40:42AM +, Andrew Ross wrote: I have fixed all the issues I have found. Still outstanding is Orions fortran issue (I don't see this) and the copyright issue. Here's what I have with svn12076: make[1]: Entering directo

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Arjen Markus
Hi Orion, On 2011-11-30 15:24, Orion Poplawski wrote: > > Actually, I don't have a big opinion on it, but I do think that the mod > and library should get installed into the examples/f95 directory instead > of the main system locations. > Yes, I agree with that. I have not looked at Alan's c

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Andrew Ross
On Wed, Nov 30, 2011 at 11:40:42AM +, Andrew Ross wrote: > > I have fixed all the issues I have found. Still outstanding is Orions > fortran issue (I don't see this) and the copyright issue. Building the full debian packages using svn and -DNON_TRANSITIVE=ON produces the following linkage rel

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Orion Poplawski
On 11/30/2011 12:41 AM, Arjen Markus wrote: > Hi Orion, > > I introduced this library to be able to use more Fortran 95 features > than we had before in the examples. I am not sure what the best way > is to build this library - I suppose it can be a shared object if > PLplot is built as a setof sha

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Andrew Ross
On Wed, Nov 30, 2011 at 11:11:47AM +, Andrew Ross wrote: > On Tue, Nov 29, 2011 at 04:54:27PM -0700, Orion Poplawski wrote: > > On 11/28/2011 11:56 PM, Alan W. Irwin wrote: > >> So this should complete my NON_TRANSITIVE changes to the build system. > >> > >> Orion and Andrew: I hope this effort

Re: [Plplot-devel] Unnecessary library linkage

2011-11-30 Thread Andrew Ross
On Tue, Nov 29, 2011 at 04:54:27PM -0700, Orion Poplawski wrote: > On 11/28/2011 11:56 PM, Alan W. Irwin wrote: >> So this should complete my NON_TRANSITIVE changes to the build system. >> >> Orion and Andrew: I hope this effort has been worth it and greatly >> reduces packaging warnings you have b

Re: [Plplot-devel] Unnecessary library linkage

2011-11-29 Thread Arjen Markus
Hi Orion, I introduced this library to be able to use more Fortran 95 features than we had before in the examples. I am not sure what the best way is to build this library - I suppose it can be a shared object if PLplot is built as a setof shared objects. In any case, its current state does not re

Re: [Plplot-devel] Unnecessary library linkage

2011-11-29 Thread Orion Poplawski
On 11/29/2011 07:05 PM, Alan W. Irwin wrote: >> Fatal Error: Can't open module file 'plf95demolib.mod' for reading at >> (1): No such file or directory >> >> This file does not appear to have been installed. > > Oops. I forgot to do an svn update to bring in Arjen's f95 changes > before I did my co

Re: [Plplot-devel] Unnecessary library linkage

2011-11-29 Thread Orion Poplawski
On 11/29/2011 07:05 PM, Alan W. Irwin wrote: Hi Orion: Thanks for your help. On 2011-11-29 16:54-0700 Orion Poplawski wrote: plplot-libs.i686: W: unused-direct-shlib-dependency /usr/lib/libplplotd.so.11.0.0 /lib/libdl.so.2 This appears to come it from cmake's FindLTDL.cmake and LTDL_LIBRARIE

Re: [Plplot-devel] Unnecessary library linkage

2011-11-29 Thread Alan W. Irwin
Hi Orion: Thanks for your help. On 2011-11-29 16:54-0700 Orion Poplawski wrote: > On 11/28/2011 11:56 PM, Alan W. Irwin wrote: >> So this should complete my NON_TRANSITIVE changes to the build system. >> >> Orion and Andrew: I hope this effort has been worth it and greatly >> reduces packaging

Re: [Plplot-devel] Unnecessary library linkage

2011-11-29 Thread Orion Poplawski
On 11/28/2011 11:56 PM, Alan W. Irwin wrote: So this should complete my NON_TRANSITIVE changes to the build system. Orion and Andrew: I hope this effort has been worth it and greatly reduces packaging warnings you have been getting on both Fedora and Debian concerning overlinking. Thanks for t

Re: [Plplot-devel] Unnecessary library linkage

2011-11-28 Thread Alan W. Irwin
On 2011-11-26 14:20-0800 Alan W. Irwin wrote: > With one exception (the comprehensive test for the static build case) > I have completed the above as of revision 12055. Therefore, please > test (for the -DENABLE_DYNDRIVERS=OFF and also default > -DENABLE_DYNDRIVERS=ON cases) with recent Linux dis

Re: [Plplot-devel] Unnecessary library linkage

2011-11-27 Thread Andrew Ross
On Sun, Nov 27, 2011 at 01:06:10PM -0800, Alan Irwin wrote: > Hi Andrew: > > On 2011-11-27 20:18- Andrew Ross wrote: > > > On Fri, Nov 25, 2011 at 03:38:53PM -0800, Alan Irwin wrote: > >> By default D is compiled statically because the shared D build is > >> broken on Debian stable because of

Re: [Plplot-devel] Unnecessary library linkage

2011-11-27 Thread Alan W. Irwin
Hi Andrew: On 2011-11-27 20:18- Andrew Ross wrote: > On Fri, Nov 25, 2011 at 03:38:53PM -0800, Alan Irwin wrote: >> By default D is compiled statically because the shared D build is >> broken on Debian stable because of a bug in D support on that >> platform. Has that bug been fixed for Debi

Re: [Plplot-devel] Unnecessary library linkage

2011-11-27 Thread Andrew Ross
On Fri, Nov 25, 2011 at 03:38:53PM -0800, Alan Irwin wrote: > Hi Andrew: > > Thanks for your additional tests of the -DNON_TRANSITIVE=ON case. > > On 2011-11-25 09:51- Andrew Ross wrote: > > > Ada also doesn't work, although the situation is more complicated. I > > don't understand enough ab

Re: [Plplot-devel] Unnecessary library linkage

2011-11-26 Thread Alan W. Irwin
On 2011-11-24 18:04-0800 Alan W. Irwin wrote: > My remaining ToDo list for this project is to complete Orion's list of > libraries (i.e., do the NON_TRANSITIVE implementation for > libplplotwxwidgetsd and libplplotqtd); fix the now broken static build > (by adding the --static option to pkg-config

Re: [Plplot-devel] Unnecessary library linkage

2011-11-25 Thread Alan W. Irwin
Hi Andrew: Thanks for your additional tests of the -DNON_TRANSITIVE=ON case. On 2011-11-25 09:51- Andrew Ross wrote: > Ada also doesn't work, although the situation is more complicated. I > don't understand enough about ada, but it appears that building the > examples is linking in the .o fi

Re: [Plplot-devel] Unnecessary library linkage

2011-11-25 Thread Andrew Ross
On Thu, Nov 24, 2011 at 06:04:02PM -0800, Alan Irwin wrote: > On 2011-11-24 12:11-0800 Alan W. Irwin wrote: > > > I will now move on [from C and C++] to other languages to see how far I can > > get with > > non-transitive linking. > > As of revision 12045 I have gotten pretty far. I have comple

Re: [Plplot-devel] Unnecessary library linkage

2011-11-24 Thread Alan W. Irwin
On 2011-11-24 12:11-0800 Alan W. Irwin wrote: > I will now move on [from C and C++] to other languages to see how far I can > get with > non-transitive linking. As of revision 12045 I have gotten pretty far. I have completed a NON_TRANSITIVE implementation (both for CMake and our *.pc files use

Re: [Plplot-devel] Unnecessary library linkage

2011-11-24 Thread Andrew Ross
On Thu, Nov 24, 2011 at 10:17:42AM -0800, Alan Irwin wrote: > On 2011-11-24 14:24- Andrew Ross wrote: > > > With Ubunutu 10.04 LTS (from last year) example 17 compiles fine with > > -DNON_TRANSITIVE=ON. With the latest Debian unstable I get the same > > error as Orion. This is clearly a featur

Re: [Plplot-devel] Unnecessary library linkage

2011-11-24 Thread Alan W. Irwin
On 2011-11-24 10:17-0800 Alan W. Irwin wrote: > Hi Andrew: > > I am going to leave it to you to correct x17.cc in case there are > more issues Debian unstable detects with the C++ examples. > > Today, I plan to expand use of NON_TRANSITIVE to languages other than > C++. I will start with C (i.e.,

Re: [Plplot-devel] Unnecessary library linkage

2011-11-24 Thread Alan W. Irwin
On 2011-11-24 14:24- Andrew Ross wrote: >>> Apparently that error is caught on Fedora but not Debian stable for >>> reasons I don't understand. I wonder if it is also caught on >>> Debian testing, recent Ubuntu, etc., i.e., I wonder if Debian stable >>> is out of step with modern distribution

Re: [Plplot-devel] Unnecessary library linkage

2011-11-24 Thread Andrew Ross
On Thu, Nov 24, 2011 at 01:16:06AM -0800, Alan Irwin wrote: > On 2011-11-24 07:37- Andrew Ross wrote: > > >> Orion, could you answer the question that occurred by one of the > >> posters in the "transitive linking topics" thread on the CMake list > >> about why rpmlint is complaining about thi

Re: [Plplot-devel] Unnecessary library linkage

2011-11-24 Thread Alan W. Irwin
On 2011-11-24 07:37- Andrew Ross wrote: >> Orion, could you answer the question that occurred by one of the >> posters in the "transitive linking topics" thread on the CMake list >> about why rpmlint is complaining about this "formal" overlinking >> issue? I responded at the time by some spec

Re: [Plplot-devel] Unnecessary library linkage

2011-11-23 Thread Alan W. Irwin
On 2011-11-23 19:27-0800 Alan W. Irwin wrote: > Here are my further plans: > > Implement the NON_TRANSITIVE option for our build system that will > drop transitive linking for the CMake case and replace Requires: by > Requires.private: for the pkg-config case. This option will be > experimental an

Re: [Plplot-devel] Unnecessary library linkage

2011-11-23 Thread Alan W. Irwin
On 2011-11-23 17:48-0700 Orion Poplawski wrote: Hi Orion: Thanks for those tests. Let's start with C++ to try and understand what is going on in that case. > > /usr/lib/ccache/c++ x17.cc -o x17 `pkg-config --cflags --libs plplotd-c++` > /usr/bin/ld: /tmp/ccUpkDBH.o: undefined reference to symbo

Re: [Plplot-devel] Unnecessary library linkage

2011-11-23 Thread Orion Poplawski
On 11/23/2011 04:52 PM, Orion Poplawski wrote: > On 11/23/2011 01:06 PM, Alan W. Irwin wrote: >> On 2011-11-23 08:48-0700 Orion Poplawski wrote: >> >>> Don't forget about the pkg-config issue as well. >>> >> >> The pkg-config man page gives the reason why we get transitive linking >> in that case:

Re: [Plplot-devel] Unnecessary library linkage

2011-11-23 Thread Orion Poplawski
On 11/23/2011 01:06 PM, Alan W. Irwin wrote: > On 2011-11-23 08:48-0700 Orion Poplawski wrote: > >> Don't forget about the pkg-config issue as well. >> > > The pkg-config man page gives the reason why we get transitive linking > in that case: > > Requires: > This is a comma-separated list of packag

Re: [Plplot-devel] Unnecessary library linkage

2011-11-23 Thread Alan W. Irwin
On 2011-11-23 08:48-0700 Orion Poplawski wrote: >> Meanwhile, could you give me a complete list of PLplot libraries which >> generate the rpmlint warnings about unused direct dependencies? > > Attached. Hi Orion: Thanks for that. I was concerned that rpmlint would complain about our driver plug

Re: [Plplot-devel] Unnecessary library linkage

2011-11-23 Thread Orion Poplawski
On 11/23/2011 02:35 AM, Alan W. Irwin wrote: Hi Orion: Thanks for reporting this issue. More below. On 2011-11-22 16:00-0700 Orion Poplawski wrote: ldd without any options just lists all direct and indirect links which doesn't tell you anything about overlinking. Instead, use the -u option

Re: [Plplot-devel] Unnecessary library linkage

2011-11-23 Thread Alan W. Irwin
Hi Orion: Thanks for reporting this issue. More below. On 2011-11-22 16:00-0700 Orion Poplawski wrote: > In my Fedora packages, the various language binding libraries are linked as > follows: > > # ldd /usr/lib/libplplotcxxd.so > linux-gate.so.1 => (0x00fbe000) > libplplotd.so.

[Plplot-devel] Unnecessary library linkage

2011-11-22 Thread Orion Poplawski
In my Fedora packages, the various language binding libraries are linked as follows: # ldd /usr/lib/libplplotcxxd.so linux-gate.so.1 => (0x00fbe000) libplplotd.so.11 => /usr/lib/libplplotd.so.11 (0x48cb) libltdl.so.7 => /usr/lib/libltdl.so.7 (0x499d1000) l