Date: Tue, 28 Aug 2012 00:33:47 GMT From: Oliver Heesakkers <dev2@heesakkers.info> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/171132: [patch?] astro/stellarium segfault on missing pthread Message-ID: <201208280033.q7S0XlDS067719@red.freebsd.org> Resent-Message-ID: <201208280040.q7S0e1MP052392@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 171132 >Category: ports >Synopsis: [patch?] astro/stellarium segfault on missing pthread >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 28 00:40:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Oliver Heesakkers >Release: FreeBSD 9.0-RELEASE-p3 >Organization: >Environment: >Description: For a while now Stellarium would segfault immediately after running, gdb shows something like: 0x4826a2c2 in pthread_mutexattr_setkind_np () from /lib/libthr.so.3 >How-To-Repeat: Install then (try to) run stellarium >Fix: On the web it was suggested to add -pthread to the compile flags, so I added -pthread to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS on lines 89 and 90 of CMakeLists.txt, which solved the problem for me. I don't know whether there is a more correct way of handling this and CMakeList.txt is already touched from the Makefile, so I chose to not include a literal patch in this report. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208280033.q7S0XlDS067719>