[MacPorts] #24018: gsl1.13 breaks py-gsl and py25-gsl

MacPorts noreply at macports.org
Wed Mar 10 13:12:12 PST 2010


#24018: gsl1.13 breaks py-gsl and py25-gsl
------------------------------------+---------------------------------------
 Reporter:  glen.henshaw@…          |       Owner:  macports-tickets@…                   
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:                                       
Component:  ports                   |     Version:  1.8.2                                
 Keywords:  gsl                     |        Port:  py25-gsl                             
------------------------------------+---------------------------------------
 py-gsl will not build. It halts with the following error:

 --->  Building py25-gsl
 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_py25-gsl/work/pygsl-0.9.1"
 && /opt/local/bin/python2.5 setup.py --no-user-cfg build --array-
 object=numpy " returned error 1
 Command output: building 'const' extension
 C compiler: /usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
 prototypes -I/opt/local/include/gsl -I/opt/local/include/python2.5
 -I/opt/local/include

 compile options: '-DSWIG_COBJECT_TYPES=1 -DDEBUG=1 -DNUMERIC=0
 -DPYGSL_GSL_MAJOR_VERSION=1 -DPYGSL_GSL_MINOR_VERSION=13 -UNDEBUG
 -I/opt/local/include -IInclude -I.
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
 /site-packages/numpy/core/include
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
 -c'
 gcc-4.2: src/constmodule.c
 In file included from src/constmodule.c:62:
 src/const_cgs_array.c:17: error: 'GSL_CONST_CGS_BOHR_MAGNETON' undeclared
 here (not in a function)
 src/const_cgs_array.c:18: error: 'GSL_CONST_CGS_NUCLEAR_MAGNETON'
 undeclared here (not in a function)
 src/const_cgs_array.c:19: error: 'GSL_CONST_CGS_ELECTRON_MAGNETIC_MOMENT'
 undeclared here (not in a function)
 src/const_cgs_array.c:20: error: 'GSL_CONST_CGS_PROTON_MAGNETIC_MOMENT'
 undeclared here (not in a function)
 src/const_cgs_array.c:79: error: 'GSL_CONST_CGS_FARADAY' undeclared here
 (not in a function)
 src/const_cgs_array.c:80: error: 'GSL_CONST_CGS_ELECTRON_CHARGE'
 undeclared here (not in a function)
 src/const_cgs_array.c:81: error: 'GSL_CONST_CGS_GAUSS' undeclared here
 (not in a function)
 In file included from src/constmodule.c:76:
 src/const_cgsm_array.c:80: error: 'GSL_CONST_CGSM_GAUSS' undeclared here
 (not in a function)
 src/const_cgsm_array.c:80: error: initializer element is not constant
 src/const_cgsm_array.c:80: error: (near initialization for
 'cgsm_array[79].value')
 In file included from src/constmodule.c:62:
 src/const_cgs_array.c:17: error: 'GSL_CONST_CGS_BOHR_MAGNETON' undeclared
 here (not in a function)
 src/const_cgs_array.c:18: error: 'GSL_CONST_CGS_NUCLEAR_MAGNETON'
 undeclared here (not in a function)
 src/const_cgs_array.c:19: error: 'GSL_CONST_CGS_ELECTRON_MAGNETIC_MOMENT'
 undeclared here (not in a function)
 src/const_cgs_array.c:20: error: 'GSL_CONST_CGS_PROTON_MAGNETIC_MOMENT'
 undeclared here (not in a function)
 src/const_cgs_array.c:79: error: 'GSL_CONST_CGS_FARADAY' undeclared here
 (not in a function)
 src/const_cgs_array.c:80: error: 'GSL_CONST_CGS_ELECTRON_CHARGE'
 undeclared here (not in a function)
 src/const_cgs_array.c:81: error: 'GSL_CONST_CGS_GAUSS' undeclared here
 (not in a function)
 In file included from src/constmodule.c:76:
 src/const_cgsm_array.c:80: error: 'GSL_CONST_CGSM_GAUSS' undeclared here
 (not in a function)
 src/const_cgsm_array.c:80: error: initializer element is not constant
 src/const_cgsm_array.c:80: error: (near initialization for
 'cgsm_array[79].value')
 error: Command "/usr/bin/gcc-4.2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
 prototypes -I/opt/local/include/gsl -I/opt/local/include/python2.5
 -I/opt/local/include -DSWIG_COBJECT_TYPES=1 -DDEBUG=1 -DNUMERIC=0
 -DPYGSL_GSL_MAJOR_VERSION=1 -DPYGSL_GSL_MINOR_VERSION=13 -UNDEBUG
 -I/opt/local/include -IInclude -I.
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
 /site-packages/numpy/core/include
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
 -c src/constmodule.c -o build/temp.macosx-10.6-i386-2.5/src/constmodule.o"
 failed with exit status 1

 Error: Status 1 encountered during processing.
 Before reporting a bug, first run the command again with the -d flag to
 get complete output.



 A quick Google search indicates that this is caused by an incompatibility
 between gsl 1.13 and py-gsl:

 http://www.mail-archive.com/fink-users@lists.sourceforge.net/msg31697.html

-- 
Ticket URL: <http://trac.macports.org/ticket/24018>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list