NetBSD-Users archive

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

Re: [pkgsrc] ICU needs configure CFLAGS='-03'



On Wed, Nov 15, 2017 at 12:50:18AM +0000, maya%netbsd.org@localhost wrote:
> On Tue, Nov 14, 2017 at 03:21:47PM +0100, tlaronde%polynum.com@localhost wrote:
> > On Tue, Nov 14, 2017 at 03:08:29PM +0100, Benny Siegert wrote:
> > > Can you post the entire config.log?
> > > 
> > 
> > Attached.
> > 
> > (Indeed there is the info: libssp not found---what is it?)
> > 
> 
> Hi,
> 
> SSP is a compiler security mitigation.
> In C are some functions which are more prone to buffer overflows, and
> while there are better functions to use, they still exist in a lot of
> code (and are easier to use).
> 
> I think the compiler inserts fake values to the end of buffers and
> checks if it has been modified, and so it can terminate the program if
> an overflow had happened (as opposed to possibly allowing code
> execution).
> 
> netbsd did not want to supply libssp, an independent library from GCC,
> and so provides the same in libc. GCC had to be taught not to build
> libssp on netbsd, but didn't in the past.
> 
> The problem you have is likely an older gcc48/49 package that does not
> contain the fixes not to think netbsd built with -lssp and
> -lssp_nonshared.  Others have fixed some more changes.

Yes, I have a gcc48 package built long ago. To be thorough, the gcc
shipped with NetBSD 6.1.5 is in the same case.

Thanks for the info!
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                       http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


Home | Main Index | Thread Index | Old Index