[f2py] wrapping slicot

Pearu Peterson pearu@cens.ioc.ee
Mon, 4 Mar 2002 19:23:18 +0200 (EET)


On Mon, 4 Mar 2002, Nils Wagner wrote:

> > slicotmodule.c:461: redeclaration of `dwork'
> > slicotmodule.c:461: `dwork' previously declared here
> > slicotmodule.c:461: redeclaration of `dwork'
> > slicotmodule.c:461: `dwork' previously declared here
> > slicotmodule.c: In function `cb_fcn_in_md03bd__user__routines':
> > slicotmodule.c:461: prior parameter's size depends on `ldjsav_cb_capi'
> > make: *** [slicotmodule.o] Error 1

> As far as I know, some SLICOT example programs use non-standard Fortran
> PARAMETER statements (with INTRINSIC functions (MAX, MIN) calls).
> There seems to be no problems with Sun f77 or Digital/Compaq
> Visual Fortran compilers. 

The errors above come from C complier. So, let me start from that. Though,
you might follow Nils's advice about slicot.

So, what f2py version are you using? If it is very old, then I suggest
upgrading and regenerating slicot.pyf file (there are major differences
regarding multi-dimensional arrays). Also, using Makefile to build
extension modules is not supported anymore. Either use
  f2py -c ..
or write setup.py file that uses scipy_distutils.

Also, a relevant fragment from the .pyf file would be useful to see in
order to find out what is causing these errors.

Regards,
	Pearu