tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lapack: undefined symbol pow_{ci,dd,di,hh,ii,ri,zi,zz}



On Wednesday 11 June 2008 18:19:18 Mark Davies wrote:
> On Wednesday 11 June 2008 19:27:07 Berndt Josef Wulf wrote:
> > It used to work but stopped after upgrading to pkgsrc-current.
> > I see pow_zi is part of libF77, but it doesn't appear in the
> > list of linked libraries;
> >
> > /usr/pkg/lib/liblapack.so:
> >         -lc.12 => /usr/lib/libc.so.12
> >
> > Any ideas?
>
> Well I haven't tested this but I just stumbled over something
> similar with blas.
>
> What happens if you change the bit of lapack/patches/patch-aa
> that reads: +       ${LIBTOOL} --mode=link --tag=CC ${FC} -o
> ../$(LAPACKLIB) \ +       $(ALLOBJ:.o=.lo) -rpath ${PREFIX}/lib
> -version-info 3:0
>
> to read:
> +       ${LIBTOOL} --mode=link --tag=F77 ${FC} -o ../$(LAPACKLIB)
> \ +       $(ALLOBJ:.o=.lo) -rpath ${PREFIX}/lib -version-info 3:0
>
> ie change the --tag from CC to F77 otherwise ld is used to link
> the library and the fortran support libraries aren't linked in.
>
> cheers
> mark

G'day,

this solved the original problem, but there is new trouble on the 
horizon which appears to be caused by the f2c package see below:

 File "/usr/pkg/lib/python2.5/site-packages/numpy/linalg/linalg.py", 
line 29, in <module>
    from numpy.linalg import lapack_lite
ImportError: /usr/pkg/lib/libF77.so.0: Undefined PLT symbol "MAIN__" 
(symnum = 164)

This what I found in the f2c "readme" file:
<quote>
libf77  Library of non I/O support routines the generated C may 
need. Fortran main programs result in a C function named MAIN__ 
that is meant to be invoked by the main() in libf77.
</quote>

cheerio Berndt


Home | Main Index | Thread Index | Old Index