SEGFAULT from importing _minpack.so (was Re: [SciPy-user] install problem on Mandrake-8.2)

Pearu Peterson pearu at cens.ioc.ee
Thu May 23 03:41:33 EDT 2002


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();

?

> 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?

Pearu




More information about the SciPy-User mailing list