Difference between revisions of "HashtableFixOSX"
Jump to navigation
Jump to search
(Created page with 'Most probably you are here because you encountered this error on configure: error: You have a broken version of the <tr1/unordered_set> header... This is a bug in the Apple-su...') |
m (moved OSXHeaderFix to HashtableFixOSX: better name) |
(No difference)
|
Revision as of 17:55, 23 February 2010
Most probably you are here because you encountered this error on configure:
error: You have a broken version of the <tr1/unordered_set> header...
This is a bug in the Apple-supplied GCC compiler. Here is how to fix it.
- Download SVN revision 104939 of tr1/hashtable from the gcc-4_0-branch SVN repository
- Replace Apple's version with the downloaded file from SVN revision 104939 and restore file permissions and ownership:
- Replace file (assuming the new file is located in ~/Downloads):
$ sudo mv /usr/include/c++/4.0.0/tr1/hashtable /usr/include/c++/4.0.0/tr1/hashtable-orig
$ sudo cp ~/Downloads/hashtable /usr/include/c++/4.0.0/tr1
- Check new file:
$ ls -l /usr/include/c++/4.0.0/tr1/hashtable
- Change permissions/ownership if needed:
$ sudo chmod 644 /usr/include/c++/4.0.0/tr1/hashtable $ sudo chown root:wheel /usr/include/c++/4.0.0/tr1/hashtable
Now it should be fixed!