From owner-freebsd-perl@FreeBSD.ORG Thu Mar 11 23:06:25 2010 Return-Path: Delivered-To: freebsd-perl@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBF88106564A for ; Thu, 11 Mar 2010 23:06:25 +0000 (UTC) (envelope-from djmitche@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 799348FC12 for ; Thu, 11 Mar 2010 23:06:25 +0000 (UTC) Received: by bwz8 with SMTP id 8so576422bwz.3 for ; Thu, 11 Mar 2010 15:06:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=a/0gs+hfLWCTSfwrZwYcDRYPZ+f/aWGVUxh5AwtC6BU=; b=NqxmlFpBn8pdimLGyELXfIEuztm5n489oZrsh3FNMZ1gnOtrjaqOA5yItISRUWwLDX FUisVbwg63U6xjj3gXgneUKStQwkclMTjEs+6xuLkjDCF1dRionsjir7cQsYsTtfU30j Ihl3obWIXm7AWC670NWCa9XLgXFdZuXDXvMbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=VF//rgsHYn8BJhEBYDrTBWMB8wbnrbVFus95Can7EC6bnKJZT49FeFU2qNX0yK57kW upK5JN9hQENJIvb4+X0eezJp+k0SyaYC6eD2rvlMWmwWpxMqr3agv/Zkpv+OKjmV0k5i 1gxcfKz8u35Uyy98v5+hFWfdCcSoAZApFFee8= MIME-Version: 1.0 Sender: djmitche@gmail.com Received: by 10.204.33.135 with SMTP id h7mr1850744bkd.186.1268348784118; Thu, 11 Mar 2010 15:06:24 -0800 (PST) In-Reply-To: <20100310085434.GA42555@heechee.tobez.org> References: <42338fbf1003091632j1fb96efdrfa0f00d2edf0a9d1@mail.gmail.com> <20100310085434.GA42555@heechee.tobez.org> Date: Thu, 11 Mar 2010 17:06:24 -0600 X-Google-Sender-Auth: 256f22b6230e2f60 Message-ID: <42338fbf1003111506s3cefe525sa5ca3c912cb55239@mail.gmail.com> From: "Dustin J. Mitchell" To: Anton Berezin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-perl@freebsd.org, John Hein Subject: Re: Unthreaded Perl linked to threaded libraries X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 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, 11 Mar 2010 23:06:26 -0000 On Wed, Mar 10, 2010 at 2:54 AM, Anton Berezin wrote: > Can you try and rebuild perl so that it is still not threaded but linked > with -pthread and friends? =C2=A0This would involve copying REINPLACE_CMD= bit > under "if defined(WITH_THREADS)" verbatim to the "else" part, then doing > make clean ; make install FORCE_PKG_REGISTER=3Dyes. Thanks - that worked quite well! Now, the larger question is how to support this in general. I assume that including the above instructions in the Amanda README is a suboptimal solution! John (copied) has suggested using a perl wrapper that adds LD_PRELOAD=3D/lib/libthr.so, which seems to help. Other options: Build a private copy of Perl in the Amanda port, or make Amanda depend on a special linked-with-threads perl port. Figure out and fix the underlying issue that causes this condition to hang (although it's not clear it's a bug). What do you all think? Are there other freebsd lists I should involve in this question? Dustin --=20 Open Source Storage Engineer http://www.zmanda.com