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 Wed, Aug 02, 2017 at 06:38:47PM +0000, coypu%sdf.org@localhost wrote:
> in pkgsrc-current, PKGSRC_USE_SSP=yes and PKGSRC_USE_FORTIFY=yes
> became the default values. so we will attempt to pass -fstack-protector.
> 
> It's possible it was broken on netbsd-6.
> 
> It's possible your version of gcc48 was broken, I had to change it to
> allow -fstack-protector to work. although it failed differently. Using
> the latest eliminates this question.
> 
> And it's possible a few packages were broken for everyone with
> SSP/FORTIFY.

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.


Home | Main Index | Thread Index | Old Index