/usr/include/tk.h is broken because /usr/include/X11/ does not exist
| Originator: | Per.Mildner.usenet | ||
| Number: | rdar://15303626 | Date Originated: | 24-Oct-2013 00:26 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: | always |
Summary:
/usr/include/tk.h does #include<X11/Xlib.h> but there is no /usr/include/X11/
Steps to Reproduce:
1. xcode-select --install (creates /usr/include/)
2. echo '#include <tk.h>' > foo.c
3. cc -c foo.c
Expected Results:
Successful compilation.
Actual Results:
In file included from foo.c:1:
/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found
# include <X11/Xlib.h>
^
1 error generated.
Version:
OS X 10.9 (13A603), XCode 5.0.1 (5A2053)
Notes:
The problem is that /usr/include/tk.h is symbolic link to /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/tk.h, and there is a /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ directory but no symbolic link from /usr/include/X11 to /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/.
The following works:
cc -I /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -c foo.c
(alternatively tk.h could be removed from /usr/include/ since the presence of a broken file is much worse then complete absence)
Configuration:
Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!