[Pythonmac-SIG] Problem building PIL 1.1.4 from source
W.T. Bridgman
wtbridgman at radix.net
Sat Sep 27 23:25:00 EDT 2003
I'm not sure if these issues are related or not, so I'm posting them
separately with an explanation.
I've been corresponding on the VTK users list about building a standard
'recipe' for getting VTK and MayaVi working under MacOS X (for those
interested, the current draft of the recipe is available through the
discussion list on www.vtk.org).
Anyway, I seem to be able to reliably build VTK with Carbon interfaces
but MayaVi still fails with a segfault when I try to install and run
it. Doing a 'vtkpython -v mayavi' displayed a failure right around
loading tkFileDialog.py. However, this file seems to load fine on it's
own.
One of the possible issues for the MayaVi failure I'm pursuing is that
there could be something missing between building Python with Tkinter
from source vs. installation via PackageManager. I had previously
installed Tkinter from PM and am now doing it by installing
TclTkAqua.dmg and then building Python and additional components from
the source packages.
In this build I got a failure when building PIL 1.1.4 from source. My
configuration log shows that I had previously successfully built PIL
1.1.3 from source so I suspect some difference in my installation.
This looks like a link error but I'm unsure how to fix it. Please see
my next message on the interesting MayaVi effects I encountered.
BTW, TckTkAqua.dmg is 8.4.4 and I'm using the Python 2.3 tarball for
the source build. It seemed to find and configure for Tk just fine.
Build log below...
Any ideas?
Thanks,
Tom
[Dirac:Users/bridgman/Imaging-1.1.4] bridgman% python setup.py build
running build
running build_py
creating build
creating build/lib.darwin-6.6-Power_Macintosh-2.3
copying PIL/__init__.py -> build/lib.darwin-6.6-Power_Macintosh-2.3
copying PIL/ArgImagePlugin.py ->
build/lib.darwin-6.6-Power_Macintosh-2.3
[..successful copies deleted..]
copying PIL/XVThumbImagePlugin.py ->
build/lib.darwin-6.6-Power_Macintosh-2.3
running build_ext
building '_imaging' extension
creating build/temp.darwin-6.6-Power_Macintosh-2.3
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c display.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/display.o
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c _imaging.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/_imaging.o
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c path.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/path.o
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c map.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/map.o
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c decode.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/decode.o
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c encode.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/encode.o
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3
-c outline.c -o build/temp.darwin-6.6-Power_Macintosh-2.3/outline.o
gcc -Wl,-F. -bundle -framework Python
build/temp.darwin-6.6-Power_Macintosh-2.3/_imaging.o
build/temp.darwin-6.6-Power_Macintosh-2.3/decode.o
build/temp.darwin-6.6-Power_Macintosh-2.3/encode.o
build/temp.darwin-6.6-Power_Macintosh-2.3/map.o
build/temp.darwin-6.6-Power_Macintosh-2.3/display.o
build/temp.darwin-6.6-Power_Macintosh-2.3/outline.o
build/temp.darwin-6.6-Power_Macintosh-2.3/path.o -LlibImaging -lImaging
-lz -o build/lib.darwin-6.6-Power_Macintosh-2.3/_imaging.so
building '_imagingtk' extension
creating build/temp.darwin-6.6-Power_Macintosh-2.3/Tk
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -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 -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -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
[Dirac:Users/bridgman/Imaging-1.1.4] bridgman%
More information about the Pythonmac-SIG
mailing list