changes to timemodule.c

Sjoerd Mullender (Sjoerd.Mullender@cwi.nl)
Wed, 02 Feb 1994 09:46:52 +0100

On Tue, Feb 1 1994 Gregory Alan Bolcer wrote:

> cc config.o libModules.a ../Python/libPython.a ../Objects/libObjects.a
> ../Parser/libParser.a
> /home/gbolcer/teamware/python/src/stdwin/Build/sun4/x11/lib/lib.a -lX11
> -lthread -ldl -lm -lnsl -lsocket -o python
> Undefined first referenced
> symbol in file
> init_thread libModules.a(threadmodule.o)
> exit_thread libModules.a(threadmodule.o)
> acquire_lock libModules.a(stdwinmodule.o)
> exit_prog ../Python/libPython.a(pythonrun.o)
> start_new_thread libModules.a(threadmodule.o)
> allocate_lock libModules.a(stdwinmodule.o)
> free_lock libModules.a(threadmodule.o)
> release_lock libModules.a(stdwinmodule.o)
> _exit_prog ../Python/libPython.a(pythonrun.o)
> setlinebuf
> /home/gbolcer/teamware/python/src/stdwin/Build/sun4/x11/lib/lib.a(general.o)
> ld: fatal: Symbol referencing errors. No output written to python
> *** Error code 1
> make: Fatal error: Command failed for target `../python'
> Current working directory /home/gbolcer/teamware/python/src/Modules
> *** Error code 1
> make: Fatal error: Command failed for target `python'

All these unresolved names (except for setlinebuf) come from the file
Python/thread.c. This file should have been compiled and the result
put into the Python/libPython.a library. Please check if it is there.

Also, when you switch from a python version without threads to one
with threads, you'll have to recompile everything.

Sjoerd Mullender
E-Mail: Sjoerd.Mullender@cwi.nl
URL: <http://www.cwi.nl/cwi/people/Sjoerd.Mullender.html>