I think I figured it out. My configuration starts the same as yours and I get the same errors:
% pkg-config --cflags thrift -I/usr/local/Cellar/thrift/0.9.2/include
I made two changes to /usr/local/lib/pkgconfig/thrift.pc :
% cd /usr/local/lib/pkgconfig % perl -pi -e 's{(^includedir=.*/include$)}{$1/thrift}' thrift.pc % perl -pi -e 's{(^Cflags:.*)}{$1 -std=c++11}' thrift.pc
The first adds /thrift to the end of the line includedir= . The second adds the -std=c++11 argument to Cflags to solve the next problem you are facing, namespace problem.
Then your configuration should look like the one shown below, and rhbase installation should succeed, albeit with a lot of warnings.
% pkg-config --cflags thrift -std=c++11 -I/usr/local/Cellar/thrift/0.9.2/include/thrift
source share