pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: __stack_chk_fail_local pkgsrc with gcc4.8 (was Re: minimum gcc to compile pkgsrc?



On Mon, Aug 07, 2017 at 08:56:42PM +0000, Brian Ginsbach wrote:
> There could be more than a few.
> 
> Seeing the following with textproc/icu: (NetBSD 6.1.5)
> 
> c++ -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -W -Wall -pedantic
>  -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11   -L/usr/pkg/gcc48/li
>  b/gcc/x86_64--netbsd/4.8.5 -Wl,-R/usr/pkg/gcc48/lib/gcc/x86_64--netbsd/4.8.5 -L/
>  usr/pkg/gcc48/lib -Wl,-R/usr/pkg/gcc48/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/
>  lib -Wl,-R/usr/pkg/lib   -o ../../bin/gencnval gencnval.o -L../../lib -licutu -L
>  ../../lib -licui18n -L../../lib -licuuc -L../../stubdata -licudata -lpthread -lm
> 
> gencnval.o: In function `main':
> gencnval.c:(.text.startup+0xa19): undefined reference to `__stpcpy_chk'
> 
> Maybe a more widespread checkout is in order for netbsd-6.

I disabled fortify on netbsd-6 (<7). It builds now. looks like an issue
that will bite us in the future. in the meantime we can build packages.


Home | Main Index | Thread Index | Old Index