I have the same problem. I used toolchain with gcc-3.4.6 built from buildroot.

I guess configuration of buildroot cause the problem. All index( ) in headers become index after pre-processor.

I know it is not a good idea, but I add:

#ifdef index
#undef index
#endif

on every wrong place of header and source files.

For example:
vi src/corelib/kernel/qabstractitemmodel.h:
___138#ifdef index
___139#undef index
___140#endif
___141 virtual QModelIndex index(int row, int column,

It works, but not good.
Where can i find a good toolchain for compile these?