From owner-freebsd-perl@FreeBSD.ORG Mon May 31 11:03:29 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A48A16A4D4 for ; Mon, 31 May 2004 11:03:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21FD343D48 for ; Mon, 31 May 2004 11:03:29 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i4VI37fm024236 for ; Mon, 31 May 2004 11:03:07 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4VI36UD024230 for perl@freebsd.org; Mon, 31 May 2004 11:03:06 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 31 May 2004 11:03:06 -0700 (PDT) Message-Id: <200405311803.i4VI36UD024230@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: perl@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 18:03:29 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/09/28] bin/57315 perl Safe.pm security hole in 4.x base system' 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/02/13] ports/62825 perl conflict between perl-5.8.2 and other por o [2004/03/02] ports/63670 perl 'Unable to read from thread kernel pipe' 2 problems total. Non-critical problems From owner-freebsd-perl@FreeBSD.ORG Thu Jun 3 14:26:32 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46FF616A4CE for ; Thu, 3 Jun 2004 14:26:32 -0700 (PDT) Received: from mail01.stbernard.com (mail01.stbernard.com [199.245.188.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D75143D31 for ; Thu, 3 Jun 2004 14:26:32 -0700 (PDT) (envelope-from cjones@stbernard.com) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 3 Jun 2004 14:26:31 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE: Math::TrulyRandom not working in FreeBSD 5.2.1 Thread-Index: AcRJsXCnzwbB7H0KQ8CWkozEjuAL3g== From: "Cory Jones" To: Subject: RE: Math::TrulyRandom not working in FreeBSD 5.2.1 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 21:26:32 -0000 Kelly Hall wrote: >>The module Math::TrulyRandom is not working in FreeBSD 5.2.1. I = installed perl 5.6.1 via ports, and installed >>>>>>Math::TrulyRandom = via CPAN. >> >>"make test" hangs forever. >> >>A solution is to add the statement: >>return 0; >>as the last line of the function tick() in the file truerand.c. >> >>I can only guess that GCC is having issues? I found that making env, count, ocount, and buffer in truerand.c = volatile (atomic) fixes the problem. It appears (from my very limited = understanding :-) since it is possible that an interrupt may occur = during the middle of some operation for example an assignment operation = it can cause trouble. Using volatile on these data objects ensures they = are atomic or uninterruptible. Anyways here a diff of the changes I made = to truerand.c: ~Cory $ diff -r -u truerand.orignal truerand.c --- truerand.orignal Thu Jun 3 13:55:39 2004 +++ truerand.c Thu Jun 3 13:56:06 2004 @@ -46,10 +46,10 @@ #include "truerand.h" -static jmp_buf env; -static unsigned count; -static unsigned ocount; -static unsigned buffer; +static volatile jmp_buf env; +static volatile unsigned count; +static volatile unsigned ocount; +static volatile unsigned buffer; static int tick() From owner-freebsd-perl@FreeBSD.ORG Sat Jun 5 07:12:24 2004 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D887816A4CE for ; Sat, 5 Jun 2004 07:12:24 -0700 (PDT) Received: from saronni.int.networktest.com (ns.networktest.com [64.239.163.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id A297443D49 for ; Sat, 5 Jun 2004 07:12:24 -0700 (PDT) (envelope-from dnewman@networktest.com) Received: from localhost (localhost.int.networktest.com [127.0.0.1]) by saronni.int.networktest.com (Postfix) with ESMTP id DE9DC170CC for ; Sat, 5 Jun 2004 07:11:31 -0700 (PDT) Received: from saronni.int.networktest.com ([127.0.0.1])port 10024) with ESMTP id 82443-09 for ; Sat, 5 Jun 2004 07:11:26 -0700 (PDT) Received: from saronni.int.networktest.com (saronni.int.networktest.com [128.0.0.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by saronni.int.networktest.com (Postfix) with ESMTP id 1EC7C170C9 for ; Sat, 5 Jun 2004 07:11:26 -0700 (PDT) Date: Sat, 5 Jun 2004 07:11:25 -0700 (PDT) From: David Newman X-X-Sender: dnewman@saronni.int.networktest.com To: freebsd-perl@freebsd.org Message-ID: <20040605070959.R83193@saronni.int.networktest.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Bundle::CPAN problems on FBSD 5.2.1 X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 14:12:25 -0000 1. Install FreeBSD 5.2.1 2. Install perl 5.8.2 from ports 3. use.perl ports 4. perl -MCPAN -e 'install Bundle::CPAN' 5. At end of install messages: Can't locate File/Spec.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.2/mach /usr/local/lib/perl5/site_perl/5.8.2 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.2/BSDPAN /usr/local/lib/perl5/5.8.2/mach /usr/local/lib/perl5/5.8.2 .) at /usr/local/lib/perl5/5.8.2/ExtUtils/Liblist.pm line 6. BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.2/ExtUtils/Liblist.pm line 6. Compilation failed in require at /usr/local/lib/perl5/5.8.2/ExtUtils/MM.pm line 8. Compilation failed in require at /usr/local/lib/perl5/5.8.2/ExtUtils/MakeMaker.pm line 37. Compilation failed in require at Makefile.PL line 1. BEGIN failed--compilation aborted at Makefile.PL line 1. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install CPAN is up to date. Bundle summary: The following items in bundle Bundle::CPAN had installation problems: File::Spec Archive::Tar Bundle::libnet Term::ReadKey Term::ReadLine::Perl and the following items had problems during recursive bundle calls: Net::Cmd Net::Telnet 6. Subsequent attempts to start CPAN or to install File::Spec fail -- because File::Spec is gone. Only resolution I've found is to deinstall/reinstall perl5.8 from ports. I really need to install various modules. How can I fix the CPAN routine? Thanks in advance David Newman -- To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org