error compiling python 2.1 and tkinter

Rene Salmon rsalmon at tulane.edu
Fri Jul 13 22:40:13 CEST 2001


Hello all,

Am hoping some here can help me or point me in the right direction.

I have and Irix 6.5.11 machine. I can install the default Python2.1 no
problem.  But I just installed TCL/TK 8.3.3 and would like to use
TKinter with it.  So I edited the Modules/Setup file to enable tkinter
it looks like this

I have tk and tcl installed in /usr/local/


# *** Always uncomment this (leave the leading underscore in!):
 _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
        -L/usr/local/lib \
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
        -I/usr/local/include \
# *** Uncomment and edit to reflect where your X11 header files are:
        -I/usr/X11R6/include \
# *** Or uncomment this for Solaris:
#       -I/usr/openwin/include \
# *** Uncomment and edit for Tix extension only:
#       -DWITH_TIX -ltix8.1.8.2 \
# *** Uncomment and edit for BLT extension only:
#       -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
# *** Uncomment and edit for PIL (TkImaging) extension only:
#     (See http://www.pythonware.com/products/pil/ for more info)
#       -DWITH_PIL -I../Extensions/Imaging/libImaging  tkImaging.c \
# *** Uncomment and edit for TOGL extension only:
#       -DWITH_TOGL togl.c \
# *** Uncomment and edit to reflect your Tcl/Tk versions:
#       -ltk8.2 -ltcl8.2 \
# *** Uncomment and edit to reflect where your X11 libraries are:
        -L/usr/X11R6/lib \
# *** Or uncomment this for Solaris:
#       -L/usr/openwin/lib \
# *** Uncomment these for TOGL extension only:
#       -lGL -lGLU -lXext -lXmu \
# *** Uncomment for AIX:
#       -lld \
# *** Always uncomment this; X11 libraries to link with:
        -lX11



but now when I type make this is what I get



gcc   -o python \
                Modules/python.o \
                libpython2.1.a -lpthread -ldl  -L/usr/local/lib
-L/usr/X11R6/lib -lX11  -lm
ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any
symbol.
ld32: WARNING 84 : /usr/lib32/libX11.so is not used for resolving any
symbol.
ld32: ERROR   33 : Unresolved text symbol "Tcl_GetStringResult" -- 1st
referenced by libpython2.1.a(_tkinter.o).
        Use linker option -v to see when and which objects, archives
and dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "Tcl_Alloc" -- 1st
referenced by libpython2.1.a(_tkinter.o).
        Use linker option -v to see when and which objects, archives
and dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "Tcl_Merge" -- 1st
referenced by libpython2.1.a(_tkinter.o).
        Use linker option -v to see when and which objects, archives
and dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "Tcl_Free" -- 1st referenced
by libpython2.1.a(_tkinter.o).
        Use linker option -v to see when and which objects, archives
and dsos are loaded.
ld32: ERROR   33 : Unresolved text symbol "Tcl_SplitList" -- 1st
referenced by libpython2.1.a(_tkinter.o).
        Use linker option -v to see when and which objects, archives
and dsos are loaded.



can someone please help me.  Any ideas as to what might be wrong.
thank you in advanced for any help you can give me 

please respond to me as I am not subscribed to the list

Rene



More information about the Python-list mailing list