New submission from Ronald Oussoren:
When you build python on an OSX 10.9 machine with Xcode but without the
command-line tools installed that build mostly succeeds, but Tkinter fails to
build.
The following error message is from a 2.7 build, but the same problem occurs
when building 3.3 and 3.4:
clang -fno-strict-aliasing -fno-common -dynamic -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
-fexceptions -g -O0 -Wall -Wstrict-prototypes -DWITH_APPINIT=1
-I/System/Library/Frameworks/Tcl.framework/Headers
-I/System/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/System/Library/Frameworks/Tk.framework/Headers
-I/System/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/X11R6/include -I/Users/ronald/Projects/python/rw/2.7/Mac/Include -I.
-IInclude -I../Include -I/Users/ronald/Projects/python/rw/2.7/Include
-I/Users/ronald/Projects/python/rw/2.7/build -c
/Users/ronald/Projects/python/rw/2.7/Modules/_tkinter.c -o
build/temp.macosx-10.8-intel-2.7-pydebug/Users/ronald/Projects/python/rw/2.7/Modules/_tkinter.o
-framework Tk -arch x86_64 -arch i386
clang: warning: -framework Tk: 'linker' input unused
In file included from
/Users/ronald/Projects/python/rw/2.7/Modules/_tkinter.c:71:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11:
fatal error:
'X11/Xlib.h' file not found
# include <X11/Xlib.h>
^
1 error generated.
NOTE: I haven't tried building with the command-line tools for xcode installed,
I have a freshly installed system and want to try to live without these tools
because that makes it easier to upgrade xcode.
----------
components: Build
messages: 205953
nosy: hynek, ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: MacOSX: Tkinter build failure when building without command-line tools
type: compile error
versions: Python 2.7, Python 3.3, Python 3.4
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19961>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com