[Matrix-SIG] Build problem under Solaris 2.6
Lee Taylor
taylor@rhino.llnl.gov
Thu, 20 Jan 2000 10:58:44 -0800 (PST)
Make sure you're using the new version of arrayobject.h.
It is now in directory Numeric instead of numeric.
I usually use:
#include "Numeric/arrayobject.h"
instead of:
#include "arrayobject.h"
and then use -I$(prefix)/include/python1.5/Numeric on the compile line.
Lee Taylor
ltaylor@llnl.gov
On Wed, 19 Jan 2000, Clay Spence x3039 wrote:
> Hi,
>
> I'm having a problem building release 14 under Solaris 2.6 with Sun's C
> compiler. The following occurs:
>
> cholla 332% python setup.py build install
> running build
> <snip>
> Src/_numpymodule.c:
> "Src/_numpymodule.c", line 48: undefined symbol:
> PyArray_FromDimsAndDataAndDescr_NUM
> "Src/_numpymodule.c", line 48: undefined symbol:
> PyArray_FromDimsAndDataAndDescr
> cc: acomp failed for Src/_numpymodule.c
>
> It does not seem to be a limitation on preprocessor symbol names. I can
> define PyArray_FromDimsAndDataAndDescr_NUM myself in a very short test
> program and it compiles with no problem. However, the following file
> gives the same error:
>
> -----------
> #include <stdio.h>
> #include "Python.h"
> #define _ARRAY_MODULE
> #include "arrayobject.h"
>
> int
> main()
> {
> printf("%d\n", PyArray_Type_NUM);
> printf("%d\n", PyArray_FromDimsAndDataAndDescr_NUM);
> return 0;
> }
> -----------
>
> It doesn't complain about PyArray_Type_NUM. The presence or absence of
> "#define _ARRAY_MODULE" doesn't affect the error. Older versions (I
> think 11 was the last I tried) compiled fine. Any ideas?
>
> Thanks,
> Clay
>
>
>
> _______________________________________________
> Matrix-SIG maillist - Matrix-SIG@python.org
> http://www.python.org/mailman/listinfo/matrix-sig
>