#40899: clucene: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' -------------------------+----------------------------- Reporter: whcordis@… | Owner: dinh.viet.hoa@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: clucene | -------------------------+----------------------------- Comment (by arnolda@…): Replying to [comment:13 egon.geerardyn@…]:
/opt/local/include/CLucene/LuceneThreads.h:56:19: error: unknown type name 'pthread_t'
I had the same problem. Note that the offending LuceneThreads.h comes from /opt/local/include, rather than the build directory, which contains the patched version included pthread.h. cmake includes /opt/local/include for boost, but if an older version of CLucene is already installed in /opt/local, then these older headers are included. I manually solved the problem by telling ccmake not to include /opt/local/include, since it anyways builds against a copy of boost included in the clucene build. So I guess the solution is simply not to include /opt/local/include. -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X