Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 Failed to install os-x 10.4

open
nobody
None
5
2015-01-22
2007-05-21
Anonymous
No

same with both python 2.4 or python 2.5 and gcc 3.3 and gcc 4.0

running install
running build
running config_fc
running build_src
building extension "pynetcdf._netcdf" sources
building data_files sources
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'pynetcdf._netcdf' extension
compiling C sources
gcc options: '-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes'
compile options: '-I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: ./_netcdf.c
_netcdf.c:14:30: numpy/oldnumeric.h: No such file or directory
In file included from _netcdf.c:18:
netcdfmodule.h:215: error: parse error before '*' token
netcdfmodule.h:215: warning: type defaults to `int' in declaration of `PyNetCDFVariable_ReadAsArray'
netcdfmodule.h:215: warning: data definition has no type or storage class
_netcdf.c:172: error: `PyArray_SBYTE' undeclared here (not in a function)
_netcdf.c:172: error: initializer element is not constant
_netcdf.c:172: error: (near initialization for `data_types[1]')
_netcdf.c:173: error: `PyArray_CHAR' undeclared here (not in a function)
_netcdf.c:173: error: initializer element is not constant
_netcdf.c:173: error: (near initialization for `data_types[2]')
_netcdf.c:174: error: `PyArray_SHORT' undeclared here (not in a function)
_netcdf.c:174: error: initializer element is not constant
_netcdf.c:174: error: (near initialization for `data_types[3]')
_netcdf.c:175: error: `PyArray_INT' undeclared here (not in a function)
_netcdf.c:175: error: initializer element is not constant
_netcdf.c:175: error: (near initialization for `data_types[4]')
_netcdf.c:176: error: `PyArray_FLOAT' undeclared here (not in a function)
_netcdf.c:176: error: initializer element is not constant
_netcdf.c:176: error: (near initialization for `data_types[5]')
_netcdf.c:178: error: `PyArray_DOUBLE' undeclared here (not in a function)
_netcdf.c:178: error: initializer element is not constant
_netcdf.c:178: error: (near initialization for `data_types[6]')
_netcdf.c: In function `typecode':
_netcdf.c:317: error: `PyArray_STRING' undeclared (first use in this function)
_netcdf.c:317: error: (Each undeclared identifier is reported only once
_netcdf.c:317: error: for each function it appears in.)
_netcdf.c:318: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c:319: error: `PyArray_CHARLTR' undeclared (first use in this function)
_netcdf.c:321: error: `PyArray_BYTE' undeclared (first use in this function)
_netcdf.c:322: error: `PyArray_BYTELTR' undeclared (first use in this function)
_netcdf.c:324: error: `PyArray_SHORT' undeclared (first use in this function)
_netcdf.c:325: error: `PyArray_SHORTLTR' undeclared (first use in this function)
_netcdf.c:327: error: `PyArray_INT' undeclared (first use in this function)
_netcdf.c:328: error: `PyArray_INTLTR' undeclared (first use in this function)
_netcdf.c:330: error: `PyArray_LONG' undeclared (first use in this function)
_netcdf.c:331: error: `PyArray_LONGLTR' undeclared (first use in this function)
_netcdf.c:333: error: `PyArray_FLOAT' undeclared (first use in this function)
_netcdf.c:334: error: `PyArray_FLOATLTR' undeclared (first use in this function)
_netcdf.c:336: error: `PyArray_DOUBLE' undeclared (first use in this function)
_netcdf.c:337: error: `PyArray_DOUBLELTR' undeclared (first use in this function)
_netcdf.c: In function `netcdf_type_from_type':
_netcdf.c:381: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c:382: error: `PyArray_STRING' undeclared (first use in this function)
_netcdf.c:385: error: `PyArray_BYTE' undeclared (first use in this function)
_netcdf.c:388: error: `PyArray_SHORT' undeclared (first use in this function)
_netcdf.c:391: error: `PyArray_INT' undeclared (first use in this function)
_netcdf.c:392: error: `PyArray_LONG' undeclared (first use in this function)
_netcdf.c:395: error: `PyArray_FLOAT' undeclared (first use in this function)
_netcdf.c:398: error: `PyArray_DOUBLE' undeclared (first use in this function)
_netcdf.c: In function `collect_attributes':
_netcdf.c:424: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c:443: warning: implicit declaration of function `PyArray_FromDims'
_netcdf.c:443: warning: initialization makes pointer from integer without a cast
_netcdf.c:447: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:447: error: parse error before ')' token
_netcdf.c:450: warning: implicit declaration of function `PyArray_Return'
_netcdf.c:450: error: parse error before ')' token
_netcdf.c: In function `set_attribute':
_netcdf.c:496: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:496: error: `array' undeclared (first use in this function)
_netcdf.c:497: error: parse error before ')' token
_netcdf.c:502: error: `array2' undeclared (first use in this function)
_netcdf.c:502: error: parse error before ')' token
_netcdf.c: In function `PyNetCDFVariableObject_value':
_netcdf.c:1215: warning: return makes pointer from integer without a cast
_netcdf.c: At top level:
_netcdf.c:1393: error: parse error before '*' token
_netcdf.c:1396: warning: return type defaults to `int'
_netcdf.c: In function `PyNetCDFVariable_ReadAsArray':
_netcdf.c:1398: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:1398: error: `array' undeclared (first use in this function)
_netcdf.c:1415: error: parse error before ')' token
_netcdf.c:1450: error: parse error before ')' token
_netcdf.c: In function `PyNetCDFVariable_ReadAsString':
_netcdf.c:1508: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c: In function `PyNetCDFVariable_WriteArray':
_netcdf.c:1548: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:1548: error: `array' undeclared (first use in this function)
_netcdf.c:1602: error: parse error before ')' token
_netcdf.c:1643: warning: left-hand operand of comma expression has no effect
_netcdf.c: In function `PyNetCDFVariable_WriteString':
_netcdf.c:1741: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c: In function `PyNetCDFVariableObject_item':
_netcdf.c:1784: warning: return makes pointer from integer without a cast
_netcdf.c: In function `PyNetCDFVariableObject_slice':
_netcdf.c:1801: warning: return makes pointer from integer without a cast
_netcdf.c: In function `PyNetCDFVariableObject_subscript':
_netcdf.c:1823: warning: return makes pointer from integer without a cast
_netcdf.c:1854: warning: return makes pointer from integer without a cast
_netcdf.c: In function `init_netcdf':
_netcdf.c:2101: warning: implicit declaration of function `import_array'
_netcdf.c:14:30: numpy/oldnumeric.h: No such file or directory
In file included from _netcdf.c:18:
netcdfmodule.h:215: error: parse error before '*' token
netcdfmodule.h:215: warning: type defaults to `int' in declaration of `PyNetCDFVariable_ReadAsArray'
netcdfmodule.h:215: warning: data definition has no type or storage class
_netcdf.c:172: error: `PyArray_SBYTE' undeclared here (not in a function)
_netcdf.c:172: error: initializer element is not constant
_netcdf.c:172: error: (near initialization for `data_types[1]')
_netcdf.c:173: error: `PyArray_CHAR' undeclared here (not in a function)
_netcdf.c:173: error: initializer element is not constant
_netcdf.c:173: error: (near initialization for `data_types[2]')
_netcdf.c:174: error: `PyArray_SHORT' undeclared here (not in a function)
_netcdf.c:174: error: initializer element is not constant
_netcdf.c:174: error: (near initialization for `data_types[3]')
_netcdf.c:175: error: `PyArray_INT' undeclared here (not in a function)
_netcdf.c:175: error: initializer element is not constant
_netcdf.c:175: error: (near initialization for `data_types[4]')
_netcdf.c:176: error: `PyArray_FLOAT' undeclared here (not in a function)
_netcdf.c:176: error: initializer element is not constant
_netcdf.c:176: error: (near initialization for `data_types[5]')
_netcdf.c:178: error: `PyArray_DOUBLE' undeclared here (not in a function)
_netcdf.c:178: error: initializer element is not constant
_netcdf.c:178: error: (near initialization for `data_types[6]')
_netcdf.c: In function `typecode':
_netcdf.c:317: error: `PyArray_STRING' undeclared (first use in this function)
_netcdf.c:317: error: (Each undeclared identifier is reported only once
_netcdf.c:317: error: for each function it appears in.)
_netcdf.c:318: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c:319: error: `PyArray_CHARLTR' undeclared (first use in this function)
_netcdf.c:321: error: `PyArray_BYTE' undeclared (first use in this function)
_netcdf.c:322: error: `PyArray_BYTELTR' undeclared (first use in this function)
_netcdf.c:324: error: `PyArray_SHORT' undeclared (first use in this function)
_netcdf.c:325: error: `PyArray_SHORTLTR' undeclared (first use in this function)
_netcdf.c:327: error: `PyArray_INT' undeclared (first use in this function)
_netcdf.c:328: error: `PyArray_INTLTR' undeclared (first use in this function)
_netcdf.c:330: error: `PyArray_LONG' undeclared (first use in this function)
_netcdf.c:331: error: `PyArray_LONGLTR' undeclared (first use in this function)
_netcdf.c:333: error: `PyArray_FLOAT' undeclared (first use in this function)
_netcdf.c:334: error: `PyArray_FLOATLTR' undeclared (first use in this function)
_netcdf.c:336: error: `PyArray_DOUBLE' undeclared (first use in this function)
_netcdf.c:337: error: `PyArray_DOUBLELTR' undeclared (first use in this function)
_netcdf.c: In function `netcdf_type_from_type':
_netcdf.c:381: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c:382: error: `PyArray_STRING' undeclared (first use in this function)
_netcdf.c:385: error: `PyArray_BYTE' undeclared (first use in this function)
_netcdf.c:388: error: `PyArray_SHORT' undeclared (first use in this function)
_netcdf.c:391: error: `PyArray_INT' undeclared (first use in this function)
_netcdf.c:392: error: `PyArray_LONG' undeclared (first use in this function)
_netcdf.c:395: error: `PyArray_FLOAT' undeclared (first use in this function)
_netcdf.c:398: error: `PyArray_DOUBLE' undeclared (first use in this function)
_netcdf.c: In function `collect_attributes':
_netcdf.c:424: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c:443: warning: implicit declaration of function `PyArray_FromDims'
_netcdf.c:443: warning: initialization makes pointer from integer without a cast
_netcdf.c:447: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:447: error: parse error before ')' token
_netcdf.c:450: warning: implicit declaration of function `PyArray_Return'
_netcdf.c:450: error: parse error before ')' token
_netcdf.c: In function `set_attribute':
_netcdf.c:496: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:496: error: `array' undeclared (first use in this function)
_netcdf.c:497: error: parse error before ')' token
_netcdf.c:502: error: `array2' undeclared (first use in this function)
_netcdf.c:502: error: parse error before ')' token
_netcdf.c: In function `PyNetCDFVariableObject_value':
_netcdf.c:1215: warning: return makes pointer from integer without a cast
_netcdf.c: At top level:
_netcdf.c:1393: error: parse error before '*' token
_netcdf.c:1396: warning: return type defaults to `int'
_netcdf.c: In function `PyNetCDFVariable_ReadAsArray':
_netcdf.c:1398: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:1398: error: `array' undeclared (first use in this function)
_netcdf.c:1415: error: parse error before ')' token
_netcdf.c:1450: error: parse error before ')' token
_netcdf.c: In function `PyNetCDFVariable_ReadAsString':
_netcdf.c:1508: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c: In function `PyNetCDFVariable_WriteArray':
_netcdf.c:1548: error: `PyArrayObject' undeclared (first use in this function)
_netcdf.c:1548: error: `array' undeclared (first use in this function)
_netcdf.c:1602: error: parse error before ')' token
_netcdf.c:1643: warning: left-hand operand of comma expression has no effect
_netcdf.c: In function `PyNetCDFVariable_WriteString':
_netcdf.c:1741: error: `PyArray_CHAR' undeclared (first use in this function)
_netcdf.c: In function `PyNetCDFVariableObject_item':
_netcdf.c:1784: warning: return makes pointer from integer without a cast
_netcdf.c: In function `PyNetCDFVariableObject_slice':
_netcdf.c:1801: warning: return makes pointer from integer without a cast
_netcdf.c: In function `PyNetCDFVariableObject_subscript':
_netcdf.c:1823: warning: return makes pointer from integer without a cast
_netcdf.c:1854: warning: return makes pointer from integer without a cast
_netcdf.c: In function `init_netcdf':
_netcdf.c:2101: warning: implicit declaration of function `import_array'
error: Command "gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c ./_netcdf.c -o build/temp.darwin-8.9.0-Power_Macintosh-2.4/_netcdf.o" failed with exit status 1

Discussion