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.
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?
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|