HashtableFixOSX
Jump to navigation
Jump to search
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 due to an outdated header 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!