From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 7 17:55:54 2013 Return-Path: Delivered-To: ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 78964318; Mon, 7 Jan 2013 17:55:54 +0000 (UTC) (envelope-from awarecons@gmail.com) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx1.freebsd.org (Postfix) with ESMTP id 0CCCDA19; Mon, 7 Jan 2013 17:55:53 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id f13so20047645vcb.32 for ; Mon, 07 Jan 2013 09:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9H/iGFyJAB+QaBCkljQJJwQZPg6issQyTzN3gsKd/MA=; b=pXx9HxqlO+U8CFg24zT/w1xkWlSxsAsHvX99JlBkil3TIZlmUIcS676E040YtZryZz Bg4lediJwy5klFq0k2+JDutND5rwL0LBT6/8G0y6VJcL/uwSB3499uluN4eLQrYH26gN 5ORNPCpHVUBZyFsGoZMi/y9HL+ofGmvdVK0gESobO0rMeArHcl5yOhoPALqjL36aRO/u T8zqKAQ4KpUXEBfz1LT34oE5KFD1YKB+JrtIyVtlB0unEi8eP1Rw2atHPMPOF3s7zx6t zXIu+023+XHw6KqEXIsP7uGhz5LdxRRiA2toZlzzPzrIERsKC+HXO2F3WwSA0eAgYxLA 10+g== MIME-Version: 1.0 Received: by 10.220.204.194 with SMTP id fn2mr3346573vcb.20.1357581352745; Mon, 07 Jan 2013 09:55:52 -0800 (PST) Received: by 10.220.230.138 with HTTP; Mon, 7 Jan 2013 09:55:52 -0800 (PST) In-Reply-To: <50EADCC1.1060702@marino.st> References: <50EADCC1.1060702@marino.st> Date: Mon, 7 Jan 2013 21:55:52 +0400 Message-ID: Subject: Re: graphics/libmng gcc 4.6.3 ISSUE undefined reference to `__stack_chk_fail_local' From: awarecons To: John Marino Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org, ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2013 17:55:54 -0000 Thank you. As you could notice from the lines (...gcc46 -fpic -DPIC -O2 -pipe -march=pentium4 -mtune=pentium4...) it raised, when compiling for i386 arch and, yes, it's not on amd64 platform, but i386. 2013/1/7 John Marino : > On 1/7/2013 14:06, awarecons wrote: > >> libmng_chunk_descr.So: In function `mng_pplt_entries': >> libmng_chunk_descr.c:(.text+0x1f41): undefined reference to >> `__stack_chk_fail_local' >> libmng_pixels.So: In function `.L1180': >> libmng_pixels.c:(.text+0xa1da): undefined reference to >> `__stack_chk_fail_local' >> libmng_pixels.So: In function `mng_retrieve_g8': >> libmng_pixels.c:(.text+0xa5ff): undefined reference to >> `__stack_chk_fail_local' >> collect2: ld returned 1 exit status >> *** Error code 1 > > > > This is a common problem for amd64 that affects both FreeBSD and DragonFly. > We ended up patching the base compilers (two, gcc 4.4 and gcc 4.7) to bypass > it. > > http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5dd34005fbf5509736906dc6aa56d3e77f6a3dcb > > I suspect that all your ports gcc compilers could use a similar patch. > > John > >