On Wed, 7 Jul 2004, Mark Taylor wrote:
> On Wed, 7 Jul 2004, Peter W. Draper wrote:
>
> > Hi Mark,
> >
> > I'm having problems linking ccdwish, which says:
> >
> > /loc/pwdc/pdraper/starlink_cvs/build/lib/libimg_adam.so:
> > undefined reference to `dat_cancl_'
> >
> > at first I thought this might be my problem, but it has stubbornly resisted
> > my attempts to get rid of it, so I've looked at this a little more deeply.
> >
> > The problem is that you are pulling in ADAM libraries into what is really
> > a standalone binary, in the past this has worked happily as using static
> > libraries doesn't require any ADAM parts to be resolved as they are not
> > actually referenced, now we're using shareable libraries that's changed.
> > So you need to create a "ccdpack_link" script to shadow
> > "ccdpack_link_adam" and use that when linking ccdwish (actually just not
> > including "img_link_adam" works, but that's a hack!).
>
> Peter,
>
> thanks for your investigations. I had seen this and I thought hacked
> round it - though in a try-anything-till-it-works fashion, so I'm not
> too surprised if it's fallen apart.
>
> I've followed your advice, so if you update and build again, I hope
> it will work OK.
Hi Mark,
good, that now builds all the way for me and installs, but no cigar just
yet. I ran the exercise scripts OK, but pairndf and ccdalign core dump. I
think this is because the monolith ifc files are not installed.
> As it stands I've done it in a slightly hacky way - ccdwish requires
> libpgplot_adam (since it's got GWM stuff in it) though not libpgpar_adam.
> I don't think this is an unreasonable requirement(?), but
> using the standard PGPLOT link scripts you can only have both
> (pgplot_link_adam) or neither (pgplot_link). So currently
> ccdpack_link just runs the output of pgplot_link through
> "sed 's/-lpgplot /-lpgplot_adam/'".
>
> This works but isn't all that pretty or robust. The Right Answer could be
> something like a new pgplot link script (pgplot_gwm_link) - opinions?
Haven't kept up with the details of this fight, but clearly there should
be a non-adam way of linking for PGPLOT and GWM. From a quick peek into
PGPLOT I'd say that the adam label is misused, really just meaning
"starlink", rather than having anything to do with the parameter system,
so what you suggest is about right (although following the trend of recent
changes this could also be done with an AST-like conditional flag for
pgplot_link, say -gwm).
Cheers,
Peter.
|