I'm trying to build 2.0 on my Debian box, but I'm having some trouble getting Tkinter set up properly and I'm hoping somebody can clear up the trouble I'm having.
First off, here's the message that I get from 'make' before it pukes: gcc -Xlinker -export-dynamic python.o \ ../libpython2.0.a -ldb -lreadline -ltermcap -lBLT8.2 -L/usr/lib -ltk8.2 -ltcl8.2 -L/usr/X11R6/lib -lX11 -lncurses -ltermcap -lndbm -L/usr/local/lib -lgdbm -L/usr/local/lib -lz -lpthread -ldl -lutil -lm -o python ../libpython2.0.a(tkappinit.o): In function `Tcl_AppInit': /usr/local/src/Python-2.0/Modules/./tkappinit.c:45: undefined reference to `TkImaging_Init' collect2: ld returned 1 exit status make[1]: *** [link] Error 1 make[1]: Leaving directory `/usr/local/src/Python-2.0/Modules' make: *** [python] Error 2 So AFAIU, ld isn't finding the library where TkImaging_Init() is defined. However, looking at the command line for gcc, everything meshes with where stuff is actually living on my box. Here's what the relevant part of my Modules/Setup file says: # *** Always uncomment this (leave the leading underscore in!): _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \ # *** Uncomment and edit to reflect where your Tcl/Tk headers are: # -I/usr/local/include \ -I/usr/include \ # *** Uncomment and edit to reflect where your X11 header files are: # -I/usr/X11R6/include/X11 \ -I/usr/X11R6/include \ # *** Or uncomment this for Solaris: # -I/usr/openwin/include \ # *** Uncomment and edit for Tix extension only: # -DWITH_TIX -ltix4.1.8.0 \ # *** Uncomment and edit for BLT extension only: # -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \ -DWITH_BLT -I/usr/include -lBLT8.2 \ # *** Uncomment and edit for PIL (TkImaging) extension only: # -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \ # *** Uncomment and edit for TOGL extension only: # -DWITH_TOGL togl.c \ # *** Uncomment and edit to reflect where your Tcl/Tk libraries are: -L/usr/lib \ # *** 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 Like I said, all of these are in agreement with my system's setup. Has anybody built this with a fairly basic version of Debian Potato? Can you tell me where I'm going wrong and what I need to do to fix it? Thanks a lot. Dinking-around-with-this-instead-of-doing-my-"real"-work-ly y'rs, ---------------------------------------------------------------------- Stephen W. Juranich [EMAIL PROTECTED] Electrical Engineering http://students.washington.edu/sjuranic University of Washington http://rcs.ee.washington.edu/ssli