Dear All,
I am fairly new to Python but I am looking at it with a lot of interest.
I am running Debian unstable on my box and, so far, I have been able
to install Scipy and Pylab without too much hassle, but something goes
wrong with PyGSL.
I downloaded the latest version from Sourceforge, unzipped it and
tried to install it by, but this is what I got:

$ python setup.py install
Using 'numpy' as array object
['gsl_dist.__init__', 'gsl_dist.array_includes',
'gsl_dist.gsl_Extension', 'gsl_dist.gsl_site',
'gsl_dist.gsl_site_example', 'gsl_dist.swig_extension']
running install
running build
running build_py
running build_ext
building 'testing.solver' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC

compile options: '-DSWIG_COBJECT_TYPES=1 -DDEBUG=0 -DONEFILE=1
-DNUMERIC=1 -DPYGSL_GSL_MAJOR_VERSION=1 -DPYGSL_GSL_MINOR_VERSION=8
-UNDEBUG -I/usr/include -IInclude -I.
-I/usr/lib/python2.4/site-packages/numpy/core/include
-I/usr/include/python2.4 -c'
gcc: testing/src/solvers/solvermodule.c
In file included from testing/src/solvers/solver_intern.h:11,
                 from testing/src/solvers/solvermodule.c:10:
Include/pygsl/solver.h:176: error: static declaration of
'PyGSL_function_wrap_On_O' follows non-static declaration
Include/pygsl/function_helpers.h:109: error: previous declaration of
'PyGSL_function_wrap_On_O' was here
Include/pygsl/solver.h:184: error: static declaration of
'PyGSL_function_wrap_Op_On_Opn' follows non-static declaration
Include/pygsl/function_helpers.h:116: error: previous declaration of
'PyGSL_function_wrap_Op_On_Opn' was here
Include/pygsl/solver.h:188: error: static declaration of
'PyGSL_function_wrap_Op_On' follows non-static declaration
Include/pygsl/function_helpers.h:89: error: previous declaration of
'PyGSL_function_wrap_Op_On' was here
Include/pygsl/solver.h:192: error: static declaration of
'PyGSL_function_wrap_Op_Opn' follows non-static declaration
Include/pygsl/function_helpers.h:93: error: previous declaration of
'PyGSL_function_wrap_Op_Opn' was here
testing/src/solvers/solvermodule.c:11:25: error: solver_doc.ic: No
such file or directory
testing/src/solvers/solvermodule.c: In function 'PyGSL_solver_dealloc':
testing/src/solvers/solvermodule.c:86: warning: unused variable 'tmp'
testing/src/solvers/solvermodule.c:85: warning: unused variable 'ob'
testing/src/solvers/solvermodule.c:84: warning: unused variable 'count'
testing/src/solvers/solvermodule.c:84: warning: unused variable 'i'
testing/src/solvers/solvermodule.c:83: warning: unused variable 'cache_ptr'
testing/src/solvers/solvermodule.c: At top level:
testing/src/solvers/solvermodule.c:217: error: 'PyGSL_solver_type_doc'
undeclared here (not in a function)
testing/src/solvers/solvermodule.c: In function 'PyGSL_gsl_function':
testing/src/solvers/solvermodule.c:411: warning: passing argument 6 of
'*(PyGSL_API + 112u)' discards qualifiers from pointer target type
testing/src/solvers/solvermodule.c: In function 'PyGSL_gsl_function_df':
testing/src/solvers/solvermodule.c:435: warning: passing argument 6 of
'*(PyGSL_API + 112u)' discards qualifiers from pointer target type
testing/src/solvers/solvermodule.c: In function 'PyGSL_gsl_function_fdf':
testing/src/solvers/solvermodule.c:460: warning: passing argument 6 of
'*(PyGSL_API + 112u)' discards qualifiers from pointer target type
In file included from testing/src/solvers/solvermodule.c:901:
testing/src/solvers/function_helpers2.c: In function
'PyGSL_function_wrap_OnOn_On':
testing/src/solvers/function_helpers2.c:271: warning: unused variable 'r2'
testing/src/solvers/function_helpers2.c:271: warning: unused variable 'r1'
testing/src/solvers/solvermodule.c: In function 'initsolver':
testing/src/solvers/solvermodule.c:968: error:
'PyGSL_solver_module_doc' undeclared (first use in this function)
testing/src/solvers/solvermodule.c:968: error: (Each undeclared
identifier is reported only once
testing/src/solvers/solvermodule.c:968: error: for each function it appears in.)
In file included from testing/src/solvers/solver_intern.h:11,
                 from testing/src/solvers/solvermodule.c:10:
Include/pygsl/solver.h:176: error: static declaration of
'PyGSL_function_wrap_On_O' follows non-static declaration
Include/pygsl/function_helpers.h:109: error: previous declaration of
'PyGSL_function_wrap_On_O' was here
Include/pygsl/solver.h:184: error: static declaration of
'PyGSL_function_wrap_Op_On_Opn' follows non-static declaration
Include/pygsl/function_helpers.h:116: error: previous declaration of
'PyGSL_function_wrap_Op_On_Opn' was here
Include/pygsl/solver.h:188: error: static declaration of
'PyGSL_function_wrap_Op_On' follows non-static declaration
Include/pygsl/function_helpers.h:89: error: previous declaration of
'PyGSL_function_wrap_Op_On' was here
Include/pygsl/solver.h:192: error: static declaration of
'PyGSL_function_wrap_Op_Opn' follows non-static declaration
Include/pygsl/function_helpers.h:93: error: previous declaration of
'PyGSL_function_wrap_Op_Opn' was here
testing/src/solvers/solvermodule.c:11:25: error: solver_doc.ic: No
such file or directory
testing/src/solvers/solvermodule.c: In function 'PyGSL_solver_dealloc':
testing/src/solvers/solvermodule.c:86: warning: unused variable 'tmp'
testing/src/solvers/solvermodule.c:85: warning: unused variable 'ob'
testing/src/solvers/solvermodule.c:84: warning: unused variable 'count'
testing/src/solvers/solvermodule.c:84: warning: unused variable 'i'
testing/src/solvers/solvermodule.c:83: warning: unused variable 'cache_ptr'
testing/src/solvers/solvermodule.c: At top level:
testing/src/solvers/solvermodule.c:217: error: 'PyGSL_solver_type_doc'
undeclared here (not in a function)
testing/src/solvers/solvermodule.c: In function 'PyGSL_gsl_function':
testing/src/solvers/solvermodule.c:411: warning: passing argument 6 of
'*(PyGSL_API + 112u)' discards qualifiers from pointer target type
testing/src/solvers/solvermodule.c: In function 'PyGSL_gsl_function_df':
testing/src/solvers/solvermodule.c:435: warning: passing argument 6 of
'*(PyGSL_API + 112u)' discards qualifiers from pointer target type
testing/src/solvers/solvermodule.c: In function 'PyGSL_gsl_function_fdf':
testing/src/solvers/solvermodule.c:460: warning: passing argument 6 of
'*(PyGSL_API + 112u)' discards qualifiers from pointer target type
In file included from testing/src/solvers/solvermodule.c:901:
testing/src/solvers/function_helpers2.c: In function
'PyGSL_function_wrap_OnOn_On':
testing/src/solvers/function_helpers2.c:271: warning: unused variable 'r2'
testing/src/solvers/function_helpers2.c:271: warning: unused variable 'r1'
testing/src/solvers/solvermodule.c: In function 'initsolver':
testing/src/solvers/solvermodule.c:968: error:
'PyGSL_solver_module_doc' undeclared (first use in this function)
testing/src/solvers/solvermodule.c:968: error: (Each undeclared
identifier is reported only once
testing/src/solvers/solvermodule.c:968: error: for each function it appears in.)
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2
-Wall -Wstrict-prototypes -fPIC -DSWIG_COBJECT_TYPES=1 -DDEBUG=0
-DONEFILE=1 -DNUMERIC=1 -DPYGSL_GSL_MAJOR_VERSION=1
-DPYGSL_GSL_MINOR_VERSION=8 -UNDEBUG -I/usr/include -IInclude -I.
-I/usr/lib/python2.4/site-packages/numpy/core/include
-I/usr/include/python2.4 -c testing/src/solvers/solvermodule.c -o
build/temp.linux-i686-2.4/testing/src/solvers/solvermodule.o" failed
with exit status 1

(sorry for the long paste).
Does anyone have a clue at what is going on?
These are the versions of Python I have installed:
python2.3         python2.4  and also        python2.4-config.
Kind Regards

Lorenzo

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pygsl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pygsl-discuss

Reply via email to