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., libplplotd + all the libraries in
> lib).
That was actually pretty easy (revision 12036), and I have built and
run-time tested these changes both in the build tree and the
traditional installed examples tree (where pkg-config is used).
The pkg-config results for libplplot are still unsatisfactory because
the libfreetype2, libcsironn, libcsirocsa, and libqsastime compile and
link data are lumped in with plplotd.pc rather than removing that data
and relying on the existing freetype2.pc file and created separate
*.pc files for each of libcsironn, libcsirocsa, and libqsastime (which
could be ignored for the NON_TRANSITIVE case) to provide the required
data. I will leave it to someone else to implement that solution so I
can move on to further languages.
Here are the current ld -u results for the C examples:
Build tree:
software@raven> ldd -u examples/c/x01c
Unused direct dependencies:
/home/software/plplot_svn/HEAD/build_dir/src/libplplotd.so.11
/lib/libm.so.6
These warnings are false positives (similar to what happens for the
C++ examples) so this result implies perfection, i.e., no unused
direct dependencies.
Traditional installed C examples tree:
software@raven> ldd -u c/x01c
Unused direct dependencies:
/home/software/plplot_svn/installcmake/lib/libplplotd.so.11
/usr/lib/libltdl.so.7
/lib/libdl.so.2
/lib/libm.so.6
/home/software/plplot_svn/installcmake/lib/libcsirocsa.so.0
/home/software/plplot_svn/installcmake/lib/libcsironn.so.0
/home/software/qhull/install/lib/libqhull.so.5
/home/software/plplot_svn/installcmake/lib/libqsastime.so.0
/usr/lib/libfreetype.so.6
libplplotd.so and libm.so are false positives, but the rest are true
unused direct dependencies for the C examples. We cannot do anything
about libltdl.so and libdl.so since there is no *.pc files for those
libraries, but the rest can be eliminated using the solution suggested
above if someone is sufficiently motivated to implement it.
I will now move on to other languages to see how far I can get with
non-transitive linking.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel