[Tutor] Compiling Python on MacOSX.

montana sarmxiii@knology.net
Sat, 21 Sep 2002 10:30:43 -0500


Hi Everyone-

I'm following the directions from:

http://tony.lownds.com/macosx/tkinter.html

I'm trying to  compile Python 2.2 with aqua Tk support for my computer. 
I'm running 10.2.1 on a G4 Powerbook. When I run 'make' it barfs on the 
followign error:

Modules/_tkinter.c: In function `Sleep':
Modules/_tkinter.c:252: warning: implicit declaration of function 
`select'
make: *** [Modules/_tkinter.o] Error 1


Here is the guilty piece of code:

static void
Sleep(int milli)
{
	/* XXX Too bad if you don't have select(). */
	struct timeval t;
	t.tv_sec = milli/1000;
	t.tv_usec = (milli%1000) * 1000;
	select(0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &t);
}

Any ideas how to get around this? Is this an issues with the new gcc 3 
on 10.2 versus the old gcc from 10.1?

Thanks.

SA


"I can do everything on my Mac I used to do on my PC, plus alot more 
..."
--Me