I am trying to build CLucene in Max OS X 10.10. I followed the instructions here. The cmake .. command ran correctly, but after that, when I try to run make with the makefile generated, I get the following error:

I Googled it and found reports of similar errors in some forums, and even found a similar question in Stackoverflow as well: Error when Make CLucene, but nowhere did I find a canonical solution.
What should I do to fix this?