I recently updated my Ada compiler from the 2010 GPL version provided by Adacore (the commercial source) to the 2011 version and encountered a rather odd problem when trying to link the Ada bindings into my own project.
GCC Ada aka GNAT and its tools provide two systems of building stuff--the older and still-used one uses the gnatmake and related commands, providing a somewhat traditional way of passing arguments on to the gcc tools. The other system is called GPR (Gnat PRoject), gprbuild, and one writes some relatively sane-looking files that do the same thing as gnatmake et al and more. This is the system that I have used, in very simple ways. I don't know if what I'll describe in a bit is necessary for gnatmake but is seems so for gprbuild. It is a complete mystery why this worked for the 2010 tools at all without the following change, which I believe we should incorporate into the PLplot build. It's really simple. Copy /usr/local/plplot/lib/libplplotadad.0.0.0.dylib /usr/local/plplot/lib/libplplotadad.0.dylib /usr/local/plplot/lib/libplplotadad.dylib to /usr/local/plplot/lib/ada/adalib/plplotadad where /usr/local/plplot is my installation directory. That's it. When I do this manually, my personal stuff builds using the 2011 tools, but if I don't do it the 2011-tool build fails. There are some other files in the target directory, ending in .ali--these should remain--the .dylib needs to be in the same folder as these .ali. I suppose another directory would suffice as long as the .dylib and .alis are in it. Jerry P.S. I am fighting another issue with building PLplot that might be related to my recent update of OS X from 10.6.x to 10.7.x, but I think this is an orthogonal issue to the above and not Ada-related. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel