Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2000 11:30:25 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Alex Lines <linesa@pop.mindspring.com>
Cc:        Brad Knowles <blk@skynet.be>, freebsd-stable@FreeBSD.ORG
Subject:   Re: rawio 1.1 on FreeBSD 4.2-BETA?
Message-ID:  <20001127113025.B27697@echunga.lemis.com>
In-Reply-To: <v04210101b643b3754606@[209.195.2.99]>; from linesa@pop.mindspring.com on Fri, Nov 24, 2000 at 01:02:34AM -0500
References:  <v04220802b63c41d62a7a@[10.0.1.2]> <20001119151418.K52433@echunga.lemis.com> <v04220805b642a82be4c3@[195.238.1.121]> <20001124110814.B10142@echunga.lemis.com> <v04220802b643804acf9b@[10.0.1.3]> <v04210101b643b3754606@[209.195.2.99]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, 24 November 2000 at  1:02:34 -0500, Alex Lines wrote:
>> At 11:08 AM +1030 2000/11/24, Greg Lehey wrote:
>>
>>> At this point, of course, you have your patch-ac again.  Remove it
>>> again, do a make clean and start again.
>>
>>	I checked that before I responded.  There is no patch-ac file
>> in the directory.
>
> in mkrandom.c, change line 57:
>
>          #include "random.h"
>
> to read"
>
>          #include "randoms.h"

No, that's wrong.  randoms.h is a file local to rawio which contains
random numbers.  It doesn't contain the definitions in random.h.

I've been investigating this problem, and it seems we have three
different possible locations for random.h (more if you consider
multiple architectures): /usr/include/random.h,
/usr/include/sys/random.h and /usr/include/machine/random.h.  On my
machine, I have /usr/include/sys/random.h and
/usr/include/machine/random.h.  It seems that the /usr/include/machine
directory only gets installed if you do a buildworld.  It's not in the
binary packages:

  === root@wantadilla (/dev/ttyp6) /cd/1/bin 18 -> cat bin.[a-f]*|tar tzvf -|grep random.h
  -r--r--r-- root/wheel          3203 Jul 28 22:34 2000 usr/include/sys/random.h
  === root@wantadilla (/dev/ttyp6) /cd/1/bin 19 -> 

The contents of the two files are virtually identical, so the correct
action should have been to use sys/random.h.  If you're trying to
compile, try that alternative.

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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