On Tue, 26 Sep 2006, Peter W. Draper wrote:
> > Now when the above compilation is repeated we see:
> >
> > /star/lib/libhdsf.so: undefined reference to `ems_mark_'
> > /star/lib/libhdsf.so: undefined reference to `ems_seti_'
> > /star/lib/libhdsf.so: undefined reference to `ems_setc_'
> > /star/lib/libhdsf.so: undefined reference to `ems_annul_'
> > /star/lib/libhdsf.so: undefined reference to `ems_rep_'
> > /star/lib/libhdsf.so: undefined reference to `ems_rlse_'
> > collect2: ld returned 1 exit status
> >
> > This is on an SL4.1 machine, with /usr/bin/f77.
> >
> > So does anyone have any ideas what I should be doing apart from mounting
> > the old distribution on selected machines? I imagine it's the whole
> > "-L/star/lib `hds_link`" that's no longer appropriate, so just wondering
> > what is?
>
> Actually "-L/star/lib `hds_link`" is the right thing to use, so there must
> be something else going wrong. Tried a test program and it seems the
> hds_link script is a little broken (I'll try to fix this for the next
> release). In the meanwhile you should use `hds_link` `ems_link`, so:
>
> % f77 -ffixed-line-length-132 -fno-second-underscore -I/star/include \
> trial_jet.f -L/star/lib `hds_link` `ems_link` -o trial_jet
Fixed that problem. Needed to make `ems_link Conly` conditional on whether
the hds Conly flag was specified.
Peter.
|