Summary: | needs to link with -lpthread due to mutex usage in libgoo | ||
---|---|---|---|
Product: | poppler | Reporter: | Michael Banck <mbanck> |
Component: | general | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | samuel.thibault |
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | other | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | proposed patch |
Description
Michael Banck
2006-11-20 05:08:48 UTC
Created attachment 7840 [details] [review] proposed patch does adding -pthread to gcc CXXFLAGS works also for you? (In reply to comment #2) > does adding -pthread to gcc CXXFLAGS works also for you? Yes, that makes it build fine as well, though I am not sure adding it always is desired, but I am not sure about the implications. On some systems (like OSF), adding -pthread in compiler flags is needed as soon as you include pthread.h. So this is needed whenever you include GooMutex.h. What's the status of this? Did it get fixed in the meantime? Michael It doesn't look to be fixed. Only the Qt3 bindings have anything that I can see related to pthread. The original patch can't go in as-is though (because it will break on anything that doesn't have a libpthread). Could you possibly have a look at the m4/qt4.m4 code, and try to come up with an equivalent test? It should try to compile some problematic code, and only add -lpthread if it breaks. 3 years and no answer to Brad questions so i understand you guys are not interested in this anymore, closing it as wontfix. Reopen if you become interested again I have to say I don't remember having seen Brad questions. Anyway, in the meantime goo stopped using aliases, and with the libpthread-stubs library, hurd now has pthread_mutex_* weak symbols which make poppler build, so it's actually fixed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.