Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 2010 21:56:55 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Ashish SHUKLA <ashish@FreeBSD.org>
Cc:        perl@FreeBSD.org, freebsd-ports@FreeBSD.org
Subject:   Re: lang/perl5.10 doesn't build with gcc 4.5.1
Message-ID:  <4C204297.8060600@FreeBSD.org>
In-Reply-To: <86631ekm61.fsf@chateau.d.if>
References:  <4C1C5275.9000907@FreeBSD.org> <86631ekm61.fsf@chateau.d.if>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C204297.8060600>