On 2012-05-10 00:59-0700 Jerry wrote:

>> Hi Jerry:
>>
>> I think the above change will screw up our installed Ada examples
>> build which exclusively uses the gnatmake approach.  So please test
>> the installed examples build with and without the above change to see
>> whether that hypothesis is correct.
>>
>> To remind you how to do such testing do your normal procedure
>> for building and installing PLplot.  Then
>> run cmake in an empty directory
>> with no options and with just a reference to the installed examples
>> tree like this:
>>
>> # insures initially empty build tree.
>> rm -rf test_install_build
>> mkdir test_install_build
>> cd test_install_build
>>
>> cmake /usr/local/plplot/share/plplot5.9.9/examples
>>
>> then
>>
>> make test_ada_psc
>>
>> That make command should work fine for an unmolested install, but if
>
> Hmm.... I did this
>
> cd /usr/local/dumpme
> rm -rf test_install_build
> mkdir test_install_build
> cd test_install_build
> cmake /usr/local/plplot/share/plplot5.9.9/examples
> make test_ada_psc
>
>
> and got this...
>
>
> Generate ada results for psc device
> Testing front-end ada
> x01
> /usr/local/plplot/share/plplot5.9.9/examples/test_ada.sh: line 32: 34044 
> Trace/BPT trap: 5       "$adadir"/x${index}${lang} -dev $device -o 
> "${OUTPUT_DIR}"/x${index}${lang}%n.$dsuffix $options 2> test.error 
> >|"${OUTPUT_DIR}"/x${index}${lang}_${dsuffix}.txt
> dyld: Library not loaded: @rpath/libgnat-2010.dylib
>  Referenced from: /usr/local/dumpme/test_install_build/./ada/x01a
>  Reason: image not found
> make[3]: *** [x01a.psc] Error 1
> make[2]: *** [CMakeFiles/test_ada_psc.dir/all] Error 2
> make[1]: *** [CMakeFiles/test_ada_psc.dir/rule] Error 2
> make: *** [test_ada_psc] Error 2
>
>
> I tried to supply the path to what I think it is asking for but I'm not sure 
> how to do that.

Hi Jerry:

I am not familiar with the Mac OS X platform, but from the message above
it looks to me like
the run-time loader that executes x01a is having trouble locating
libgnat-2010.dylib in your new installation.  Isn't there a standard
environment variable you can set (LD_LIBRARY_PATH works for Linux) to
help address such issues?

I assume you would get the same error for the core build system as
well, but to check that do a clean _core_ build of PLplot using
the cmake option, -DBUILD_TEST=ON

then run

make test_ada_psc

as above.  But this will be in the build tree of the core build rather
than the build tree of the installed examples.  Of course, if the
core build version works while the above installed example version
does not, then compare exact commands that are run in each case using

make VERBOSE=1 test_ada_psc

But I am virtually positive you will get the same result for core
build and installed examples build since virtually the same CMake code
is used in both cases.

By the way, the test_ada_psc target runs the Ada subset of what is
done for all language bindings and examples with the
test_noninteractive target.  And if I recall correctly you have run
that test_noninteractive target in the past with no issues.  Once this
current "run time loader cannot find Ada system library" issue is
addressed for your current Ada installation, I strongly encourage you
to run the test_noninteractive target (or at least the Ada subset of
that test with the target name "test_ada_psc") more often so that
_every_ system and PLplot change is tested right after the change
occurs (rather than days or months later when you have forgotten the
details of the change).

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
__________________________

------------------------------------------------------------------------------
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

Reply via email to