SWIG compile problems with Python and Ruby

I am having some problems compiling Comedi (from CVS).  Compiling the 
Python bindings gets an error.

System info:

    * Red Hat 9
    * kernel 2.6.2
    * Python 2.3
    * SWIG 1.3.19

I have attached the 'make' output with the error.  Not sure if anyone 
has run in to that error.

 The biggest problem is that the '--disable-python-binding' and 
'--disable-ruby-binding' flags don't appear to work.  So I have to 
configure, edit the Makefile to avoid Python and Ruby and then compile.

Thanks,
-Sim
make[3]: Entering directory `/root/comedi/comedilib/swig/python'
make  all-am
make[4]: Entering directory `/root/comedi/comedilib/swig/python'
source='comedi_python_wrap.c' object='_comedi_la-comedi_python_wrap.lo' libtool=yes \
depfile='.deps/_comedi_la-comedi_python_wrap.Plo' tmpdepfile='.deps/_comedi_la-comedi_python_wrap.TPlo' \
depmode=gcc3 /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include -Wall -I/usr/local/include/python2.3 -fno-strict-aliasing -Wno-unused-function -g -O2 -c -o _comedi_la-comedi_python_wrap.lo `test -f 'comedi_python_wrap.c' || echo './'`comedi_python_wrap.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -Wall -I/usr/local/include/python2.3 -fno-strict-aliasing -Wno-unused-function -g -O2 -c comedi_python_wrap.c -MT _comedi_la-comedi_python_wrap.lo -MD -MP -MF .deps/_comedi_la-comedi_python_wrap.TPlo  -fPIC -DPIC -o .libs/_comedi_la-comedi_python_wrap.lo
In file included from /usr/local/include/python2.3/Python.h:8,
                 from comedi_python_wrap.c:41:
/usr/local/include/python2.3/pyconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/string.h:26,
                 from comedi_python_wrap.c:22:
/usr/include/features.h:171:1: warning: this is the location of the previous definition
comedi_python_wrap.c: In function `l_output_helper':
comedi_python_wrap.c:560: warning: unused variable `o3'
comedi_python_wrap.c: In function `_wrap__array_class':
comedi_python_wrap.c:694: `chanlist' undeclared (first use in this function)
comedi_python_wrap.c:694: (Each undeclared identifier is reported only once
comedi_python_wrap.c:694: for each function it appears in.)
comedi_python_wrap.c:694: `_arg1' undeclared (first use in this function)
comedi_python_wrap.c:706: parse error before '%' token
make[4]: *** [_comedi_la-comedi_python_wrap.lo] Error 1
make[4]: Leaving directory `/root/comedi/comedilib/swig/python'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/comedi/comedilib/swig/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/comedi/comedilib/swig'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/comedi/comedilib'
make: *** [all] Error 2

Received on 2004-02-10Z17:55:08