W dniu 15 stycznia 2010 08:39 użytkownik ~suv <suv-sf@...58...> napisał:
Can you confirm it is part of bug 23465 in gcc that has been resolved long time ago? Apparently Apple never completely fixed the broken version installed with Tiger and Leopard:
Yes, we are hitting this bug.
By the way, the configure stanza for Apple's gcc-4.2 looks wrong.
Configured with: /var/tmp/gcc_42/gcc_42-5577~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-gxx-include-dir=/usr/include/c++/4.0.0 --host=i686-apple-darwin9 --target=i686-apple-darwin9
Note that is says "--with-gxx-include-dir=/include/c++/4.0.0", and headers <= 4.0.2 are broken. It should say something like "--with-gxx-include-dir=/include/c++/4.2.1". I have no idea why they did this.
The fixes described at http://mohri-lt.cs.nyu.edu/twiki/bin/view/FST/CompilingOnMacOSX should work. Check whether you can compile rev 8979 or the test with one of them. If it works, I will change back to using TR1 unordered_set/map and add some configure code to detect the broken headers.
Regards, Krzysztof