[Numpy-discussion] CVS - built can't find package directory

Sebastian Haase haase at msg.ucsf.edu
Tue Dec 2 13:57:03 CST 2003


> CVS builds fine for me with gcc-3.2.2.  I don't have gcc-2.95 anymore.
> I built numarray yesterday with Sun cc so I don't think it's a compiler
> issue.
>
> Looking at the code in question,  it is fairly new (last 3-4 weeks) so
> if it didn't get updated,  or got updated with conflicts, it could cause
> problems... but not for me.  I suggest wiping your current CVS and doing
> a complete checkout.

I changed in Src/_ufuncmodule.c around line 40 and line 43 (removed the
semicolons):

#if _PYTHON_CALLBACKS
#define ConverterRebuffer(conv,arr,inb) \
              PyObject_CallMethod(conv, "rebuffer", "(OO)", arr, inb)
#else
#define ConverterRebuffer(conv,arr,inb) \
 ((PyConverterObject *)conv)->rebuffer(conv, arr, inb)
#endif

I do not understand why this caused trouble - but in my opinion there don't
need to be any semiconlons, because you use it like a function call.

Is there some documentation on the nd_image package ?

Thanks
- Sebastian




>
> Regards,
> Todd
>
> On Tue, 2003-12-02 at 15:33, Sebastian Haase wrote:
> > <snip>
> > > cvs update -d -P
> >
> > Thanks - that was it ...
> >
> > <snip>
> >
> > > > Then I get a compiler error:
> > > >
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -IInclude/numarray
> > > > -I/usr/include/python2.2 -c Src/_ufuncmodule.c -o
> > > > build/temp.linux-i686-2.2/_ufuncmodule.o
> > > > Src/_ufuncmodule.c: In function `_slow_exec1':
> > > > Src/_ufuncmodule.c:1555: parse error before `*'
> > > > Src/_ufuncmodule.c:1556: `ro' undeclared (first use in this
function)
> > > > Src/_ufuncmodule.c:1556: (Each undeclared identifier is reported
only
> > once
> > > > Src/_ufuncmodule.c:1556: for each function it appears in.)
> > > > Src/_ufuncmodule.c: In function `_slow_exec2':
> > > > Src/_ufuncmodule.c:1876: parse error before `*'
> > > > Src/_ufuncmodule.c:1877: parse error before `*'
> > > > Src/_ufuncmodule.c:1878: `ri1' undeclared (first use in this
function)
> > > > Src/_ufuncmodule.c:1878: `ro' undeclared (first use in this
function)
> > > > Src/_ufuncmodule.c:1908: parse error before `*'
> > > > Src/_ufuncmodule.c:1909: parse error before `*'
> > > > error: command 'gcc' failed with exit status 1
> > > >
> > >
> > > I'm not sure what happened here.  CVS is currently viable though.  Try
> > > again.
> > >
> >
> > I just ran it again ... same thing. (my gcc is version 2.95)
> > Could you check this ... ?
> >
> > - Sebastian
> >
> -- 
> Todd Miller <jmiller at stsci.edu>
>
>





More information about the Numpy-discussion mailing list