From owner-freebsd-ports@FreeBSD.ORG Wed Jun 30 02:27:28 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB1AF1065672 for ; Wed, 30 Jun 2010 02:27:28 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2EF8FC1B for ; Wed, 30 Jun 2010 02:27:27 +0000 (UTC) Received: by wyb34 with SMTP id 34so353144wyb.13 for ; Tue, 29 Jun 2010 19:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=MP2e7L5w1YD5fEbhBGHZeoZrMjKqcj1fSCNP06RWa68=; b=C38OtFuhA+L7B12M/WYFKT/cJhJ51nnGHQuaYpakfmt4vugdWrHWD7TSkdjdCOCKb8 iNmz58sg0+d/e+bgdxkUS9B//jO1C+KqDFF1UTJD7qXEC0vj/TsPk04nLkb7AnX16YEE LvIsqSaR2QhYtweYG+ufY4yOy5aUmZu+LjILA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=rbG1piBPXk1ZLFLcYeS175VY49LeydZ6iG3fZhWxQr3cTRauftgdA7sC84rIxZPrFC SIyvtg3+0hs2L50ZTlSvPLJOFuOgjCIBIrr6SAt0tOpJwtCDeLOTROUAfJMYh8x3Rpy4 UEN6lRfIwUQz/lQ67JxUfchOcKUTMX/dpk88g= Received: by 10.216.159.3 with SMTP id r3mr10498220wek.26.1277864836975; Tue, 29 Jun 2010 19:27:16 -0700 (PDT) Received: from localhost ([85.17.254.135]) by mx.google.com with ESMTPS id n33sm2758305wej.1.2010.06.29.19.27.14 (version=SSLv3 cipher=RC4-MD5); Tue, 29 Jun 2010 19:27:15 -0700 (PDT) From: Anonymous To: Doug Barton References: Date: Wed, 30 Jun 2010 06:27:09 +0400 In-Reply-To: (Doug Barton's message of "Tue, 29 Jun 2010 09:54:36 -0700 (PDT)") Message-ID: <86zkydcl1e.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dinoex@FreeBSD.org, ports@FreeBSD.org Subject: Re: graphics/png does not compile with gcc 4.5.1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 02:27:28 -0000 Doug Barton writes: > Tried doing the update today, but it failed: > > Full log at http://people.freebsd.org/~dougb/png-gcc451.log > > building static png library > ranlib libpng.a > building shared library libpng.so.6 > /usr/local/bin/gcc45 -pipe -g -march=native -g -g -I. -g -std=gnu99 > -fstack-protector -L. -static -o pngtest pngtest.o -lpng -lz -lm > pngread.So: In function `png_create_read_struct_2': > /usr/local/tmp/usr/local/ports/graphics/png/work/libpng-1.4.3/pngread.c:201: > undefined reference to `__stack_chk_fail_local' > pngrutil.So: In function `png_read_chunk_header': > /usr/local/tmp/usr/local/ports/graphics/png/work/libpng-1.4.3/pngrutil.c:111: > undefined reference to `__stack_chk_fail_local' > pngrutil.So: In function `png_inflate': > /usr/local/tmp/usr/local/ports/graphics/png/work/libpng-1.4.3/pngrutil.c:293: > undefined reference to `__stack_chk_fail_local' > pngrutil.So: In function `png_decompress_chunk': > /usr/local/tmp/usr/local/ports/graphics/png/work/libpng-1.4.3/pngrutil.c:412: > undefined reference to `__stack_chk_fail_local' > pngrutil.So: In function `png_handle_IHDR': > /usr/local/tmp/usr/local/ports/graphics/png/work/libpng-1.4.3/pngrutil.c:492: > undefined reference to `__stack_chk_fail_local' > pngrutil.So:/usr/local/tmp/usr/local/ports/graphics/png/work/libpng-1.4.3/pngrutil.c:928: > more undefined references to `__stack_chk_fail_local' follow > /usr/local/bin/ld: libpng.so.6: hidden symbol `__stack_chk_fail_local' > isn't defined Hmm, I can't reproduce this -fstack-protector error on $ uname -vm FreeBSD 9.0-CURRENT #0 r209581=f9b9ab9-dirty: Tue Jun 29 00:46:39 UTC 2010 holo@raphael.local:/a/objdir/a/dirty_build/sys/PHOENIX amd64 $ cc --version cc (GCC) 4.5.1 20100624 (prerelease) $ ld --version GNU gold (GNU Binutils 2.20.51.20100621) 1.9 $ readelf -s libpng.so.6 | fgrep __stack_chk_fail_local $ readelf -s pngtest | fgrep -eNum: -e__stack_chk_fail_local Num: Value Size Type Bind Vis Ndx Name 1981: 000000000042f6a0 10 FUNC WEAK DEFAULT 1 __stack_chk_fail_local Visibility and binding for that symbol are same here whether using gcc45 or basegcc. You can try to build without -fstack-protector in bsd.sys.mk $ make SSP_CFLAGS= > /usr/local/bin/ld: final link failed: Nonrepresentable section on output > collect2: ld returned 1 exit status > *** Error code 1 > 1