#21 Error compiling in linux

closed-fixed
nobody
None
5
2005-11-04
2005-10-12
Ben Pearson
No

I have been trying to install the linux version of Ctypes in
python, and keep getting an error message. This is the
2nd time I tried running the install, hence the lack of
large amounts of output. I tried installing the latest 2
versions, 0.9.5 and 0.9.6, both had the same problem.
Thanks for the help

$ python setup.py build
running build
running build_py
running build_ext
building '_ctypes' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -
Wall -Wstrict-prototypes -fPIC -
I/home/bebop/tuvas/ctypes-0.9.5/build/temp.linux-i686-
2.4/include -I/home/bebop/tuvas/ctypes-
0.9.5/build/temp.linux-i686-2.4/lib/gcc/3.5.0/include/libffi -
I/usr/local/include/python2.4 -c source/_ctypes.c -o
build/temp.linux-i686-2.4/source/_ctypes.o
In file included from source/_ctypes.c:105:
/home/bebop/tuvas/ctypes-0.9.5/build/temp.linux-i686-
2.4/include/ffi.h:191: warning: function declaration isn't a
prototype
/home/bebop/tuvas/ctypes-0.9.5/build/temp.linux-i686-
2.4/include/ffi.h:204: warning: function declaration isn't a
prototype
/home/bebop/tuvas/ctypes-0.9.5/build/temp.linux-i686-
2.4/include/ffi.h:273: warning: function declaration isn't a
prototype
source/_ctypes.c:3870: error: static declaration
of 'Pointer_Type' follows non-static declaration
source/ctypes.h:101: error: previous declaration
of 'Pointer_Type' was here
error: command 'gcc' failed with exit status 1

Discussion

  • David Fraser
    David Fraser
    2005-11-01

    Logged In: YES
    user_id=221678

    I had the same error with ctypes-0.9.6, using latest CVS
    with gcc4 works fine (branch_1_0)

     
  • Thomas Heller
    Thomas Heller
    2005-11-04

    • status: open --> closed-fixed
     
  • Thomas Heller
    Thomas Heller
    2005-11-04

    Logged In: YES
    user_id=11105

    Fixed in CVS.