error on building 2.6.1. (_ctypes)
berankin99 at yahoo.com
Fri Jan 30 19:52:07 CET 2009
> > 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
> > /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?
Wow, good catch.
I just re-downloaded the archive and it works fine.
I know for certain that I did no editing to the files, and even tried expanding the original tar.gz a couple of times.
There must be a corrupted package somewhere among the official Python mirrors. (Sadly, I overwrote the old tar.gz file when I got the new one.)
More information about the Python-list