On 2013-04-24 22:40-0700 Alan W. Irwin wrote:

> To look for meaningful error messages in those tests, I ran
>
> find ../comprehensive_test_disposeable/ -name "*.out*" | \
> xargs grep -i error |grep -v test.error
>
> That shows there are linking errors for the case of the static library
> build + traditional (Make + pkg-config) build of the installed
> examples.  This used to work fine, but I guess the Debian wheezy
> toolchain just doesn't handle this case properly any more (or takes
> more care with linking of code generated from a variety of languages).
> Note, I got the same bad results for this case when using
> cmake-2.8.10.2 so this is not a cmake regression.

As of revision 12309 I have a solution that has completely gotten rid
of those build errors (on my Debian wheezy platform) for the above
case.  The solution is to put the location (in -L, -l form) of the C++
library associated with the C++ compiler in the list of library
options contained in the plplotd.pc file configured and installed by
our build system for the case where BUILD_SHARED_LIBS is not true,
i.e., for the unique static libraries case where the plplotd library
turns into a static C++ library (because of the C++ device driver code
that is part of the library in that case).

@Andrew: I have mentioned some CMake logic caveats concerning finding
the C++ library associated with the C++ compiler in the commit message
for revision 12309.  For example, for compilers other than GCC C++
compiler the plplotd.pc file will have incomplete linking information
(just as before revision 12309), but everything else should work fine.
If you have an idea to make the CMake code that attempts to find the
C++ library associated with the C++ compiler more general, please go
ahead and make further changes in src/CMakeLists.txt.

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
__________________________

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to