error on building 2.6.1. (_ctypes)

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Jan 30 05:35:38 CET 2009


En Thu, 29 Jan 2009 22:19:18 -0200, Bernard Rankin <berankin99 at yahoo.com>  
escribió:

> I am trying to build python 2.6 on a machine (web server) that I do not  
> have root access to. (has 2.4 installed)
>
> Python 2.5 builds fine, but I am getting an error when I run "make" for  
> 2.6.1.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/username/local-src/Python-2.6.1/Modules/_ctypes/_ctypes.c:3941:  
> error: syntax error before '*' token
> /home/username/local-src/Python-2.6.1/Modules/_ctypes/_ctypes.c:3942:  
> warning: function declaration isn't a prototype
> /home/username/local-src/Python-2.6.1/Modules/_ctypes/_ctypes.c: In  
> function `CFuncPtr_nonzero':
> /home/username/local-src/Python-2.6.1/Modules/_ctypes/_ctypes.c:3943:  
> error: `self' undeclared (first use in this function)

Mmm... my 2.6.1 source show different line numbers, maybe you should check  
it's the right file?

> Failed to find the necessary bits to build these modules:
> _tkinter           bsddb185           sunaudiodev
> Failed to build these modules:
> _ctypes
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> I am guessing that I don't need tkinter or sunaudiodev, but what about  
> the others?

bsddb185 is just for compatibility with the old Berkeley DB. I'd be  
worried just by ctypes - and only if you actually require it.

-- 
Gabriel Genellina




More information about the Python-list mailing list