ports/68194: xdiskusage is broken, workaround found

Nate Eldredge nge at cs.hmc.edu
Tue Jun 22 09:50:27 UTC 2004


The following reply was made to PR ports/68194; it has been noted by GNATS.

From: Nate Eldredge <nge at cs.hmc.edu>
To: FreeBSD-gnats-submit at FreeBSD.org
Cc: Nate Eldredge <nge+freebsd at cs.hmc.edu>, trevor at 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 at cs.hmc.edu



More information about the freebsd-ports-bugs mailing list