[GRASS-dev] r.random still broken on Mac

Michael Barton michael.barton at asu.edu
Thu Sep 28 23:46:04 EDT 2006


Thanks!

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton



> From: William Kyngesburye <woklist at kyngchaos.com>
> Reply-To: William Kyngesburye <kyngchaos at kyngchaos.com>
> Date: Thu, 28 Sep 2006 13:41:07 -0500
> To: Glynn Clements <glynn at gclements.plus.com>
> Cc: Michael Barton <michael.barton at asu.edu>, <grass-dev at grass.itc.it>
> Subject: Re: [GRASS-dev] r.random still broken on Mac
> 
> I just did a quick test - removed __APPLE__ from r.random, so it uses
> the extern lrand48.  I now get a random distribution.
> 
> On Sep 28, 2006, at 12:58 PM, William Kyngesburye wrote:
> 
>> __APPLE__ is still around.  I don't think it'll go away.  Handy
>> little trick I found somewhere:
>> 
>> touch foo.h; cpp -dM foo.h
>> 
>> What was the problem before?  is *rand48 broken on OS X?  I see in
>> my config.h that HAVE_DRAND48 is defined.  Or that having drand48
>> doesn't mean there is lrand48?
>> 
>> If it's broken, I noticed that r.mapcalc's xrand.c also uses
>> lrand48, but it still tests for HAVE_DRAND48 instead of __APPLE__.
>> And it uses a different define for when HAVE_DRAND48 is not defined.
>> 
>> On Sep 28, 2006, at 12:20 PM, Glynn Clements wrote:
>> 
> 
> -----
> William Kyngesburye <kyngchaos at kyngchaos.com>
> http://www.kyngchaos.com/
> 
> All generalizations are dangerous, even this one.
> 
> 




More information about the grass-dev mailing list