Hello ncl-talk:
Kip Smith brought this to the attention of the NCL Development Team:
> dual Opteron workstation running SuSE Linux 9.3 so I downloaded
> the latest versions of NCAR graphics and NCL (64 bit for PG FORTRAN).
> NCAR
> graphics seems to work OK. I tried to create a shared object file for
> running
> some NCL code and this is what happened:
>
> /usr/local/ncarg/bin/WRAPIT -pg ephusubs.f
>
> WRAPIT Version: 041106
> /usr/pgi/linux86-64/6.0/bin/pgf90
> COMPILING ephusubs.f
> LINKING
> /usr/bin/ld: WRAPIT.o: relocation R_X86_64_32 against `a local symbol'
> can not
> be used when making a shared object; recompile with -fPIC
> WRAPIT.o: could not read symbols: Bad value
> END WRAPIT
>
> Is the problem that WRAPIT did not compile with -fPIC or that the NCL
> binaries
> were not compiled with -fPIC or is it something else?
NCL binaries are compiled with the proper option (in this case, -fPIC)
so as to create code suitable for dynamic linking, meaning
that NCL can support the loading of shared objects at run-time. Please
see:
http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/
NclExtend.shtml#SharedObject
for more information and examples.
In this particular instance, the NCL binary was not created with
necessary link options to support loading of shared objects. This has
now been done for the platform/OS/compiler in question, noted above.
Please visit the Earth System Grid website:
to download the latest, updated release for NCL for 64-bit Linux hosts
with x86_64 chips (created with the Portland Group compilers).
-Rick.
---- Rick Grubin NCAR/CISL/SCD/VETS Visualization + Enabling Technologies grubin@ucar.edu 303.497.1832_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Mon Sep 12 2005 - 13:56:55 MDT