graphics/libmng gcc 4.6.3 ISSUE undefined reference to `__stack_chk_fail_local'
John Marino
freebsdml at marino.st
Mon Jan 7 14:33:41 UTC 2013
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
More information about the freebsd-ports
mailing list