From owner-freebsd-ports@FreeBSD.ORG Tue Jul 20 15:04:46 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A67581065672 for ; Tue, 20 Jul 2010 15:04:46 +0000 (UTC) (envelope-from ssanbeg@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 72FEC8FC17 for ; Tue, 20 Jul 2010 15:04:46 +0000 (UTC) Received: by pvh1 with SMTP id 1so2503925pvh.13 for ; Tue, 20 Jul 2010 08:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:x-mimeole; bh=Q+wdSODGeiQNRyb1p/tl9BzxpcGNBsR3yreZSFLQNxQ=; b=o4l+4elodJ3+ARY/1bTiWk4oiNabw9RfjNy+lh7GH96stFsjDVKhqauYoH00X+Xwea Fw6POx9jsh6j+2PqAaPTXisbAgqn68DeeTNarpjZ/wjA1pKKhtf0uWGSFUY+y98y7jjo dOwrqnYl1UwNpPNqIinbMjMaf3IIWLe5dL1DU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:x-mimeole; b=OQgpOMNcJK6t4yytyeKhueEqYT0g2+M/1wdMWIn8iSs7f4qWRdqUtnSmgTqW005g38 h42HM/GSzMk8+lhZJ9O0v3tBPo5gdrGBiqtaINz+TebdrfSPiMHbnWbp3sQ8ewWrtxmy 4WlcMT6O6sxn+uPtoTBJYpQrTGtY3Srzj+eDA= Received: by 10.142.144.16 with SMTP id r16mr7887605wfd.312.1279636663629; Tue, 20 Jul 2010 07:37:43 -0700 (PDT) Received: from sunrise (pool-98-117-108-60.sttlwa.fios.verizon.net [98.117.108.60]) by mx.google.com with ESMTPS id b23sm5482194rvf.6.2010.07.20.07.37.41 (version=SSLv3 cipher=RC4-MD5); Tue, 20 Jul 2010 07:37:42 -0700 (PDT) From: "Scott Sanbeg" To: "'Christopher Key'" References: <20100717041919.70411.qmail@exxodus.fedaykin.here> <4C414AB5.1060305@gwdg.de> <4C43CA8D.3090404@cam.ac.uk> In-Reply-To: <4C43CA8D.3090404@cam.ac.uk> Date: Tue, 20 Jul 2010 07:37:37 -0700 Message-ID: <34E328CA9DFF430C83108175DB941C79@sunrise> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acsm9Qc1TBUdeFjUTOidFCgkjqytpwBI87JQ X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18197 Cc: ports@freebsd.org Subject: RE: lang/perl5.12 segfault (amd64 - 8-STABLE) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jul 2010 15:04:46 -0000 The patch could possibly solve my challenge, but if it works then why do I get this? root@anchorage:/usr/ports/lang/perl5.12# patch < my.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- files/patch-freebsd.sh 2009-01-13 21:38:50.000000000 +0000 |+++ files/patch-freebsd.sh 2010-07-16 21:46:31.000000000 +0100 -------------------------- Patching file files/patch-freebsd.sh using Plan A... patch: **** malformed patch at line 8: @@ -88,6 +88,8 @@ Scott -----Original Message----- From: owner-freebsd-ports@freebsd.org [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Christopher Key Sent: Sunday, July 18, 2010 8:46 PM To: ports@freebsd.org Subject: Re: lang/perl5.12 segfault (amd64 - 8-STABLE) cjk32@cam.ac.uk wrote: > Someone who understands the perl threading internals needs to figure > this out. > > Simple solution, there was a missing -lpthread, patch available from: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/148648 For some reason, linking binaries without -lpthread succeeds, but the pthread calls in the resulting binary do nothing. #v+ # cat pthread.c #include #include #include int main(void) { int i; pthread_key_t k; k = 1234; i = pthread_key_create(&k, NULL); fprintf(stderr, "%d %d\n", i, (int) k); return 0; } # gcc pthread.c -o pt1 # gcc pthread.c -lpthread -o pt2 # ./pt1 0 1234 # ./pt2 0 0 #v- _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"