From owner-svn-src-head@FreeBSD.ORG Thu Aug 29 16:14:29 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D5E2E60F; Thu, 29 Aug 2013 16:14:29 +0000 (UTC) (envelope-from eblake@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx1.freebsd.org (Postfix) with ESMTP id 9997C24EF; Thu, 29 Aug 2013 16:14:29 +0000 (UTC) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r7TGESWg018064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 29 Aug 2013 12:14:28 -0400 Received: from [10.3.113.179] (ovpn-113-179.phx2.redhat.com [10.3.113.179]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r7TGERqS026364; Thu, 29 Aug 2013 12:14:27 -0400 Message-ID: <521F7363.3080804@redhat.com> Date: Thu, 29 Aug 2013 10:14:27 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 Subject: Re: [libvirt] FreeBSD, no gcc present libvirt build issue References: <521F63F4.4020406@redhat.com> <521F6C0F.9060007@redhat.com> <521F6E54.1070104@redhat.com> In-Reply-To: <521F6E54.1070104@redhat.com> X-Enigmail-Version: 1.5.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GxO1kqv1WdcE6B3Pg9vp8CaIE1WDVcvx1" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Cc: svn-src-head@freebsd.org, libvir-list , Jason Helfman X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 16:14:29 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GxO1kqv1WdcE6B3Pg9vp8CaIE1WDVcvx1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/29/2013 09:52 AM, Eric Blake wrote: >>> >>> #define RAND_MAX 0x7ffffffd >> >> Huh? Why is this not 2**n-1? That violates assumptions we have made,= >> and is WHY your compile failed. It has nothing to do with clang vs. g= cc >> (both compilers would fail), it has to do with your changed system >> header resulting in violating assumptions that hold in ALL OTHER >> IMPLEMENTATIONS, that random numbers are evenly distributed within a >> range of a power of 2. >> >=20 > http://lists.freebsd.org/pipermail/svn-src-head/2013-July/049076.html >=20 > makes it look like the reduction in range was _intentional_? Yuck. A > non-power-of-2 random generator adds needless complexity to the user. >=20 >=20 > I also intend to open a bug against POSIX to request that RAND_MAX be > required to be 2**n-1, rather than relying on the assumption that > everyone so far, until FreeBSD 10, has happened to meet that requiremen= t. http://austingroupbugs.net/view.php?id=3D743 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --GxO1kqv1WdcE6B3Pg9vp8CaIE1WDVcvx1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSH3NjAAoJEKeha0olJ0Nqz1gIAKiIF3hO4U9zqq2kpdsfQyFM XzYK0/FrPlQpszBjf0XZ6EiIFfEXUMjY8GB+PvxVN7Nl5ImuzQRuT7HH8b91U4XS bsHKrvtHpqGGiuX1rf1Yk762dRlDqVu+LG0Wmuxy13Jd4IoRaCkZNK9ZdyTamNSp DFSg0tqdIVfNifCFdTzLrBn6OlE+NdfAU+FOS/TMEZcGBmslaYAPbuqiZhvxIdTB 8KcrujuNkhknKtEuheaQj1he3eDCtliohIGiqbwo/Obbq4WqzoAdQY2CmSGv/NvN 0/kNznxFpY4EAcEA5q0JQGzdTP4KdfXiEP7kP3RThNMOhI6q+5sjAJ8rG5D9nyw= =WX7j -----END PGP SIGNATURE----- --GxO1kqv1WdcE6B3Pg9vp8CaIE1WDVcvx1--