SEGFAULT from importing _minpack.so (was Re: [SciPy-user] install problem on Mandrake-8.2)
Gerard Vermeulen
gvermeul at polycnrs-gre.fr
Thu May 23 05:01:04 EDT 2002
On Thursday 23 May 2002 09:41, you wrote:
> On Thu, 23 May 2002, Gerard Vermeulen wrote:
> > > The next step would be playing around with
> > >
> > > scipy/optimize/_minpackmodule.c
> >
> > <snip>
> >
> > I ended up disabling all methods in minpack_module_methods[]
> > except "_chkder" in _minpackmodule.c
> >
> > In __minpack.h, I commented out everything, except
> > for minpack_chker(). In this function I had to comment out
> > the two calls to CHKDER().
> >
> > Without the calls to CHKDER() importing succeeds and
> > with the calls it fails.
>
> Can you try the following prototype for chkder:
>
> void CHKDER(int*,int*,double*,double*,int*,double*,double*,int*,double*);
>
> instead of
>
> void CHKDER();
>
> ?
Forgot to tell you, I had changed the prototype already.
>
> > So, it looks like if there is something wrong with
> > calling Fortran from C in this module.
> >
> > If there is nothing wrong with the compiler/linker flags
> > produced by setup.py, there is something wrong with
> > Mandrake's gcc/g77-2.96.
>
> If you do
>
> f2py -c -m fun minpack/chkder.f minpack/dpmpar.f
> python -c 'import fun'
>
> what happens? SEGFAULT? Nothing?
>
SEGFAULT
Gerard
More information about the SciPy-User
mailing list