From owner-freebsd-perl@FreeBSD.ORG Sun Jun 20 10:56:16 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 98F4C106564A; Sun, 20 Jun 2010 10:56:16 +0000 (UTC) (envelope-from wahjava@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3A1968FC08; Sun, 20 Jun 2010 10:56:15 +0000 (UTC) Received: by pxi17 with SMTP id 17so98975pxi.13 for ; Sun, 20 Jun 2010 03:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:organization:references:x-face:x-uptime:x-url :x-operating-system:x-openpgp-id:x-openpgp-fingerprint:x-mailer :x-mail-morse:x-attribution:organisation:date:in-reply-to:message-id :user-agent:face:mime-version:content-type; bh=M2dJcIh3OMiH0KTPAC/6AJUv45OfU028jwl8LHgYIRk=; b=w42Imk9HhWxxgIdg0gwxwPrh97HmndTRDOwOnJwIBGML71XcRIYSosIX2putQI8MyJ I5o88ZD5IOsQZU10DgMb1pZIldTfpkdUGy3m0du+mMhkCjlXk9O/qc8fKVXsDTaY4WMv ln2Ep0IHXpCFPt+5vpZtvU7owr0XIx+khOvqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:organization:references:x-face:x-uptime :x-url:x-operating-system:x-openpgp-id:x-openpgp-fingerprint :x-mailer:x-mail-morse:x-attribution:organisation:date:in-reply-to :message-id:user-agent:face:mime-version:content-type; b=lLppTGMiruNs6aFSEPAc/8QoyxHAplnq6ooiyU8X9mwGnpEQGKhDbDdnCY090tckBt NDGGEuA1wwP+gWbEPU9KbZY+wYy41gcIHMvd38F3ErXc4LEykORTVzZHUN7lRF8Xd0mf S8Lizwx7iCK83Shrl6dz7YuYKGGyOnL5QVRAg= Received: by 10.115.113.22 with SMTP id q22mr2732843wam.62.1277031375614; Sun, 20 Jun 2010 03:56:15 -0700 (PDT) Received: from chateau.d.if ([122.161.230.235]) by mx.google.com with ESMTPS id n32sm135337025wae.10.2010.06.20.03.56.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 20 Jun 2010 03:56:14 -0700 (PDT) Sender: Ashish SHUKLA Received: from chateau.d.if (chateau.d.if [127.0.0.1]) by chateau.d.if (Postfix) with ESMTP id 7B9A92D862F; Sun, 20 Jun 2010 16:26:07 +0530 (IST) From: ashish@FreeBSD.org (Ashish SHUKLA) To: Doug Barton Organization: The FreeBSD Project References: <4C1C5275.9000907@FreeBSD.org> X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 16:18:23 up 5:09, 1 user, load average: 0.00, 0.05, 0.01 X-URL: http://762e5e74.wordpress.com/ X-Operating-System: GNU/Linux/Linux 2.6.33-ARCH/x86_64 X-OpenPGP-ID: E74FA4B0 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Mailer: Gnus v5.13 X-Mail-Morse: .-- .- .... .--- .- ...- .- .--.-. --. -- .- .. .-.. .-.-.- -.-. --- -- X-Attribution: =?utf-8?B?4KSG4KS24KWA4KS3?= Organisation: The FreeBSD Project Date: Sun, 20 Jun 2010 16:26:06 +0530 In-Reply-To: <4C1C5275.9000907@FreeBSD.org> (Doug Barton's message of "Fri, 18 Jun 2010 22:15:33 -0700") Message-ID: <86631ekm61.fsf@chateau.d.if> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Sun, 20 Jun 2010 10:56:16 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Doug Barton writes: > I've been experimenting with the idea of using gcc 4.5.1 as my "ports > compiler" and ran into this problem: > CCCMD =3D /usr/local/bin/gcc45 -DPERL_CORE -c=20 > -DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.10.1/BSDPAN" -DHAS_FPSETMASK > -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe > -fstack-protector -I/usr/local/include -std=3Dc89 -pipe -g > -march=3Dnative -g -Wall -ansi -W -Wextra -Wdeclaration-after-statement > -Wendif-labels -Wc++-compat > LD_LIBRARY_PATH=3D/usr/local/tmp/usr/local/ports/lang/perl5.10/work/perl-= 5.10.1 > /usr/local/bin/gcc45 -pthread -Wl,-E -fstack-protector > -L/usr/local/lib -o miniperl gv.o toke.o perly.o pad.o regcomp.o > dump.o util.o mg.o reentr.o mro.o hv.o av.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 miniperlmain.o opmini.o perlmini.o -lm > -lcrypt -lutil > gv.o: In function `Perl_gv_fetchfile_flags': > /usr/local/tmp/usr/local/ports/lang/perl5.10/work/perl-5.10.1/gv.c:161: > undefined reference to `__stack_chk_fail_local' > gv.o: In function `Perl_gv_stashpvn': > /usr/local/tmp/usr/local/ports/lang/perl5.10/work/perl-5.10.1/gv.c:878: > undefined reference to `__stack_chk_fail_local' > gv.o: In function `Perl_gv_fetchpvn_flags': > /usr/local/tmp/usr/local/ports/lang/perl5.10/work/perl-5.10.1/gv.c:1426: > undefined reference to `__stack_chk_fail_local' > toke.o: In function `S_feature_is_enabled': > /usr/local/tmp/usr/local/ports/lang/perl5.10/work/perl-5.10.1/toke.c:586: > undefined reference to `__stack_chk_fail_local' > toke.o: In function `S_intuit_more': > /usr/local/tmp/usr/local/ports/lang/perl5.10/work/perl-5.10.1/toke.c:2724: > undefined reference to `__stack_chk_fail_local' > toke.o:/usr/local/tmp/usr/local/ports/lang/perl5.10/work/perl-5.10.1/toke= .c:2835: > more undefined references to `__stack_chk_fail_local' follow > /usr/local/bin/ld: miniperl: hidden symbol `__stack_chk_fail_local' > isn't defined > /usr/local/bin/ld: final link failed: Nonrepresentable section on output > collect2: ld returned 1 exit status > *** Error code 1 Try adding '-lssp_nonshared' to the LDFLAGS. #v+ chateau.d.if!abbe:~ % strings /usr/bin/gcc |fgrep stack-protector=20=20=20= =20=20=20=20=20=20=20=20 %{fstack-protector:} %{!shared: = %{!pg: %{pthread:-lpthread} -lc= } %{pg: %{pthread:-lpthread_p} -lc= _p}} %{shared: = %{pthread:-lpthread} -lc} %{fstack-protector|fstack-= protector-all:-lssp_nonshared}=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 =2DWstack-protector =2Dfstack-protector =2Dfstack-protector-all #v- I'm not sure how information about SSP is encoded in GCC binary. Maybe some flag/switch you need to enable with GCC. HTH Ashish =2D-=20 Sent via Gnus from GNU Emacs They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety. -- Benjamin Franklin, Memoirs of the life and writings of Benjamin Frankl= in --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJMHfPHAAoJEMdGz6nnT6SwJAIP/jdj6qaJRvybSjiiEd4xR1ZD lzmV7e2QjzpH++6ggXhqI6Eo2qMYc01JMysHljTj4jQhW63+yLMPmM7/2ARZQM+a 2XxMBZvZOpwZRJpj8oD3hDcLz+MBx8giJseC0cGwrqL8o/tZlhIuFINiMF7BFLZE uh6vB/OEeu/mJQ/dPQmn9V3UgD4DbWPqVLCPaOf2bF5YU7OKXuVw6R7huPJHkSg8 auAqll+4HrKudeD8IxlIs1T058ZWBztlP8M8uVkYZy0aDLQiGR8z8rp8pUXYChIR vrHhpFYFsd+ftPM4wqAxymp5J4zo57VqsfwdDB7bbUjkqNyZwZql8Le5HPJPjCPV ONVJnu/hBk1vpIvfR4eRY1C2zureCeD8QzBGvZiEy1wYWE7CQLOEXf1HsryYj566 vHnQQTPyO/Dp4ym+qnueprkfwaWGifYM5fvMnkRxAgJx7Q82QUmsvUh8VkOwR5Xi e+JNFVdtYWrmkg4UoRWMnLBEN573aj5aJGLO8m2mM0W3CQghT4SQtIt44n5kRw2Q 2sDzN/cgEiiYlm5YeZhkso7nGuvJoOqFYsE99EZKignPSkH6UpB5e7ikE2ZxekRn CWH0VzO/DnJtsrz7t13d8yHBQCf9Q6GDckm4jle9l8KpAa/jG6CRqTr/UHJciwaz WhAw9vX7JScx79eWuG9a =PFbE -----END PGP SIGNATURE----- --=-=-=--