HashtableFixOSX

From Inkscape Wiki
Revision as of 17:53, 23 February 2010 by Tweenk (talk | contribs) (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...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

  1. Download SVN revision 104939 of tr1/hashtable from the gcc-4_0-branch SVN repository
  2. 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!