MP 1.5.0, Mac OS 10.4.10 PPC # port upgrade -d py-scientific ---> Fetching py-scientific ---> Verifying checksum(s) for py-scientific ---> Extracting py-scientific ---> Configuring py-scientific ---> Building py-scientific with target build Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_python_ py-scientific/work/ScientificPython-2.6" && /opt/local/bin/python2.4 setup.py build " returned error 1 Command output: Src/Scientific_netcdf.c:1949: error: 'i' undeclared (first use in this function) Src/Scientific_netcdf.c: At top level: Src/Scientific_netcdf.c:1959: error: parse error before 'Py_ssize_t' Src/Scientific_netcdf.c:1961: warning: function declaration isn't a prototype Src/Scientific_netcdf.c: In function 'PyNetCDFVariableObject_ass_slice': Src/Scientific_netcdf.c:1963: error: 'value' undeclared (first use in this function) Src/Scientific_netcdf.c:1967: error: 'self' undeclared (first use in this function) Src/Scientific_netcdf.c:1971: error: 'low' undeclared (first use in this function) Src/Scientific_netcdf.c:1975: error: 'high' undeclared (first use in this function) Src/Scientific_netcdf.c: In function 'PyNetCDFVariableObject_ass_subscript': Src/Scientific_netcdf.c:2016: error: 'Py_ssize_t' undeclared (first use in this function) Src/Scientific_netcdf.c:2016: error: parse error before 'len_dim' Src/Scientific_netcdf.c:2017: error: 'len_dim' undeclared (first use in this function) Src/Scientific_netcdf.c:2026: error: parse error before 'i' Src/Scientific_netcdf.c: At top level: Src/Scientific_netcdf.c:2074: error: parse error before 'Py_ssize_t' Src/Scientific_netcdf.c:2075: warning: function declaration isn't a prototype Src/Scientific_netcdf.c:2082: error: 'lenfunc' undeclared here (not in a function) Src/Scientific_netcdf.c:2082: error: parse error before 'PyNetCDFVariableObject_length' Src/Scientific_netcdf.c:2084: error: 'ssizeargfunc' undeclared here (not in a function) Src/Scientific_netcdf.c:2084: error: parse error before 'PyNetCDFVariableObject_error2' Src/Scientific_netcdf.c:2085: error: parse error before 'PyNetCDFVariableObject_item' Src/Scientific_netcdf.c:2086: error: 'ssizessizeargfunc' undeclared here (not in a function) Src/Scientific_netcdf.c:2086: error: parse error before 'PyNetCDFVariableObject_slice' Src/Scientific_netcdf.c:2087: error: 'ssizeobjargproc' undeclared here (not in a function) Src/Scientific_netcdf.c:2087: error: parse error before 'PyNetCDFVariableObject_ass_item' Src/Scientific_netcdf.c:2088: error: 'ssizessizeobjargproc' undeclared here (not in a function) Src/Scientific_netcdf.c:2088: error: parse error before 'PyNetCDFVariableObject_ass_slice' Src/Scientific_netcdf.c:2092: error: parse error before 'PyNetCDFVariableObject_length' error: command '/usr/bin/gcc-4.0' failed with exit status 1
I had the very same error on PPC: On 18.07.2007, at 01:16, LD wrote:
MP 1.5.0, Mac OS 10.4.10 PPC
# port upgrade -d py-scientific ---> Fetching py-scientific ---> Verifying checksum(s) for py-scientific ---> Extracting py-scientific ---> Configuring py-scientific ---> Building py-scientific with target build Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_pytho n_py-scientific/work/ScientificPython-2.6" && /opt/local/bin/ python2.4 setup.py build " returned error 1 Command output: Src/Scientific_netcdf.c:1949: error: 'i' undeclared (first use in this function) Src/Scientific_netcdf.c: At top level: Src/Scientific_netcdf.c:1959: error: parse error before 'Py_ssize_t'
Originally I thought it was related to odcctools (which causes strange errors for me repeatedly). I could solve the issue for me, but, honestly, I have no clue what the problem was nor what the solution is... Anyway, I uninstalled all installed gcc (gcc41 and gcc42) plus g95, odcctools, and netcdf. I reinstalled netcdf and g95 (which in turn installs odcctools) and could then successfully install py-scientific. Just my 2 ct -- not a very "scientific" guide to solve your problem... Btw, why does g95 rely on odcctools per default, instead of having a odcctools variant? Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen- Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
participants (2)
-
Jochen Küpper
-
LD