From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19993 invoked from network); 21 Feb 2021 01:45:15 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 21 Feb 2021 01:45:15 -0000 Received: from 5ess.inri.net ([107.191.111.177]) by 1ess; Sat Feb 20 20:39:11 -0500 2021 Received: from [127.0.0.1] ([104.59.85.219]) by 5ess; Sat Feb 20 20:39:10 -0500 2021 Date: Sat, 20 Feb 2021 20:39:08 -0500 From: Stanley Lieber To: 9front@9front.org In-Reply-To: <39A9B17D51CA53B178DD683DA5835699@eigenstate.org> References: <39A9B17D51CA53B178DD683DA5835699@eigenstate.org> Message-ID: <3789890B-B415-4EC6-9CF6-5CD18188D073@stanleylieber.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: RESTful CSS configuration-oriented configuration just-in-time storage polling locator Subject: Re: [9front] tlsclient and hjgit for unix. Reply-To: 9front@9front.org Precedence: bulk On February 20, 2021 7:24:50 PM EST, ori@eigenstate=2Eorg wrote: >Quoth sl@stanleylieber=2Ecom: >> awesome! i have immediate use for this=2E >>=20 >> on openbsd, build dies here: >>=20 >> gcc -Wall -Wno-missing-braces -Wno-parentheses -ggdb -I=2E=2E -I=2E=2E/= include -c -D_THREAD_SAFE -O2 -c genrandom=2Ec >> genrandom=2Ec:6:24: error: sys/random=2Eh: No such file or directory >> genrandom=2Ec: In function 'genrandom': >> genrandom=2Ec:11: warning: implicit declaration of function 'getrandom' >> *** Error 1 in libc (:87 'genrandom=2Eo') >> *** Error 2 in /home/sl/src/tlsclient (Makefile:34 'libc/libc=2Ea') >>=20 >> sl > >Give this a shot=2E >It should work at least on FreeBSD, OpenBSD, and Ubuntu=2E > > >diff --git a/libc/genrandom=2Ec b/libc/genrandom=2Ec >index 42522aa=2E=2E890c291 100644 >--- a/libc/genrandom=2Ec >+++ b/libc/genrandom=2Ec >@@ -3,10 +3,10 @@ >=20 > #undef long > #undef ulong >-#include >+#include >=20 > void > genrandom(uchar *buf, int nbytes) > { >- getrandom(buf, nbytes, 0); >+ getentropy(buf, nbytes); > } > > that worked, thanks=2E now: rachael$ 9cpu =20 =2E/9cpu[35]: syntax error: `(' unexpected sl