pkgsrc-Bugs archive

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

Re: pkg/52594 (firefox 55.0.3 fails to build on i386)



The following reply was made to PR pkg/52594; it has been noted by GNATS.

From: scole_mail <scole_mail%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/52594 (firefox 55.0.3 fails to build on i386)
Date: Fri, 06 Oct 2017 13:29:13 -0700

 This problem seems to be related to ssp.  I see one place
 __stack_chk_fail_local is defined here:
 https://nxr.netbsd.org/xref/src/lib/libc/misc/stack_protector.c#120
 
 This version of firefox apparently requires gcc4.9 to build, from
 pkgsrc/www/firefox/mozilla-commmon.mk
 GCC_REQD+=		4.9
 
 but it looks like gcc49 doesn't get built with ssp? from
 pkgsrc/lang/gcc49/Makefile
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
 # native SSP conflicts with gcc's libssp
 CONFIGURE_ARGS+=	--disable-libssp
 ...
 
 But, using nm, I see there is lots of stuff in /usr/pkg/lib/*.a
 containing
  "U __stack_chk_fail_local"
 that I guess firefox's build would pull in.
 
 I tried building with "-fno-stack-protector", but that didn't help.
 
 If I sprinkle
  "int __stack_chk_fail_local;"
 in enough files, firefox builds and runs fine, but I am not sure of a
 proper fix.
 
 Thanks
 


Home | Main Index | Thread Index | Old Index