[MacPorts] #40899: LuceneThreads.h:58:34: error: unknown type name 'pthread_t'
#40899: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' ------------------------+-------------------------------- Reporter: whcordis@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: mavericks | Port: ------------------------+-------------------------------- CLucern fails to compile on MacOS 10.9 (Mavericks) with the following error: {{{ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_clucene/clucene/work /clucene-core-2.3.3.4/src/shared/CLucene/LuceneThreads.h:56:19: error: unknown type name 'pthread_t' :info:build static _LUCENE_THREADID_TYPE _GetCurrentThreadId(); :info:build ^ :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_clucene/clucene/work /clucene-core-2.3.3.4/src/shared/CLucene/LuceneThreads.h:40:41: note: expanded from macro '_LUCENE_THREADID_TYPE' :info:build #define _LUCENE_THREADID_TYPE pthread_t }}} -- Ticket URL: <https://trac.macports.org/ticket/40899> MacPorts <http://www.macports.org/> Ports system for OS X
#40899: clucene: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' -------------------------+----------------------------- Reporter: whcordis@… | Owner: dinh.viet.hoa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: clucene | -------------------------+----------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => dinh.viet.hoa@… * port: => clucene -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40899: clucene: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' -------------------------+----------------------------- Reporter: whcordis@… | Owner: dinh.viet.hoa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: clucene | -------------------------+----------------------------- Comment (by ryandesign@…): Presumably you mean Xcode 5.0.1; I don't think 5.1 exists yet. -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40899: clucene: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' -------------------------+----------------------------- Reporter: whcordis@… | Owner: dinh.viet.hoa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: mavericks Port: clucene | -------------------------+----------------------------- Changes (by ryandesign@…): * cc: lodovico.ratti@… (added) Comment: Has duplicate #41148. -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#40899: clucene: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' -------------------------+----------------------------- Reporter: whcordis@… | Owner: dinh.viet.hoa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: mavericks Port: clucene | -------------------------+----------------------------- Changes (by ryandesign@…): * status: new => closed * cc: ryandesign@… (added) * resolution: => fixed Comment: r112875 -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#40899: clucene: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' -------------------------+----------------------------- Reporter: whcordis@… | Owner: dinh.viet.hoa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: mavericks Port: clucene | -------------------------+----------------------------- Comment (by diochnos@…): Replying to [comment:11 ryandesign@…]:
r112875
I am afraid it is not fixed yet. See the file clucene-main.log.tar.gz which is attached. -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#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 | -------------------------+----------------------------- Changes (by egon.geerardyn@…): * status: closed => reopened * resolution: fixed => Comment: It is not fixed here either. I get a similar log trace when trying to run the afflicted `make`, the following errors pop up: {{{ /opt/local/include/CLucene/LuceneThreads.h:56:19: error: unknown type name 'pthread_t' static _LUCENE_THREADID_TYPE _GetCurrentThreadId(); ^ /opt/local/include/CLucene/LuceneThreads.h:40:41: note: expanded from macro '_LUCENE_THREADID_TYPE' #define _LUCENE_THREADID_TYPE pthread_t ^ /opt/local/include/CLucene/LuceneThreads.h:57:18: error: unknown type name 'pthread_t' static _LUCENE_THREADID_TYPE CreateThread(luceneThreadStartRoutine* func, void* arg); ^ /opt/local/include/CLucene/LuceneThreads.h:40:41: note: expanded from macro '_LUCENE_THREADID_TYPE' #define _LUCENE_THREADID_TYPE pthread_t ^ /opt/local/include/CLucene/LuceneThreads.h:58:34: error: unknown type name 'pthread_t' static void JoinThread(_LUCENE_THREADID_TYPE id); ^ /opt/local/include/CLucene/LuceneThreads.h:40:41: note: expanded from macro '_LUCENE_THREADID_TYPE' #define _LUCENE_THREADID_TYPE pthread_t }}} -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#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
#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 egon.geerardyn@…): Replying to [comment:14 arnolda@…]:
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.
Could you describe how/where to do that? I'm not that accustomed to using `cmake`. -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#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 ryandesign@…): Replying to [comment:14 arnolda@…]:
but if an older version of CLucene is already installed in /opt/local
How could an older version of CLucene already be installed, since this bug report is about how it doesn't build? -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#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 mymacports@…): Replying to [comment:17 ryandesign@…]:
Replying to [comment:14 arnolda@…]:
but if an older version of CLucene is already installed in /opt/local
How could an older version of CLucene already be installed, since this bug report is about how it doesn't build?[[BR]]
I get the ":info:build /opt/local/include/CLucene/LuceneThreads.h:58:34: error: unknown type name 'pthread_t'" errors when doing 'port upgrade outdated'[[BR]] and[[BR]] 'port installed clucene' gives:[[BR]] The following ports are currently installed:[[BR]] clucene @2.3.3.4_0 (active) -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#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 | -------------------------+----------------------------- Changes (by ryandesign@…): * cc: arnolda@… (added) Comment: Sounds like you didn't follow [wiki:Migration migration instrucitons]! -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
#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 soehn@…): Replying to [comment:15 egon.geerardyn@…]:
Replying to [comment:14 arnolda@…]:
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.
Could you describe how/where to do that? I'm not that accustomed to using `cmake`.
An easier solution (for those who did not follow the migration instructions): Type sudo port uninstall -f clucene sudo port install clucene -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:20> MacPorts <http://www.macports.org/> Ports system for OS X
#40899: clucene: LuceneThreads.h:58:34: error: unknown type name 'pthread_t' -------------------------+----------------------------- Reporter: whcordis@… | Owner: dinh.viet.hoa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: mavericks Port: clucene | -------------------------+----------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: Those who did not follow migration instructions should do so now. Meanwhile I've worked around the problem in r112901. -- Ticket URL: <https://trac.macports.org/ticket/40899#comment:21> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts