[SciPy-dev] Compiling pysparse from the sandbox

Bill Baxter wbaxter@gmail....
Wed Apr 18 13:53:22 CDT 2007


I think the name changed from CONTIGUOUS to NPY_CONTIGUOUS (or
NPY_C_CONTIGUOUS if you want to be a little more explicit).  Or try
including numpy/noprefix.h instead of whatever it is including.
That's apparently a compatibility header.

So is this pysparse in the sandbox the same pysparse as here?
   http://sourceforge.net/project/showfiles.php?group_id=101403

Has it been further developed/fixed in the sandbox?

--bb

On 4/18/07, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
> Neilen Marais wrote:
> > Hi,
> >
> > I tried compiling pysparse from the sandbox in a recent svn SciPy, but I
> > get the following compiler error:
> >
> > In file included from Lib/sandbox/pysparse/src/spmatrixmodule.c:17:
> > Lib/sandbox/pysparse/src/ll_mat.c: In function 'LLMat_matvec_transp':
> > Lib/sandbox/pysparse/src/ll_mat.c:760: error: 'CONTIGUOUS' undeclared (first use in this function)
> > Lib/sandbox/pysparse/src/ll_mat.c:760: error: (Each undeclared identifier is reported only once
> > Lib/sandbox/pysparse/src/ll_mat.c:760: error: for each function it appears in.)
> > Lib/sandbox/pysparse/src/ll_mat.c: In function 'LLMat_matvec':
> > Lib/sandbox/pysparse/src/ll_mat.c:797: error: 'CONTIGUOUS' undeclared (first use in this function)
> > In file included from Lib/sandbox/pysparse/src/spmatrixmodule.c:18:
> > Lib/sandbox/pysparse/src/csr_mat.c: In function 'CSRMat_matvec_transp':
> > Lib/sandbox/pysparse/src/csr_mat.c:119: error: 'CONTIGUOUS' undeclared (first use in this function)
> > Lib/sandbox/pysparse/src/csr_mat.c: In function 'CSRMat_matvec':
> > Lib/sandbox/pysparse/src/csr_mat.c:146: error: 'CONTIGUOUS' undeclared (first use in this function)
> > In file included from Lib/sandbox/pysparse/src/spmatrixmodule.c:19:
> > Lib/sandbox/pysparse/src/sss_mat.c: In function 'SSSMat_matvec':
> > Lib/sandbox/pysparse/src/sss_mat.c:83: error: 'CONTIGUOUS' undeclared (first use in this function)
> > In file included from Lib/sandbox/pysparse/src/spmatrixmodule.c:17:
> > Lib/sandbox/pysparse/src/ll_mat.c: In function 'LLMat_matvec_transp':
> > Lib/sandbox/pysparse/src/ll_mat.c:760: error: 'CONTIGUOUS' undeclared (first use in this function)
> > Lib/sandbox/pysparse/src/ll_mat.c:760: error: (Each undeclared identifier is reported only once
> > Lib/sandbox/pysparse/src/ll_mat.c:760: error: for each function it appears in.)
> > Lib/sandbox/pysparse/src/ll_mat.c: In function 'LLMat_matvec':
> > Lib/sandbox/pysparse/src/ll_mat.c:797: error: 'CONTIGUOUS' undeclared (first use in this function)
> > In file included from Lib/sandbox/pysparse/src/spmatrixmodule.c:18:
> > Lib/sandbox/pysparse/src/csr_mat.c: In function 'CSRMat_matvec_transp':
> > Lib/sandbox/pysparse/src/csr_mat.c:119: error: 'CONTIGUOUS' undeclared (first use in this function)
> > Lib/sandbox/pysparse/src/csr_mat.c: In function 'CSRMat_matvec':
> > Lib/sandbox/pysparse/src/csr_mat.c:146: error: 'CONTIGUOUS' undeclared (first use in this function)
> > In file included from Lib/sandbox/pysparse/src/spmatrixmodule.c:19:
> > Lib/sandbox/pysparse/src/sss_mat.c: In function 'SSSMat_matvec':
> > Lib/sandbox/pysparse/src/sss_mat.c:83: error: 'CONTIGUOUS' undeclared (first use in this function)
> > error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -fPIC -ILib/sandbox/pysparse/include/ -I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c Lib/sandbox/pysparse/src/spmatrixmodule.c -o build/temp.linux-x86_64-2.4/Lib/sandbox/pysparse/src/spmatrixmodule.o" failed with exit status 1
> >
> > Is this a known problem, or have I forgotten to install some development
> > library?  I'm running Ubuntu Edgy AMD64.
> >
> > Thanks
> > Neilen
> >
> >
> Hi Neilen,
>
> I just tried to install pysparse from the sandox.
> I can only confirm the failure.
>
>            Nils
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>


More information about the Scipy-dev mailing list