Date: Mon, 7 Jan 2013 21:55:52 +0400 From: awarecons <awarecons@gmail.com> To: John Marino <freebsdml@marino.st> Cc: ports@freebsd.org, ports-bugs@freebsd.org Subject: Re: graphics/libmng gcc 4.6.3 ISSUE undefined reference to `__stack_chk_fail_local' Message-ID: <CACGq7x2QWA9zvDbF3Vpv3p9=3QOyvmJYo9exhNitHszr0pzwgg@mail.gmail.com> In-Reply-To: <50EADCC1.1060702@marino.st> References: <CACGq7x15SB7OeeNpOGWLwDfhNbELiTDx7Ss6iLKwzW9vstF3Pg@mail.gmail.com> <50EADCC1.1060702@marino.st>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <freebsdml@marino.st>: > 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 > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACGq7x2QWA9zvDbF3Vpv3p9=3QOyvmJYo9exhNitHszr0pzwgg>