From owner-freebsd-perl@FreeBSD.ORG Tue Jun 22 04:57:01 2010 Return-Path: Delivered-To: perl@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 278911065675 for ; Tue, 22 Jun 2010 04:57:01 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 90FBC8FC23 for ; Tue, 22 Jun 2010 04:57:00 +0000 (UTC) Received: (qmail 16835 invoked by uid 399); 22 Jun 2010 04:56:59 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 22 Jun 2010 04:56:59 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4C204297.8060600@FreeBSD.org> Date: Mon, 21 Jun 2010 21:56:55 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: Ashish SHUKLA References: <4C1C5275.9000907@FreeBSD.org> <86631ekm61.fsf@chateau.d.if> In-Reply-To: <86631ekm61.fsf@chateau.d.if> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: multipart/mixed; boundary="------------040406030301040905040603" Cc: perl@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: lang/perl5.10 doesn't build with gcc 4.5.1 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: Tue, 22 Jun 2010 04:57:01 -0000 This is a multi-part message in MIME format. --------------040406030301040905040603 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 06/20/10 03:56, Ashish SHUKLA wrote: > Try adding '-lssp_nonshared' to the LDFLAGS. Thanks for the suggestion, but that didn't help. What did help is the attached patch, which doesn't fix, but does avoid the problem with trying to find libssp. With that patch the resulting perl passed all the tests except for the 5 in the attached file. So, if it's desirable to build perl with -fstack-protector (and it almost certainly is) then the long term solution needs to be to detect what gcc we're building with and add the right flags to the linker so that libssp can be found in (for example) /usr/local/lib/gcc45/libssp.so.0 Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ --------------040406030301040905040603 Content-Type: text/plain; name="perl-tests" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="perl-tests" ext/IO/t/io_xs................................................ok ext/IPC-SysV/t/ipcsysv........................................# Failed test 'right length' # at ../ext/IPC-SysV/t/ipcsysv.t line 256. # got: '0' # expected: '10' FAILED at test 12 ext/IPC-SysV/t/msg............................................# Failed test 'qnum' # at ../ext/IPC-SysV/t/msg.t line 84. # got: '21701' # expected: '1' FAILED at test 4 ext/IPC-SysV/t/podcov.........................................skipped ext/IPC-SysV/t/pod............................................skipped ext/IPC-SysV/t/sem............................................# Failed test 'set all' # at ../ext/IPC-SysV/t/sem.t line 79. FAILED at test 3 ext/IPC-SysV/t/shm............................................# Failed test 'cpid' # at ../ext/IPC-SysV/t/shm.t line 66. # got: '0' # expected: '21705' FAILED at test 4 ext/List-Util/t/00version.....................................ok lib/AnyDBM_File...............................................ok lib/Archive/Extract/t/01_Archive-Extract......................# Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)' # at ../lib/Archive/Extract/t/01_Archive-Extract.t line 427. FAILED at test 83 lib/Archive/Tar/t/01_use......................................ok --------------040406030301040905040603 Content-Type: text/plain; name="perl-Configure.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="perl-Configure.diff" --- Configure.bak 2009-08-18 12:03:53.000000000 -0700 +++ Configure 2010-06-21 21:19:02.000000000 -0700 @@ -5147,7 +5147,7 @@ # as that way the compiler can do the right implementation dependant # thing. (NWC) case "$gccversion" in - ?*) set stack-protector -fstack-protector + ?*) eval $checkccflag ;; esac --------------040406030301040905040603--