Hi Andrew:

Thanks for your additional tests of the -DNON_TRANSITIVE=ON case.

On 2011-11-25 09:51-0000 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 files from
> bindings/ada/CMakeFiles/plplotadad.dir/ and these reference C API
> functions. This seems odd to me so I don't know whether it is a "bug" or
> a feature. At the moment it looks like libplplotd would need to be
> explicitly linked in. I can't see how to do this though.  The gnat
> manpages are brief to say the least...

There is complete documentation of gnat in info form that you may need
to install on your Debian unstable system.

If it turns out that libplplotd really has to be directly linked by
the Ada examples, then I suggest you make the following change in
examples/ada/CMakeLists.txt to accomplish that:

target_link_libraries(${TARGET_NAME} plplotada${LIB_TAG})

==>

target_link_libraries(${TARGET_NAME} plplotada${LIB_TAG} plplot${LIB_TAG})

I think the above will just work, but if it doesn't because of some
limitation of our Ada language support you might also have to work
around that problem by changing the adalinkflags variable defined in
that file to specify the location of libplplotd in the two cases (core
build, and installed examples build).

> [....]Incidentally gdc works fine.

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 Debian unstable?  In other
words, do you get good results for the combination of
-DNON_TRANSITIVE=ON and -Dplplotdmd_SHARED=ON?

The second of those options forces a shared build of our D interface.
However, that breaks the build on Debian stable (with or without
-DNON_TRANSITIVE=ON) so all I can test here is Dplplotdmd_SHARED=OFF,
which forces a static D build.  For such static builds
-DNON_TRANSITIVE=ON effectively turns into a no-op (since the empty
LINK_INTERFACE_LIBRARIES property for targets is ignored for static
libraries).

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
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to