graphics/libmng gcc 4.6.3 ISSUE undefined reference to `__stack_chk_fail_local'

awarecons awarecons at gmail.com
Mon Jan 7 13:06:03 UTC 2013


gcc 4.6.3:

gcc46 -fpic -DPIC -O2 -pipe -march=pentium4 -mtune=pentium4
-Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -march=pentium4
-mtune=pentium4 -I/usr/local/include -DMNG_OPTIMIZE_CHUNKINITFREE
-DMNG_OPTIMIZE_OBJCLEANUP -DMNG_OPTIMIZE_CHUNKASSIGN
-DMNG_OPTIMIZE_CHUNKREADER -std=gnu99 -fstack-protector  -c
libmng_zlib.c -o libmng_zlib.So
building shared library libmng.so.1
building static mng library
/usr/local/bin/ranlib libmng.a
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
1 error
*** Error code 1

Stop in /usr/ports/graphics/libmng.
*** Error code 1

Stop in /usr/ports/graphics/libmng.

But default gcc 4.2 works fine.


More information about the freebsd-ports mailing list