Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2004 09:50:16 GMT
From:      Nate Eldredge <nge@cs.hmc.edu>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/68194: xdiskusage is broken, workaround found
Message-ID:  <200406220950.i5M9oG0j026203@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/68194; it has been noted by GNATS.

From: Nate Eldredge <nge@cs.hmc.edu>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: Nate Eldredge <nge+freebsd@cs.hmc.edu>, trevor@freebsd.org
Subject: Re: ports/68194: xdiskusage is broken, workaround found
Date: Tue, 22 Jun 2004 02:42:56 -0700 (PDT)

 Ah.  Figured it out.  Not a bug in fltk, it seems.
 
 fltk can optionally be compiled with threads enabled.  If you disable
 fltk's threads, xdiskusage works as is.  If you have threads enabled for
 fltk, you must compile xdiskusage with -pthread (or probably at least
 -lc_r or -DREENTRANT).  Otherwise xdiskusage uses the ordinary stdio calls
 from libc and it doesn't correctly interact with the locking that's being
 done by fltk's threading stuff, resulting in a hang.
 
 I'll leave it to you to figure out the best way of implementing this in
 the makefile...
 
 Thanks!
 
 -- 
 Nate Eldredge
 nge@cs.hmc.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406220950.i5M9oG0j026203>