From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Schukat Newsgroups: gmane.lisp.guile.bugs Subject: bug#13768: --without-posix code uses scm_getpid() in libguile-2.0.2 Date: Wed, 20 Feb 2013 00:38:15 +0100 Message-ID: <51240CE7.8030802@email.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361344673 4298 80.91.229.3 (20 Feb 2013 07:17:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2013 07:17:53 +0000 (UTC) To: 13768@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Feb 20 08:18:14 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U83wL-0005r3-JT for guile-bugs@m.gmane.org; Wed, 20 Feb 2013 08:18:05 +0100 Original-Received: from localhost ([::1]:53185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U83w0-00044E-VQ for guile-bugs@m.gmane.org; Wed, 20 Feb 2013 02:17:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wnx-0002av-EO for bug-guile@gnu.org; Tue, 19 Feb 2013 18:40:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7wnu-0007rh-Pn for bug-guile@gnu.org; Tue, 19 Feb 2013 18:40:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wnu-0007rZ-MN for bug-guile@gnu.org; Tue, 19 Feb 2013 18:40:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U7woz-0002Um-U2 for bug-guile@gnu.org; Tue, 19 Feb 2013 18:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan Schukat Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 19 Feb 2013 23:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13768 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13613173199582 (code B ref -1); Tue, 19 Feb 2013 23:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2013 23:41:59 +0000 Original-Received: from localhost ([127.0.0.1]:37562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7wox-0002UV-CT for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:41:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36430) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U7wmd-0002R1-SI for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:39:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7wlW-00070J-0e for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:38:28 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:48793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wlV-00070F-TQ for submit@debbugs.gnu.org; Tue, 19 Feb 2013 18:38:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wlT-00027q-Ea for bug-guile@gnu.org; Tue, 19 Feb 2013 18:38:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7wlQ-0006zD-Ke for bug-guile@gnu.org; Tue, 19 Feb 2013 18:38:23 -0500 Original-Received: from mout.web.de ([212.227.15.4]:56476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7wlQ-0006yx-Ap for bug-guile@gnu.org; Tue, 19 Feb 2013 18:38:20 -0500 Original-Received: from [192.168.0.27] ([85.177.94.120]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MHp4r-1U9JH24A4D-003R15 for ; Wed, 20 Feb 2013 00:38:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 X-Provags-ID: V02:K0:1IRsW5eownVdd5VHZnACb08yB7XcA1S127B1MntPFDM MlM1dTlBOfMxfYm+cvtTGkdQsQqN+PnHXKdgYycVw1m3f5pV+P sF2yntZR7XX9pfnMVBh5HeIP0zryFWc2KbX6C0weVADPmsP8ag 7Olr0CPzS06N7nrpp/x3T7aFn0jZgm+qOVhFVKzpKNCAicKdqH K6xF1KGYbKcvwbYtz4qOg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 19 Feb 2013 18:41:58 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 20 Feb 2013 02:17:43 -0500 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6762 Archived-At: I'm experimenting a little with statically linking a minimal build of libguile. So while no one really would want to build it it with --without-posix (except when you want the same functionality on all platforms including windows in your program), and this is a low priority bug and I can easily fix it myself for my purposes, it is still a bug. What happens is, in random.c in random_state_of_last_resort on line 668 scm_getpid is used to seed the random generator. So either a preprocessor switch or a hand constructed scm like in scm_getpid (scm_from_ulong(getpid())) should be used there. Regards