Re: NCARG Linker Problems

From: Brian R. Smith <brs_at_nyahnyahspammersnyahnyah>
Date: Tue, 20 Feb 2007 19:09:58 -0500

I looked in config/Projects, and the following ymake directives show this:

#ifdef BuildShared
NCARGCLIB = -lNGc
NCARGLIB = -lNGllu
CNCARGLIB = -lNGlluC
NCARGGKSLIB = -lNGgks
NGMATHLIB = -lNGmath
CGMLIB = -lNGcgm
NCARGRASLIB = -lNGras
HLULIB = -lNGhlu
NGOLIB = -lNGgo
XCBLIB = -lXcb
NFPLIB = -lnfp
NCLLIB =
NCLAPILIB = -lNGncl

I will disable BuildShared and see what happens (I defined that in
config/Site.local). Are there any known bugs with building the shared
libraries? Not to nit-pick, but why does the distribution default to a
different naming scheme for them (I know that I never modified these
values intentionally) since the linker should negotiate that
automatically with the -static or -shared flags?

-Brian

Rick Grubin wrote:
> Hi Brian
>
>> Can anyone tell me what I am missing on my linker line for this to
>> happen?
>>
>> pgf90 -fPIC -O
>> -Wl,-rpath,../../../.././shared:/usr/local/apps/ncarg-4.4.1/lib
>> -L../../../.././shared -o ezmapdemo EzmapDemo.o -lNGllu -lNGgks -lNGc
>> -L/usr/local/apps/ncarg-4.4.1/lib -L/usr/X11R6/lib64
>> -L/usr/local/apps/hdf4.2r1/lib -L/usr/local/apps/szip-2.0/lib -lXt
>> -lSM -lICE -lz -lX11
>
> In looking at the above, it appears that somehow NCAR Graphics
> libraries have been renamed to something different than their names as
> defined by the standard configuration/make process. Specifically, you
> have:
>
> "-lNGllu" (<---- is this a typo? There is no library with the "llu"
> name in the NCAR Graphics distribution)
> "-lNGgks"
> "-lNGc"
>
> These libraries are built as:
>
> libncarg_gks.a
> libncarg_c.a
>
> In addition, these libraries are built as part of NCAR Graphics:
>
> libblas.a
> libcgm.a
> libfftpack5_dp.a
> liblapack.a
> libncarg.a
> libncarg_ras.a
> libngmath.a
> libsphere3.1_dp.a
>
> What does an "ls" listing of your directory
> /usr/local/apps/ncarg-4.4.1/lib show, in terms of library names?
>
> It looks like, given the compile line above, that somehow names have
> been mangled. The libraries to link against should look like:
>
> "-lncarg_gks"
> "-lncarg_c"
>
> and so forth.
>
>
>> Where are the following routines located?
>>
>> GKS_GetPIXdev
>> GKS_GetPDFdev
>> curvs1_
>> curvs2_
>> gspmci_
>> gclrwk_
>> gpl_
>> gqops_
>> gqnt_
>
> All of these symbols are located in the libraries noted above (various
> ones).
>
> If you saved a copy of the output of the build process for NCAR
> Graphics, have a look through there for where names may have been
> inadvertently changed. Please feel free to email me a copy if you like
> and I can have a look.
>
> -Rick.
> ----
> Rick Grubin NCAR/CISL/VETS
> Visualization + Enabling Technologies
> grubin_at_ucar.edu 303.497.1832
>

_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Tue Feb 20 2007 - 17:09:58 MST

This archive was generated by hypermail 2.2.0 : Sun Apr 01 2007 - 17:29:32 MDT