installing PIL on OSX

Chris Fonnesbeck spam at fisher.forestry.uga.edu
Mon Jun 16 21:12:03 EDT 2003


I am trying to install PIL on OSX using python2.3b, but am having some
problems, apparently related to tcl/tk. Here are the errors:

gcc -Wno-long-double -no-cpp-precomp -fno-common -dynamic -DNDEBUG -g
-O3 -Wall -Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c Tk/tkImaging.c -o
build/temp.darwin-6.6-Power_Macintosh-2.3/Tk/tkImaging.o
In file included from
/Library/Frameworks/Tk.framework/Headers/tk.h:96,
                 from Tk/tkImaging.c:49:
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065: warning:
function declaration isn't a prototype
Tk/tkImaging.c: In function `TkImaging_Init':
Tk/tkImaging.c:198: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
gcc -Wno-long-double -no-cpp-precomp -fno-common -dynamic -DNDEBUG -g
-O3 -Wall -Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c _imagingtk.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/_imagingtk.o
In file included from
/Library/Frameworks/Tk.framework/Headers/tk.h:96,
                 from _imagingtk.c:20:
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:140: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:343: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:462: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:480: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:505: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:506: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:518: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:531: warning:
function declaration isn't a prototype
/Library/Frameworks/Tk.framework/Headers/X11/Xlib.h:1065: warning:
function declaration isn't a prototype
gcc -Wl,-F. -bundle -framework Python
build/temp.darwin-6.6-Power_Macintosh-2.3/_imagingtk.o
build/temp.darwin-6.6-Power_Macintosh-2.3/Tk/tkImaging.o -LlibImaging
-lImaging -o build/lib.darwin-6.6-Power_Macintosh-2.3/_imagingtk.so
ld: Undefined symbols:
_Tcl_AppendResult
_Tcl_CreateCommand
_Tk_FindPhoto
_Tk_PhotoBlank
_Tk_PhotoPutBlock_NoComposite
error: command 'gcc' failed with exit status 1

Any help most appreciated.
cjf




More information about the Python-list mailing list