From owner-freebsd-stable Sun Nov 26 17: 7:21 2000 Delivered-To: freebsd-stable@freebsd.org Received: from echunga.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 545DE37B4C5 for ; Sun, 26 Nov 2000 17:07:10 -0800 (PST) Received: (from grog@localhost) by echunga.lemis.com (8.11.1/8.9.3) id eAR10Pf28340; Mon, 27 Nov 2000 11:30:25 +1030 (CST) (envelope-from grog) Date: Mon, 27 Nov 2000 11:30:25 +1030 From: Greg Lehey To: Alex Lines Cc: Brad Knowles , freebsd-stable@FreeBSD.ORG Subject: Re: rawio 1.1 on FreeBSD 4.2-BETA? Message-ID: <20001127113025.B27697@echunga.lemis.com> References: <20001119151418.K52433@echunga.lemis.com> <20001124110814.B10142@echunga.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from linesa@pop.mindspring.com on Fri, Nov 24, 2000 at 01:02:34AM -0500 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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