ts-7000
[Top] [All Lists]

Re: [ts-7000] Python 2.5.1 ctypes

To:
Subject: Re: [ts-7000] Python 2.5.1 ctypes
From: Kevin Cozens <>
Date: Wed, 17 Oct 2007 16:45:11 -0400
Samuel M. Smith wrote:
> Anybody have any idea how to make ctypes build.
> 
> These are the errors I get on make install.
> 
> 
> 
> building '_ctypes' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall 
> -Wstrict-prototypes -fPIC -I. -I/usr/local/src/Python-2.5.1/./Include 
> -Ibuild/temp.linux-armv4l-2.5/libffi/include 
> -Ibuild/temp.linux-armv4l-2.5/libffi 
> -I/usr/local/src/Python-2.5.1/Modules/_ctypes/libffi/src -I./Include -I. 
> -I/usr/local/include -I/usr/local/src/Python-2.5.1/Include 
> -I/usr/local/src/Python-2.5.1 -c 
> /usr/local/src/Python-2.5.1/Modules/_ctypes/_ctypes.c -o 
> build/temp.linux-armv4l-2.5/usr/local/src/Python-2.5.1/Modules/_ctypes/_ctypes.o
> In file included from 
> /usr/local/src/Python-2.5.1/Modules/_ctypes/_ctypes.c:126:
> /usr/local/src/Python-2.5.1/Modules/_ctypes/ctypes.h:71: error: syntax 
> error before "ffi_closure"
> /usr/local/src/Python-2.5.1/Modules/_ctypes/ctypes.h:71: warning: no 
> semicolon at end of struct or union
> /usr/local/src/Python-2.5.1/Modules/_ctypes/ctypes.h:78: error: syntax 
> error before '}' token
[snip]

I haven't looked at the source file you are trying to compile but, based on 
the error messages, I would suspect you are missing a header file. The errors 
you listed are typical of those you might get when a header file is missing 
which defines some data types. Check the #include lines in _ctypes.h and make 
sure all referenced header files exist on the machine being used to compile. 
Also, make sure the compiler line is being told (via -I) where to find the 
header files  if they are in any non-stander locations.

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/           |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172      |"Same thing we always do, Pinkutus:
                                 |  Try to assimilate the world!"
#include <disclaimer/favourite> |              -Pinkutus & the Borg


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU