From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 22:00:31 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 058BD106566B; Thu, 16 Jul 2009 22:00:31 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 052B68FC16; Thu, 16 Jul 2009 22:00:29 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: by fg-out-1718.google.com with SMTP id 13so128479fge.12 for ; Thu, 16 Jul 2009 15:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=s7BMWuZEr8ZtJekdDpsd5EcAsXEfaLJoDrZQmUYwV5w=; b=SjMjKGsHBU5dZeCt1ez/3/89O+AVXebQi7wJkHJStCDtUWtFLf77QGUoQ4VkVk7kkv ixTvjOzIlHeqjQ3P5E088RD3EGazFeqBQFaZSriuazPwAEMaFf0Lpttvr/e5C8sQE+1t l35ibdESt+ToNK4PkgYamwy5E+n6w9IbidYS4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=VG+tPmk6zeCCA+4KCpUNnoGlSYMVb2FKV/joCzzothmMz0OCo5/gCQc/b54Dwm3wPj YPZ6/QmB31XN+GUTnQ2J0F05SSY2jzms4gGs+MZK9RK98xVYzFcji4Me5qdMwZjOLo3G natFNMVBeTNNq3+dlNMyufSKTc+k7gmxd92mI= MIME-Version: 1.0 Received: by 10.239.172.73 with SMTP id z9mr26625hbe.30.1247781628865; Thu, 16 Jul 2009 15:00:28 -0700 (PDT) Date: Thu, 16 Jul 2009 22:00:28 +0000 Message-ID: From: "b. f." To: freebsd-ports@FreeBSD.org, freebsd-current@freebsd.org, kan@freebsd.org, kib@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 16 Jul 2009 22:28:58 +0000 Cc: Subject: Re: svn commit: r195697 - in head: . contrib/gcc/config gnu/lib/libgcc gnu/lib/libssp/libssp_nonshared lib/libc lib/libc/sys libexec/rtld-elf share/mk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 22:00:31 -0000 >Author: kan >Date: Tue Jul 14 21:19:13 2009 >New Revision: 195697 >URL: http://svn.freebsd.org/changeset/base/195697 >Log: > Second attempt at eliminating .text relocations in shared libraries > compiled with stack protector. Unfortunately, on r195705 i386 (world and kernel), this breaks a clean (i.e., no other ports or packages installed, clean work directory) build of lang/perl5.8 or lang/perl5.10 with -fstack-protector or -fstack-protector-all in the CFLAGS, using the base system compiler: ... CCCMD = cc -DPERL_CORE -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O2 -fno-strict-aliasing -pipe -fstack-protector-all -Wall -Wextra -march=athlon-tbird -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat opmini.c: In function 'Perl_fold_constants': opmini.c:2122: warning: argument 'o' might be clobbered by 'longjmp' or 'vfork' `sh cflags "optimize='-O2 -fno-strict-aliasing -pipe -fstack-protector-all -Wall -Wextra -march=athlon-tbird'" perly.o` -DPIC -fPIC perly.c CCCMD = cc -DPERL_CORE -c -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O2 -fno-strict-aliasing -pipe -fstack-protector-all -Wall -Wextra -march=athlon-tbird -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat LD_LIBRARY_PATH=/tmp/usr/ports/lang/perl5.8/work/perl-5.8.9 cc -pthread -Wl,-E -L/usr/local/lib -o miniperl `echo gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o | sed 's/ op.o / /'` miniperlmain.o opmini.o -lm -lcrypt -lutil gv.o(.text+0xc1): In function `Perl_gv_name_set': : undefined reference to `__stack_chk_fail_local' gv.o(.text+0x221): In function `.L19': : undefined reference to `__stack_chk_fail_local' gv.o(.text+0x2c2): In function `Perl_is_gv_magical_sv': : undefined reference to `__stack_chk_fail_local' gv.o(.text+0x34d): In function `Perl_magic_freeovrld': : undefined reference to `__stack_chk_fail_local' gv.o(.text+0x3dd): In function `Perl_gp_ref': : undefined reference to `__stack_chk_fail_local' gv.o(.text+0xe6d): more undefined references to `__stack_chk_fail_local' follow *** Error code 1 1 error *** Error code 1 Stop in /usr/ports/lang/perl5.8. *** Error code 1 I would not be surprised to find that it affects a large number of other ports in a similar manner. So it seems that some further changes are required. Regards, b.