Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#22 Compile Error: static declaration of 'Pointer_Type'...

closed-fixed
nobody
None
5
2006-01-13
2005-11-29
No

I'm trying to compile ctypes on OS X 10.4 using python:
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin

When I do the standard:
python setup.py build

I get the following compiler error:

$ python2.4 setup.py build
running build
running build_py
running build_ext
building '_ctypes' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-
fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -
Wstrict-prototypes -DIS_BIG_ENDIAN=1 -Isource/darwin -I/private/
tmp/ctypes-0.9.6/build/temp.darwin-8.3.0-Power_Macintosh-2.4/
include -I/private/tmp/ctypes-0.9.6/build/temp.darwin-8.3.0-
Power_Macintosh-2.4/lib/gcc/3.5.0/include/libffi -I/Library/
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c
source/_ctypes.c -o build/temp.darwin-8.3.0-Power_Macintosh-2.4/
source/_ctypes.o
In file included from source/_ctypes.c:105:
/private/tmp/ctypes-0.9.6/build/temp.darwin-8.3.0-
Power_Macintosh-2.4/include/ffi.h:191: warning: function declaration
isn't a prototype
/private/tmp/ctypes-0.9.6/build/temp.darwin-8.3.0-
Power_Macintosh-2.4/include/ffi.h:204: warning: function declaration
isn't a prototype
/private/tmp/ctypes-0.9.6/build/temp.darwin-8.3.0-
Power_Macintosh-2.4/include/ffi.h:273: warning: function declaration
isn't a prototype
source/_ctypes.c:3883: 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

-Thanks

Discussion

  • Thomas Heller
    Thomas Heller
    2006-01-13

    Logged In: YES
    user_id=11105

    This is already fixeds in CVS.

     
  • Thomas Heller
    Thomas Heller
    2006-01-13

    • status: open --> closed-fixed